GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(minify): fold typeof facts, constant calls and dead blocks; drop nullish chains by alexander-akait · Pull Request #23398 · webpack/webpack

feat(minify): fold typeof facts, constant calls and dead blocks; drop nullish chains #23398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
alexander-akait merged 28 commits into main from feat/minify-gap-sweep-2
Nov 17, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

feat(minify): fold typeof facts, constant calls and dead blocks; drop nullish chains #23398

Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e7f6796
feat(minify): close more one-pass minifier gaps to swc and oxc
alexander-akait Nov 16, 2026
09abb6b
test: retire oxc rows no longer bigger
alexander-akait Nov 16, 2026
9999a31
feat(minify): print an if/else whose else is a known-test if as ?:
alexander-akait Nov 16, 2026
f6cdf06
feat(minify): move single-use top-level functions top_retain does not…
alexander-akait Nov 16, 2026
0abe1a5
feat(minify): fold a known switch keeping its bare var declarations
alexander-akait Nov 16, 2026
9c599bf
feat(minify): print the effects of any static field value of an unrea…
alexander-akait Nov 16, 2026
d3b2438
feat(minify): drop a write a returned sequence reads back
alexander-akait Nov 16, 2026
dc4d825
test: record new one-pass prints and retire closed rows
alexander-akait Nov 16, 2026
f43e298
feat(minify): fold the effects of an unread object literal's computed…
alexander-akait Nov 16, 2026
2278284
feat(minify): reduce an in-place call whose unpassed parameter only f…
alexander-akait Nov 16, 2026
37afacd
test: record new one-pass prints and retire closed rows
alexander-akait Nov 16, 2026
cafd5ed
fix(minify): keep a picked block's if out of ?: where a block holds it
alexander-akait Nov 16, 2026
72c3eaf
test: retire an oxc row no longer bigger
alexander-akait Nov 16, 2026
65eb95f
feat(minify): fold a known if whose dead block declares a function
alexander-akait Nov 16, 2026
e3b8dea
feat(minify): drop an unread ~, - or + of a pure IIFE returning a pri…
alexander-akait Nov 16, 2026
143f07e
feat(minify): fold typeof of a moved function and typeof string facts
alexander-akait Nov 16, 2026
2bc1db8
feat(minify): fold a function written in place returning a literal to…
alexander-akait Nov 16, 2026
1797337
feat(minify): drop optional chains on known nullish or non-nullish bases
alexander-akait Nov 16, 2026
0521bd5
fix(minify): keep a constant call stable across passes, record prints…
alexander-akait Nov 16, 2026
7686dee
test: restore the external corpus submodules
alexander-akait Nov 16, 2026
c5c9a09
Merge main into feat/minify-gap-sweep-2
alexander-akait Nov 16, 2026
5459be3
feat(minify): print a number constant where a member reads it
alexander-akait Nov 16, 2026
a0a118d
fix(minify): keep parameter typeof errors, spread conversions, privat…
alexander-akait Nov 16, 2026
feb3ead
fix(minify): type a constant call's null return
alexander-akait Nov 16, 2026
c9b3e48
test(minify): hold a strict class declaration's private-name key
alexander-akait Nov 16, 2026
17dcdf8
chore: keep trims and number members in the combined changeset
alexander-akait Nov 16, 2026
83999c5
test: keep one-pass-dead-stores alike on every engine
alexander-akait Nov 16, 2026
044ce4b
test: retire the swc row the minifier now matches
alexander-akait Nov 16, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
test: retire an oxc row no longer bigger
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
alexander-akait committed Nov 16, 2026
commit 72c3eafb2af20734878f298de97bb13cd51b2f93

There are no files selected for viewing

1 change: 0 additions & 1 deletion 1 test/helpers/oxcSmaller.js
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ const OXC_SMALLER_BY_REASON = [
[
"oxc knows more expressions have no side effects and drops them when their value is unused, as oxc's `ecmascript/may_have_side_effects.rs` tests show",
[
"oxc minifier: ecmascript/may_have_side_effects.rs:755",
"oxc minifier: ecmascript/may_have_side_effects.rs:1312",
"oxc minifier: ecmascript/may_have_side_effects.rs:1377",
"oxc minifier: ecmascript/may_have_side_effects.rs:795",
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.