diff --git a/lib/ExternalModule.js b/lib/ExternalModule.js index 1499ac813..8ecc88e36 100644 --- a/lib/ExternalModule.js +++ b/lib/ExternalModule.js @@ -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) { diff --git a/lib/library/SystemLibraryPlugin.js b/lib/library/SystemLibraryPlugin.js index 380962091..6b1da6514 100644 --- a/lib/library/SystemLibraryPlugin.js +++ b/lib/library/SystemLibraryPlugin.js @@ -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(