Skip to content

Commit 793bee2

Browse files
authored
Update HarmonyExportImportedSpecifierDependency.js
1 parent 49637a2 commit 793bee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dependencies/HarmonyExportImportedSpecifierDependency.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ HarmonyExportImportedSpecifierDependency.Template = class HarmonyExportImportedS
570570
if (activeExports.size > 0)
571571
content +=
572572
"if(" +
573-
JSON.stringify(activeExports.add("default")) +
573+
JSON.stringify(Array.from(activeExports.add("default"))) +
574574
".indexOf(__WEBPACK_IMPORT_KEY__) < 0) ";
575575
else content += "if(__WEBPACK_IMPORT_KEY__ !== 'default') ";
576576
const exportsName = dep.originModule.exportsArgument;

0 commit comments

Comments
 (0)