mirror of https://github.com/webpack/webpack.git
Merge 791b093386
into 9f98d803c0
This commit is contained in:
commit
103e990d29
|
@ -737,12 +737,6 @@ class ExternalModule extends Module {
|
|||
case "this":
|
||||
this.buildInfo.strict = false;
|
||||
break;
|
||||
case "system":
|
||||
if (!Array.isArray(request) || request.length === 1) {
|
||||
this.buildMeta.exportsType = "namespace";
|
||||
canMangle = true;
|
||||
}
|
||||
break;
|
||||
case "module":
|
||||
if (this.buildInfo.javascriptModule) {
|
||||
if (!Array.isArray(request) || request.length === 1) {
|
||||
|
|
|
@ -146,14 +146,6 @@ class SystemLibraryPlugin extends AbstractLibraryPlugin {
|
|||
}
|
||||
}
|
||||
if (!otherUnused) {
|
||||
if (
|
||||
!Array.isArray(module.request) ||
|
||||
module.request.length === 1
|
||||
) {
|
||||
externalVarInitialization.push(
|
||||
`Object.defineProperty(${external}, "__esModule", { value: true });`
|
||||
);
|
||||
}
|
||||
if (handledNames.length > 0) {
|
||||
const name = `${external}handledNames`;
|
||||
externalVarInitialization.push(
|
||||
|
|
Loading…
Reference in New Issue