From 3f6a140e11ef05fad87c2d3112508addd8c27635 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Tue, 12 Dec 2023 19:01:25 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=80=82=E9=85=8D=20vite=205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 2 +- vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 8ff8703b..3167d61e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ /** https://cn.vitejs.dev/guide/features.html#typescript-compiler-options */ "useDefineForClassFields": true, "module": "esnext", - "moduleResolution": "node", + "moduleResolution": "bundler", /** TS 严格模式 */ "strict": true, "jsx": "preserve", diff --git a/vite.config.ts b/vite.config.ts index e54c6b7e..57b1e9e4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -43,7 +43,7 @@ export default (configEnv: ConfigEnv): UserConfigExport => { }, /** 预热常用文件,提高初始页面加载速度 */ warmup: { - clientFiles: ["./src/{views,components}/*.vue"] + clientFiles: ["./src/layouts/**/*.vue"] } }, build: {