From 708a208e87e4e580d7a80c7f8b2c11f25dec7ff2 Mon Sep 17 00:00:00 2001
From: qx <2540746708@qq.com>
Date: 星期五, 15 十二月 2023 20:50:54 +0800
Subject: [PATCH] qxtj

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