diff --git a/packages/uni-mp-weixin/lib/independent-plugins/optimize-components-position/copy-wx-components-on-demand/index.js b/packages/uni-mp-weixin/lib/independent-plugins/optimize-components-position/copy-wx-components-on-demand/index.js index e582ba1b45058354bec36ebb6ef8be50a6aeadf2..90f10ef2d1505476bb9f17249dac0ae84231439f 100644 --- a/packages/uni-mp-weixin/lib/independent-plugins/optimize-components-position/copy-wx-components-on-demand/index.js +++ b/packages/uni-mp-weixin/lib/independent-plugins/optimize-components-position/copy-wx-components-on-demand/index.js @@ -1,5 +1,5 @@ const collectWxComponentUsedStatus = require('./collect-wx-component-used-status'); -const processNormalPkg = require('./analyze-go-direction'); +const analyzeGoDirection = require('./analyze-go-direction'); const { collectPkgCopyFiles, copyAllWxComponentsFiles } = require('../util'); const { wxComponentsStr, appJsonFileName, mainPkgName } = require('../constant'); const Analyze = require('../analyze'); @@ -18,10 +18,10 @@ class Index extends Analyze { const { copyForNormal, copyForMain, - } = processNormalPkg(usageByPkgMap, appJson, emitFileMap); + } = analyzeGoDirection(usageByPkgMap, appJson, emitFileMap); // 提示app.json中声明的未被使用的全局原生组件(wxcomponents) - const rootToWxComponents = Object.assign({}, copyForNormal, copyForMain); + // const rootToWxComponents = Object.assign({}, copyForNormal, copyForMain); const globalWxComponents = appJson.usingComponents || {}; const wxComponentPaths = [...copyForMain.mainPkg] diff --git a/packages/uni-mp-weixin/lib/independent-plugins/split-independent-chunks-plugin.js b/packages/uni-mp-weixin/lib/independent-plugins/split-independent-chunks-plugin.js index b3bd2773c93184c7c6b0da54975af299a1b33c45..ff77f9083aa28e0d6eb6286e60a08ae152bcb9fa 100644 --- a/packages/uni-mp-weixin/lib/independent-plugins/split-independent-chunks-plugin.js +++ b/packages/uni-mp-weixin/lib/independent-plugins/split-independent-chunks-plugin.js @@ -136,9 +136,6 @@ class SplitHandler { const newChunk = this.compilation.addChunk(chunkName); newChunk.chunkReason = 'split chunk for independent'; for (const module of newChunkInfo.modules) { - if (module.rawRequest && module.rawRequest.indexOf('wx-recorder-manager') >= 0) { - // console.log('sunqing'); - } GraphHelpers.connectChunkAndModule(newChunk, module); [...newChunkInfo.chunks].forEach(chunk => { if (this.removeModuleFromChunkFilter(chunk)) {