From 04ad3b977b8b28900f18f736d5978fa2c946a082 Mon Sep 17 00:00:00 2001 From: 777 <123@qwe.com> Date: Sat, 22 Mar 2025 17:24:03 +0800 Subject: [PATCH] 1231233 --- .env.huahe | 1 + .env.production | 1 + .env.zhiyu | 1 + babel.config.js | 3 +++ 4 files changed, 6 insertions(+) diff --git a/.env.huahe b/.env.huahe index fc4b5c3..09ad87b 100644 --- a/.env.huahe +++ b/.env.huahe @@ -2,6 +2,7 @@ # 生产环境配置 NODE_ENV = 'production' +BABEL_ENV = 'production' ENV = 'huahe' # 若依管理系统/生产环境 VUE_APP_BASE_API = '/prod-api' diff --git a/.env.production b/.env.production index 51eb091..efe25fc 100644 --- a/.env.production +++ b/.env.production @@ -2,6 +2,7 @@ # 生产环境配置 ENV = 'production' +BABEL_ENV = 'production' # 若依管理系统/生产环境 VUE_APP_BASE_API = '/prod-api' diff --git a/.env.zhiyu b/.env.zhiyu index defc7e4..f43339f 100644 --- a/.env.zhiyu +++ b/.env.zhiyu @@ -2,6 +2,7 @@ # 生产环境配置 NODE_ENV = 'production' +BABEL_ENV = 'production' ENV = 'zhiyu' # 若依管理系统/生产环境 VUE_APP_BASE_API = '/prod-api' diff --git a/babel.config.js b/babel.config.js index b99f001..b0b0a3e 100644 --- a/babel.config.js +++ b/babel.config.js @@ -8,6 +8,9 @@ module.exports = { // 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'] + }, + 'production': { + 'plugins': ['@babel/plugin-syntax-dynamic-import'] } } }