未验证 提交 95892fda 编写于 作者: fxy060608's avatar fxy060608 提交者: GitHub

Merge pull request #2383 from huadong/enhance-split-chunks

fix split indirect refer js module into subpackage when split chunks
......@@ -180,6 +180,8 @@ module.exports = function getSplitChunks () {
}
return true
}
} else {
return hasMainPackageComponent(m.module, subPackageRoot)
}
}
}
......@@ -202,7 +204,7 @@ module.exports = function getSplitChunks () {
matchSubPackages.has(root + '/') &&
!hasMainPackage(chunks) &&
!hasMainPackageComponent(module, matchSubPackages.values().next().value)
) {
) {
if (process.env.UNI_OPT_TRACE) {
console.log(root, module.resource, chunks.map(chunk => chunk.name))
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册