still echo
"All browser targets in the browserslist configuration have supported ES module.
Therefore we don't build two separate bundles for differential loading.
"
if (allProjectTargetsSupportModule) {
log(
All browser targets in the browserslist configuration have supported ES module.\n +
Therefore we don't build two separate bundles for differential loading.\n
)
needsDifferentialLoading = false
}
Version
5.0.8
Environment info
Steps to reproduce
What is expected?
no console
What is actually happening?
still echo "All browser targets in the browserslist configuration have supported ES module. Therefore we don't build two separate bundles for differential loading. "
翻看源代码,发现这里的if 有点简单,应该至少判断
args.module
的结果,如果用户坚持不要 esmodule 可以不提示if (allProjectTargetsSupportModule) { log(
All browser targets in the browserslist configuration have supported ES module.\n
+Therefore we don't build two separate bundles for differential loading.\n
) needsDifferentialLoading = false }