提交 1b44dd92 编写于 作者: S songyu 提交者: 折腾笔记

chore: 删除测试代码

上级 c8f37bf2
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]
......
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册