We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
experimental.useVitePreprocess
1 parent c92f1bf commit fb5591fCopy full SHA for fb5591f
.changeset/soft-masks-fold.md
@@ -0,0 +1,5 @@
1
+---
2
+'@sveltejs/vite-plugin-svelte': patch
3
4
+
5
+fix `experimental.useVitePreprocess` option for Vite 2.8
packages/vite-plugin-svelte/src/utils/preprocess.ts
@@ -25,7 +25,8 @@ function createViteScriptPreprocessor(): Preprocessor {
25
tsconfigRaw: {
26
compilerOptions: {
27
// svelte typescript needs this flag to work with type imports
28
- importsNotUsedAsValues: 'preserve'
+ importsNotUsedAsValues: 'preserve',
29
+ preserveValueImports: true
30
}
31
32
});
0 commit comments