From 0837f55a7917a98739f135dfb1f65b12826cdb9b Mon Sep 17 00:00:00 2001 From: Robot <904645161@qq.com> Date: Wed, 22 Nov 2023 12:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E5=90=8E=E5=87=BA=E7=8E=B0Cannot=20find=20module?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/babel.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ruoyi-ui/babel.config.js b/ruoyi-ui/babel.config.js index d33f9ea4..2c776d36 100644 --- a/ruoyi-ui/babel.config.js +++ b/ruoyi-ui/babel.config.js @@ -8,6 +8,16 @@ 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': { + // 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': ['@babel/plugin-syntax-dynamic-import'] + }, + 'staging': { + // 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': ['@babel/plugin-syntax-dynamic-import'] } } } \ No newline at end of file