Skip to content

Commit 743691b

Browse files
committed
chore: 打包后的代码改为默认原生支持 ES2015 的浏览器
1 parent a8b9683 commit 743691b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vite.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
5252
exclude
5353
},
5454
build: {
55+
// https://cn.vitejs.dev/guide/build.html#browser-compatibility
56+
target: "es2015",
5557
sourcemap: false,
5658
// 消除打包大小超过500kb警告
5759
chunkSizeWarningLimit: 4000,

0 commit comments

Comments
 (0)