chore: 打包后的代码改为默认原生支持 ES2015 的浏览器

This commit is contained in:
xiaoxian521 2023-11-05 21:56:39 +08:00
parent a8b9683a5f
commit 743691ba5d

View File

@ -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,