From 4f55c0255e5e68b3685d1510062dff6e1e3dbc48 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期三, 16 四月 2025 14:13:07 +0800
Subject: [PATCH] 1

---
 babel.config.js |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/babel.config.js b/babel.config.js
index c8267b2..dcf0f19 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,13 +1,23 @@
 module.exports = {
   presets: [
-    // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
-    '@vue/cli-plugin-babel/preset'
+    [
+      "@vue/app",
+      {
+        polyfills: [
+          "es6.promise",
+          "es6.symbol",
+          "es6.array.iterator",
+          "es6.object.assign",
+        ],
+        useBuiltIns: "entry",
+      },
+    ],
   ],
-  'env': {
-    'development': {
+  env: {
+    development: {
       // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
       // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
-      'plugins': ['dynamic-import-node']
-    }
-  }
-}
\ No newline at end of file
+      plugins: ["dynamic-import-node"],
+    },
+  },
+};

--
Gitblit v1.8.0