提交 66902055 编写于 作者: D Danny Zhong

fix split indirect refer js module into subpackage when split chunks

上级 6f66a82b
......@@ -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.
先完成此消息的编辑!
想要评论请 注册