Cloning JS formatting settings to the TS, allow importing TS

This commit is contained in:
koloml committed 2024-11-12 15:47:21 +04:00
1 parent e83d70fbd9
commit 01e538c5c2
3 files changed
+180 -5

No files matched your search

+6
View File
@@ -19,6 +19,12 @@ const config = {
"$stores": "./src/stores",
"$entities": "./src/lib/extension/entities",
},
typescript: {
config: config => {
config.compilerOptions = config.compilerOptions || {};
config.compilerOptions.allowImportingTsExtension = true
}
}
},
preprocess: [
vitePreprocess({