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 — fix(javascript): fold `undefined` arithmetic, string reads and more calls when minifying by alexander-akait · Pull Request #23178 · webpack/webpack

fix(javascript): fold undefined arithmetic, string reads and more calls when minifying #23178

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 6 commits into main from fix/minify-more-gaps
Nov 7, 2026

Uh oh!

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

Merged

fix(javascript): fold undefined arithmetic, string reads and more calls when minifying #23178

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit Hold shift + click to select a range
ef57f3a
fix(minify): parenthesize kept infinities, keep `return void` tails `…
alexander-akait Nov 6, 2026
4cde488
fix(minify): print a call nothing reads as its function's statements …
alexander-akait Nov 6, 2026
fc48ecb
fix(minify): fold `undefined` in arithmetic, a template's `length` an…
alexander-akait Nov 6, 2026
6e40d3e
test(minify): retire the oxc gaps the `undefined`, template and strin…
alexander-akait Nov 6, 2026
beb300d
fix(minify): keep parentheses around an assignment under `*`, an `imp…
alexander-akait Nov 6, 2026
cdb80ea
test(minify): list again the three sources #23171's folds no longer c…
alexander-akait Nov 6, 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
test(minify): list again the three sources #23171's folds no longer c…
…lose

The `new` callee fold reads only a bare name, and an inlined call keeps
`return void` as `undefined`, so `inline_single_use_variable.rs:163`,
`:167` and `issue-281/wrap_iife_in_return_call` still print bigger.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013FhutSMr3pnkt22erP6rbn
  • Loading branch information

Uh oh!

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

@alexander-akait @claude
alexander-akait and claude committed Nov 6, 2026
commit cdb80ea5f72ba1517998a9a759d3e0e210ec0dda

There are no files selected for viewing

2 changes: 2 additions & 0 deletions 2 test/helpers/oxcSmaller.js
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,8 @@ const OXC_SMALLER_BY_REASON = [
"oxc writes a variable's value at its one read and drops the variable, as oxc's `peephole/inline_single_use_variable.rs` tests show",
[
"oxc minifier: peephole/inline_single_use_variable.rs:282",
"oxc minifier: peephole/inline_single_use_variable.rs:163",
"oxc minifier: peephole/inline_single_use_variable.rs:167",
"oxc minifier: peephole/inline_single_use_variable.rs:222",
"oxc minifier: peephole/inline_single_use_variable.rs:226",
"oxc minifier: peephole/inline_single_use_variable.rs:230",
Expand Down
3 changes: 2 additions & 1 deletion 3 test/helpers/swcSmaller.js
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,8 @@ const SWC_SMALLER_BY_REASON = [
"terser compress: issue-281/negate_iife_issue_1073",
"terser compress: issue-281/issue_1288_side_effects",
"terser compress: issue-281/issue_1595_3",
"terser compress: issue-281/wrap_iife"
"terser compress: issue-281/wrap_iife",
"terser compress: issue-281/wrap_iife_in_return_call"
]
],
[
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.