Skip to content

Commit 8001f03

Browse files
author
Mohsen Azimi
committed
Merge branch 'set-concat' of github.com:mohsen1/webpack into set-concat
2 parents aa536b7 + 793bee2 commit 8001f03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dependencies/HarmonyExportImportedSpecifierDependency.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,10 @@ HarmonyExportImportedSpecifierDependency.Template = class HarmonyExportImportedS
550550

551551
// Filter out exports which are defined by other exports
552552
// and filter out default export because it cannot be reexported with *
553-
if (activeExports.length > 0)
553+
if (activeExports.size > 0)
554554
content +=
555555
"if(" +
556-
JSON.stringify(activeExports.add("default")) +
556+
JSON.stringify(Array.from(activeExports.add("default"))) +
557557
".indexOf(__WEBPACK_IMPORT_KEY__) < 0) ";
558558
else content += "if(__WEBPACK_IMPORT_KEY__ !== 'default') ";
559559
const exportsName = dep.originModule.exportsArgument;

0 commit comments

Comments
 (0)