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