Update lib/client-bundle-plugin.js

This commit is contained in:
Ingvar Stepanyan
2021-05-26 21:08:17 +01:00
parent e7d55bf903
commit d07c57ecaa

View File

@@ -37,7 +37,8 @@ export function getDependencies(clientOutput, item) {
// Don't add self as dependency
crawlDependencies.delete(item.fileName);
// Merge referencedFiles as regular deps.
// Merge referencedFiles as regular deps. They need to be in the same Set as
// some JS files might appear in both lists and need to be deduped too.
//
// Didn't do this as part of the main loop since their `chunk` can't have
// nested deps and sometimes might be missing altogether, depending on type.