We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a2fd0 commit de7ec7bCopy full SHA for de7ec7b
1 file changed
lib/library/AssignLibraryPlugin.js
@@ -243,7 +243,7 @@ class AssignLibraryPlugin extends AbstractLibraryPlugin {
243
if (topLevelDeclarations.has(base))
244
return topLevelDeclarationContradictionError(base);
245
const { data } = codeGenerationResults.get(module, chunk.runtime);
246
- topLevelDeclarations = data.get("topLevelDeclarations");
+ topLevelDeclarations = data && data.get("topLevelDeclarations");
247
if (topLevelDeclarations && topLevelDeclarations.has(base)) {
248
249
}
0 commit comments