From 743691ba5d6ab8639224eb4c08000cc712c5562e Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 5 Nov 2023 21:56:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=89=93=E5=8C=85=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=94=B9=E4=B8=BA=E9=BB=98=E8=AE=A4=E5=8E=9F?= =?UTF-8?q?=E7=94=9F=E6=94=AF=E6=8C=81=20`ES2015`=20=E7=9A=84=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 8a7a3364f..da903bafb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -52,6 +52,8 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => { exclude }, build: { + // https://cn.vitejs.dev/guide/build.html#browser-compatibility + target: "es2015", sourcemap: false, // 消除打包大小超过500kb警告 chunkSizeWarningLimit: 4000,