From 2175557d4813ab8805c76ea0e04fe1d11d688f91 Mon Sep 17 00:00:00 2001 From: fatedier Date: Mon, 27 Jul 2026 19:21:28 +0800 Subject: [PATCH] web: fix Vite config tsconfig includes (#5450) --- web/frpc/tsconfig.node.json | 2 +- web/frpc/vite.config.mts | 5 ----- web/frps/tsconfig.node.json | 2 +- web/frps/vite.config.mts | 5 ----- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/web/frpc/tsconfig.node.json b/web/frpc/tsconfig.node.json index 42872c59..a8583534 100644 --- a/web/frpc/tsconfig.node.json +++ b/web/frpc/tsconfig.node.json @@ -6,5 +6,5 @@ "moduleResolution": "bundler", "allowSyntheticDefaultImports": true }, - "include": ["vite.config.ts"] + "include": ["vite.config.mts"] } diff --git a/web/frpc/vite.config.mts b/web/frpc/vite.config.mts index 6a9205d0..209a91fd 100644 --- a/web/frpc/vite.config.mts +++ b/web/frpc/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 *;`, }, }, diff --git a/web/frps/tsconfig.node.json b/web/frps/tsconfig.node.json index 42872c59..a8583534 100644 --- a/web/frps/tsconfig.node.json +++ b/web/frps/tsconfig.node.json @@ -6,5 +6,5 @@ "moduleResolution": "bundler", "allowSyntheticDefaultImports": true }, - "include": ["vite.config.ts"] + "include": ["vite.config.mts"] } diff --git a/web/frps/vite.config.mts b/web/frps/vite.config.mts index 91f099f8..fda910d4 100644 --- a/web/frps/vite.config.mts +++ b/web/frps/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 *;`, }, },