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.1] - 2025-01-26
Features
Infinity.toString(radix)
to'Infinity'
(feat(minifier): minimizeInfinity.toString(radix)
to'Infinity'
#8732) (Boshen)const
withlet
for non-exported read-only variables (feat(minifier): replaceconst
withlet
for non-exported read-only variables #8733) (sapphi-red)Math.sqrt
andMath.cbrt
(feat(minifier): evaluateMath.sqrt
andMath.cbrt
#8731) (sapphi-red)Math.pow
with**
(feat(minifier): replaceMath.pow
with**
#8730) (sapphi-red)NaN.toString(radix)
is alwaysNaN
(feat(minifier):NaN.toString(radix)
is alwaysNaN
#8727) (Boshen)foo(...[])
->foo()
(feat(minifier): minimizefoo(...[])
->foo()
#8726) (Boshen)new Map()
(feat(minifier): dce pure expressions such asnew Map()
#8725) (Boshen)Bug Fixes
new (import(''), function() {})
(fix(codegen): remove parens fromnew (import(''), function() {})
#8707) (Boshen)Unknown.fromCharCode
should not be treated asString.fromCharCode
(fix(minifier):Unknown.fromCharCode
should not be treated asString.fromCharCode
#8709) (sapphi-red)isStaticChildren
argument forFragment
with multiple children (fix(transformer/jsx): incorrectisStaticChildren
argument forFragment
with multiple children #8713) (Dunqing)Performance
tmp_bindings
(perf(manger): remove uselesstmp_bindings
#8735) (Dunqing)undefined
tovoid 0
before everything else (perf(minifier): normalizeundefined
tovoid 0
before everything else #8699) (Boshen)Refactor
MayHaveSideEffects
(refactor(ecmascript): remove the lifetime annotation onMayHaveSideEffects
#8717) (Boshen)GraphicalReporter
(refactor(linter): move finishing default diagnostic message toGraphicalReporter
#8683) (Sysix)slots
(refactor(mangler): simplify initialization ofslots
#8734) (Dunqing)try_fold_known_string_methods
(refactor(minifier): allow mutating arguments in methods called fromtry_fold_known_string_methods
#8729) (sapphi-red)Ctx
(refactor(minifier): useCtx
#8716) (Boshen)Normalize
(refactor(minifier): clean upNormalize
#8700) (Boshen)ScopeTree::iter_bindings
(refactor(semantic): simplifyScopeTree::iter_bindings
#8723) (Dunqing)Testing