diff --git a/packages/uni-mp-weixin/lib/createIndependentPlugin.js b/packages/uni-mp-weixin/lib/createIndependentPlugin.js index 7b39b1d4a6ec7a60b63ac48e7dcffa9b4e0ad3cc..b981b3218f4d58d1ec7cd4bbcdd3b7f7d3bd7b86 100644 --- a/packages/uni-mp-weixin/lib/createIndependentPlugin.js +++ b/packages/uni-mp-weixin/lib/createIndependentPlugin.js @@ -10,7 +10,7 @@ const AppInterceptorPlugin = require('./independent-plugins/app-interceptor-plug module.exports = function createIndependentPlugins () { const manifestConfig = process.UNI_MANIFEST - const weixinConfig = manifestConfig['mp-weixin'] + const weixinConfig = manifestConfig['mp-weixin'] || {} const independentSwitch = !!weixinConfig.independent if (!independentSwitch) return []