mirror of
https://github.com/fatedier/frp.git
synced 2026-07-27 21:29:17 +08:00
web: fix Vite config tsconfig includes (#5450)
This commit is contained in:
@@ -6,5 +6,5 @@
|
||||
"moduleResolution": "bundler",
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"include": ["vite.config.ts"]
|
||||
"include": ["vite.config.mts"]
|
||||
}
|
||||
|
||||
@@ -28,15 +28,10 @@ export default defineConfig({
|
||||
'@shared': fileURLToPath(new URL('../shared', import.meta.url)),
|
||||
},
|
||||
dedupe: ['vue', 'element-plus', '@element-plus/icons-vue'],
|
||||
modules: [
|
||||
fileURLToPath(new URL('../node_modules', import.meta.url)),
|
||||
'node_modules',
|
||||
],
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
api: 'modern',
|
||||
additionalData: `@use "@shared/css/_index.scss" as *;`,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
"moduleResolution": "bundler",
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"include": ["vite.config.ts"]
|
||||
"include": ["vite.config.mts"]
|
||||
}
|
||||
|
||||
@@ -28,15 +28,10 @@ export default defineConfig({
|
||||
'@shared': fileURLToPath(new URL('../shared', import.meta.url)),
|
||||
},
|
||||
dedupe: ['vue', 'element-plus', '@element-plus/icons-vue'],
|
||||
modules: [
|
||||
fileURLToPath(new URL('../node_modules', import.meta.url)),
|
||||
'node_modules',
|
||||
],
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
api: 'modern',
|
||||
additionalData: `@use "@shared/css/_index.scss" as *;`,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user