Update core.js

Added magnify edgecase
This commit is contained in:
Royan Xu 2025-04-25 18:25:02 -07:00 committed by GitHub
parent 944688f20f
commit 46bd711184
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -368,8 +368,12 @@ var main;(function(){`
if (EFIConfig.doMinify) {
_status("Shrinking file...");
await wait(50);
patchedFile = await minify(patchedFile, parser, EFIConfig);
if (globalThis.process) {
let _minify = require("./minify").minify;
patchedFile = await _minify(patchedFile, parser, EFIConfig);
} else {
patchedFile = await minify(patchedFile, parser, EFIConfig);
}
}
@ -436,4 +440,4 @@ if (globalThis.process) {
patchClient: patchClient,
conf: EFIConfig
}
}
}