You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turning off preprocess({ typescript: false, scss: false }) and turning on experimental: { useVitePreprocess: true, } causes type imports in .svelte files to throw "Unexpected token" error.
Reproduction
Turning on experimental: { useVitePreprocess: true, } and turning off preprocess({ typescript: false, scss: false })
Turning off experimental: { useVitePreprocess: false } and turning on preprocess({ typescript: true, scss: true }) behaves correctly.
Expected behaviour
Expected similar behavior between preprocess({ typescript: true }) and experimental: { useVitePreprocess: true, }
System Info
OS: Arch linux
IDE: VSCode - 1.69.0
Svelte for VS Code - v105.18.1
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
…lved
sveltejs#1259sveltejs#1479sveltejs#1558
This may give false negatives for people who do not use Vite/forgot to create a svelte.config.js when they use rollup or webpack, but that's likely OK since we can think about these diagnostics as being opt-in: you add a preprocessor config when you want the Svelte warnings, too. Most people who have this problem also likely use TypeScript or a CSS preprocessor. When using TS, errors are caught through the TS intellisense. When using a CSS preprocessor, the only warning they'll miss is the unused CSS warning, which is apparent anyway since those styles are not visible in the browser.
…lved (#1569)
#1259#1479#1558
This may give false negatives for people who do not use Vite/forgot to create a svelte.config.js when they use rollup or webpack, but that's likely OK since we can think about these diagnostics as being opt-in: you add a preprocessor config when you want the Svelte warnings, too. Most people who have this problem also likely use TypeScript or a CSS preprocessor. When using TS, errors are caught through the TS intellisense. When using a CSS preprocessor, the only warning they'll miss is the unused CSS warning, which is apparent anyway since those styles are not visible in the browser.
Describe the bug
Turning off
preprocess({ typescript: false, scss: false })
and turning onexperimental: { useVitePreprocess: true, }
causes type imports in .svelte files to throw "Unexpected token" error.Reproduction
Turning on
experimental: { useVitePreprocess: true, }
and turning offpreprocess({ typescript: false, scss: false })
Turning off
experimental: { useVitePreprocess: false }
and turning onpreprocess({ typescript: true, scss: true })
behaves correctly.Expected behaviour
Expected similar behavior between
preprocess({ typescript: true })
andexperimental: { useVitePreprocess: true, }
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: