Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Akait 548198d5c6
Merge 791b093386 into e1afcd4cc2 2025-10-04 02:05:55 -07:00
alexander-akait 791b093386 test: system default export 2025-09-26 20:21:36 +03:00
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(