This commit is contained in:
Alexander Akait 2025-10-02 00:13:51 +05:30 committed by GitHub
commit 51e9d2f2bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 14 deletions

View File

@ -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) {

View File

@ -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(