Compare commits

...

1 Commits

Author SHA1 Message Date
Jarred Sumner
705a4a991a feat(minify): fold array length 2025-06-27 07:21:24 -07:00
2 changed files with 18 additions and 24813 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -62,6 +62,16 @@ describe("bundler", () => {
minifySyntax: true,
target: "bun",
});
itBundled("minify/ArrayLengthFolding", {
files: {
"/entry.js": /* js */ `
capture([1, 2, 3].length);
capture([].length);
`,
},
capture: ["3", "0"],
minifySyntax: true,
});
itBundled("minify/StringAdditionFolding", {
files: {
"/entry.js": /* js */ `