Skip to content

Commit

Permalink
Fix crash when syntax error in svelte file
Browse files Browse the repository at this point in the history
  • Loading branch information
zodern committed Feb 12, 2022
1 parent f8dd4ba commit 629bc00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MelteCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ SvelteCompiler = class SvelteCompiler extends CachingCompiler {
file.addJavaScript({
path: file.getPathInPackage()
}, async () => {
const { js, css } = await getResult();
const { js, css } = (await getResult()) || {};

if (css) {
file.addStylesheet(css);
Expand Down

0 comments on commit 629bc00

Please sign in to comment.