From 43f6ccd62b8f1b962d1ff346da7613ce24321094 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 18 Oct 2019 19:11:33 +0800 Subject: [PATCH] fix(v3): config.externals --- build/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/webpack.config.js b/build/webpack.config.js index 311114c63..6aceac2cd 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -50,7 +50,7 @@ if (process.env.UNI_VIEW) { // 方便调试 } module.exports = function configureWebpack (config) { if (process.env.UNI_VIEW === 'true') { - delete config.externals['vue'] + config.externals && (delete config.externals['vue']) alias['vue$'] = resolve('packages/uni-app-plus/dist/view.runtime.esm.js') } -- GitLab