Recompile stops after error in imported SCSS file
SpicyRicecaker opened this issue · 1 comments
I have the following code below, using the default sveltejs/template-webpack template
<style lang="scss">
@use 'styles';
</style>When editing the styles.scss file, reloads are triggered on change just fine, until a mistake is made inside the scss file.
After the webpack compilation error, editing the styles.scss file no longer causes any changes, and direct edits must be made to the .svelte file to trigger further reloads.
This issue only happens on webpack, presumably with the svelte loader, rollup handles changes to the scss file after an error just fine...
I think it's similar to #72 in a way, except only after compilation error
@SpicyRicecaker Reproduced and fixed the issue.
In a meantime you can use master branch which contains this fix:
yarn add -D svelte-loader@sveltejs/svelte-loader
# or
npm i -D sveltejs/svelte-loader