diff --git a/build/webpack.config.js b/build/webpack.config.js index 311114c6371d16dc9e6731a719993498f7d43c42..6aceac2cdace00344cb5bbfbf304e737b5853e6c 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') }