Skip to content

Commit 1c3bef9

Browse files
committed
merge PR webpack#4884 again
by @filipesilva
1 parent 9f8cdd2 commit 1c3bef9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/optimize/ConcatenatedModule.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class ConcatenatedModule extends Module {
288288

289289
const result = new ConcatSource();
290290
if(moduleToInfoMap.get(this.rootModule).needCompatibilityFlag) {
291-
result.add(`Object.defineProperty(${this.rootModule.moduleArgument || "exports"}, "__esModule", { value: true });\n`);
291+
result.add(`Object.defineProperty(${this.rootModule.exportsArgument || "exports"}, "__esModule", { value: true });\n`);
292292
}
293293
modulesWithInfo.forEach(info => {
294294
result.add(`\n// CONCATENATED MODULE: ${info.module.readableIdentifier(requestShortener)}\n`);

0 commit comments

Comments
 (0)