mirror of https://github.com/webpack/webpack.git
fix bug
This commit is contained in:
parent
3502287bbb
commit
be896f2b34
|
|
@ -616,6 +616,9 @@ HarmonyExportImportedSpecifierDependency.Template = class HarmonyExportImportedS
|
|||
}
|
||||
|
||||
getConditionalReexportStatement(module, key, name, valueKey) {
|
||||
if (valueKey === false) {
|
||||
return "/* unused export */\n";
|
||||
}
|
||||
const exportsName = module.exportsArgument;
|
||||
const returnValue = this.getReturnValue(name, valueKey);
|
||||
return `if(__webpack_require__.o(${name}, ${JSON.stringify(
|
||||
|
|
|
|||
|
|
@ -132,8 +132,7 @@ const getFinalName = (
|
|||
requestShortener,
|
||||
strictHarmonyModule
|
||||
);
|
||||
}
|
||||
if (!info.module.isUsed(directExport)) {
|
||||
} else if (!info.module.isUsed(exportName)) {
|
||||
return "/* unused export */ undefined";
|
||||
}
|
||||
const name = info.internalNames.get(directExport);
|
||||
|
|
|
|||
Loading…
Reference in New Issue