Conversation
Contributor
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Contributor
Monitor Oxc
|
CodSpeed Performance ReportMerging #8838 will not alter performanceComparing Summary
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[0.48.2] - 2025-02-02
Features
MangleIf(feat(minifier): completeMangleIf#8810) (Boshen)(a = _a) != null ? a : band(a = _a) != null ? a.b() : undefined(feat(minifier): compress(a = _a) != null ? a : band(a = _a) != null ? a.b() : undefined#8823) (sapphi-red)Array.of(feat(minifier): implement known methodArray.of#8805) (7086cmd)a != null ? a.b : undefinedtoa?.b(feat(minifier): compressa != null ? a.b : undefinedtoa?.b#8802) (feat(minifier): compressa != null ? a.b : undefinedtoa?.b(#8802) #8808) (Boshen)a != null ? a.b : undefinedtoa?.b(feat(minifier): compressa != null ? a.b : undefinedtoa?.b#8802) (sapphi-red)a != null ? a : bintoa ?? b(feat(minifier): compressa != null ? a : bintoa ?? b#8801) (sapphi-red)'str1,str2'.split(',')(feat(minifier): compress array of string literals to'str1,str2'.split(',')#8786) (sapphi-red)typeof a.b === 'undefined'toa.b === void 0(feat(minifier): compresstypeof a.b === 'undefined'toa.b === void 0#8751) (sapphi-red)a == null && btoa ?? bwhen return value is ignored (feat(minifier): compressa == null && btoa ?? bwhen return value is ignored #8749) (sapphi-red)a[0]andthis.ainhas_no_side_effect_for_evaluation_same_target(feat(minifier): supporta[0]andthis.ainhas_no_side_effect_for_evaluation_same_target#8748) (sapphi-red)!(a, b)->a, !b(feat(minifier): minimize!(a, b)->a, !b#8746) (Boshen)import.metastatement (feat(minifier): remove unusedimport.metastatement #8744) (Boshen)breakandcontinue(feat(minifier): remove unreachable statements afterbreakandcontinue#8743) (Boshen)Bug Fixes
else ifwas converted toif(fix(minifier): mark as changed whenelse ifwas converted toif#8837) (翠 / green).split()(fix(minifier): unreachable error when compressing string literal arrays with.split()#8806) (sapphi-red)var undefined = 1; foo === null || foo === undefinedshould not be compressed (fix(minifier): fixvar undefined = 1; foo === null || foo === undefinedshould not be compressed #8803) (sapphi-red)+void unknowntoNaNand fix typo (fix(minifier): avoid minifying+void unknowntoNaNand fix typo #8784) (7086cmd){ let foo; const bar = undefined; }->{ let foo, bar; }(fix(minifier):{ let foo; const bar = undefined; }->{ let foo, bar; }#8764) (Boshen)consttoletif assignment to constant variable. (fix(minifier): do not changeconsttoletif assignment to constant variable. #8761) (Boshen)[]['concat'](1)(fix(minifier): fix crash with[]['concat'](1)#8750) (sapphi-red)Performance
tmp_bindings#8735)" (perf(manger): Revert "perf(manger): remove useless tmp_bindings (#8735)" #8741) (Dunqing)Documentation
JSXExpression::EmptyExpression(docs(ast): correct documentation forJSXExpression::EmptyExpression#8816) (Dunqing)AstBuilderdoc comments (docs(ast): reformatAstBuilderdoc comments #8774) (overlookmotel)Refactor
Visitmore understandable (refactor(ast): make generated code forVisitmore understandable #8825) (overlookmotel)AstKindin generated code forVisittrait (refactor(ast): comments for enums with noAstKindin generated code forVisittrait #8796) (overlookmotel)VisitMut(refactor(ast): shorten generated code forVisitMut#8795) (overlookmotel)AstKind(refactor(ast): remove unnecessary lint from generated code forAstKind#8794) (overlookmotel)Visittrait (refactor(ast): alter comments in generatedVisittrait #8793) (overlookmotel)#[estree(type)]attr on struct fields to#[estree(ts_type)](refactor(ast): rename#[estree(type)]attr on struct fields to#[estree(ts_type)]#8767) (overlookmotel)#[estree(type)]attr on types to#[estree(rename)](refactor(ast): rename#[estree(type)]attr on types to#[estree(rename)]#8766) (overlookmotel)extract_id_or_assign_to_idmethod (refactor(minifier): extractextract_id_or_assign_to_idmethod #8822) (sapphi-red)mangleStmts(refactor(minifier): port esbuild'smangleStmts#8770) (Boshen)EmptyStatementin a single place (refactor(minifier): removeEmptyStatementin a single place #8745) (Boshen)Testing