From 34922eb239109534679d35a75661d6e2a5603347 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期六, 27 十二月 2025 10:16:36 +0800
Subject: [PATCH] 成品库流程

---
 WMS/WIDESEA_WMSClient/babel.config.js |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/WMS/WIDESEA_WMSClient/babel.config.js b/WMS/WIDESEA_WMSClient/babel.config.js
index e955840..ed40b48 100644
--- a/WMS/WIDESEA_WMSClient/babel.config.js
+++ b/WMS/WIDESEA_WMSClient/babel.config.js
@@ -1,5 +1,30 @@
+// babel.config.js - 绠�鍖栫増鏈�
 module.exports = {
   presets: [
-    '@vue/cli-plugin-babel/preset'
+    [
+      '@babel/preset-env',
+      {
+        targets: {
+          browsers: ['> 1%', 'last 2 versions', 'not dead'],
+          node: '16.0.0'
+        },
+        // Webpack 4 闇�瑕� commonjs 妯″潡
+        modules: 'commonjs',
+        // 浣跨敤 usage 妯″紡寮曞叆 polyfill
+        useBuiltIns: 'usage',
+        corejs: {
+          version: 3,
+          proposals: false
+        }
+      }
+    ]
+  ],
+  plugins: [
+    // 澶勭悊鍙�夐摼鎿嶄綔绗�
+    '@babel/plugin-proposal-optional-chaining',
+    // 澶勭悊绌哄�煎悎骞舵搷浣滅
+    '@babel/plugin-proposal-nullish-coalescing-operator',
+    // Vue JSX 鏀寔锛堝鏋滈渶瑕侊級
+    '@vue/babel-plugin-jsx'
   ]
-}
+};
\ No newline at end of file

--
Gitblit v1.9.3