From 4211a5df8eb990bee47d1aa5c7efc7fe4a315ba5 Mon Sep 17 00:00:00 2001 From: leezng Date: Wed, 18 Aug 2021 09:57:21 +0800 Subject: [PATCH] fix: vue externals config error. #129 --- build/webpack.prod.conf.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 0d7aaa0..6067ec2 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -43,7 +43,11 @@ if (!isExampleEnv) { libraryTarget: 'umd', }; webpackConfig.externals = { - vue: 'Vue', + vue: { + root: 'Vue', + commonjs: 'vue', + commonjs2: 'vue', + }, }; webpackConfig.plugins.push( // extract css into its own file