Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix) skip parser error when there's likely another preprocessor invo…
…lved sveltejs#1259 sveltejs#1479 sveltejs#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.
- Loading branch information