forked from Mxmilu666/frp
web: fix Vite config tsconfig includes (#5450)
This commit is contained in:
@@ -6,5 +6,5 @@
|
|||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowSyntheticDefaultImports": true
|
"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)),
|
'@shared': fileURLToPath(new URL('../shared', import.meta.url)),
|
||||||
},
|
},
|
||||||
dedupe: ['vue', 'element-plus', '@element-plus/icons-vue'],
|
dedupe: ['vue', 'element-plus', '@element-plus/icons-vue'],
|
||||||
modules: [
|
|
||||||
fileURLToPath(new URL('../node_modules', import.meta.url)),
|
|
||||||
'node_modules',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
scss: {
|
scss: {
|
||||||
api: 'modern',
|
|
||||||
additionalData: `@use "@shared/css/_index.scss" as *;`,
|
additionalData: `@use "@shared/css/_index.scss" as *;`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowSyntheticDefaultImports": true
|
"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)),
|
'@shared': fileURLToPath(new URL('../shared', import.meta.url)),
|
||||||
},
|
},
|
||||||
dedupe: ['vue', 'element-plus', '@element-plus/icons-vue'],
|
dedupe: ['vue', 'element-plus', '@element-plus/icons-vue'],
|
||||||
modules: [
|
|
||||||
fileURLToPath(new URL('../node_modules', import.meta.url)),
|
|
||||||
'node_modules',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
scss: {
|
scss: {
|
||||||
api: 'modern',
|
|
||||||
additionalData: `@use "@shared/css/_index.scss" as *;`,
|
additionalData: `@use "@shared/css/_index.scss" as *;`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user