lilei 1 month ago
parent
commit
2738718663
3 changed files with 854 additions and 682 deletions
  1. 5 2
      babel.config.js
  2. 847 680
      package-lock.json
  3. 2 0
      package.json

+ 5 - 2
babel.config.js

@@ -3,6 +3,7 @@ const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
 const plugins = []
 if (IS_PROD) {
   plugins.push('transform-remove-console')
+  plugins.push("@babel/plugin-transform-runtime")
 }
 
 module.exports = {
@@ -11,7 +12,9 @@ module.exports = {
     [
       '@babel/preset-env',
       {
-        'useBuiltIns': 'entry'
+        'useBuiltIns': 'entry',
+        'targets': '> 0.25%, not dead',
+        'corejs': 2
       }
     ]
   ],
@@ -25,4 +28,4 @@ module.exports = {
   //     'style': true // `style: true` 会加载 less 文件
   //   } ]
   // ]
-}
+}

File diff suppressed because it is too large
+ 847 - 680
package-lock.json


+ 2 - 0
package.json

@@ -15,6 +15,8 @@
   },
   "dependencies": {
     "@antv/data-set": "^0.10.2",
+    "@babel/plugin-transform-runtime": "^7.28.0",
+    "@babel/preset-env": "^7.26.0",
     "@jiaminghi/data-view": "^2.10.0",
     "ant-design-vue": "^1.7.8",
     "axios": "^0.19.0",

Some files were not shown because too many files changed in this diff