Browse Source

打包配置调整

guicheng 4 months ago
parent
commit
5fe11872e5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vite.config.ts

+ 2 - 1
vite.config.ts

@@ -2,7 +2,7 @@
  * @Author: Gui
  * @Author: Gui
  * @Date: 2023-03-01 19:20:44
  * @Date: 2023-03-01 19:20:44
  * @LastEditors: guicheng 1625811865@qq.com
  * @LastEditors: guicheng 1625811865@qq.com
- * @LastEditTime: 2024-04-10 15:54:56
+ * @LastEditTime: 2024-07-12 15:08:30
  * @Description: kxs files
  * @Description: kxs files
  * @filePath:
  * @filePath:
  */
  */
@@ -67,6 +67,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
       exclude
       exclude
     },
     },
     build: {
     build: {
+      target: "esnext",
       sourcemap: false,
       sourcemap: false,
       // 消除打包大小超过500kb警告
       // 消除打包大小超过500kb警告
       chunkSizeWarningLimit: 4000,
       chunkSizeWarningLimit: 4000,