Skip to content

fix: minify zero-valued translate3d in a single pass - #5

Merged
intellild merged 3 commits into
masterfrom
codex/minify-zero-translate3d
Oct 22, 2026
Merged

intellild merged 3 commits into
masterfrom
codex/minify-zero-translate3d

Conversation

@intellild

Copy link
Copy Markdown
Collaborator

Ports parcel-bundler/lightningcss#1335. Preserves the original upstream commit with its original SHA and author, then adds a merge commit integrating rstackjs master (5aec9d4).

Route zero-valued translate3d() through the existing single-argument translate() serializer so the shortest output is reached on the first minification pass.

For example, transform: translate3d(0, 0, 0) previously became transform:translate(0,0) and needed another pass to become transform:translate(0). This change emits transform:translate(0) immediately, retaining the transform and formatted-output behavior.

Validation on the resulting tree:

  • cargo test --all-features --locked: passed, including integration tests and doctests.
  • git diff --check: passed.

The first test run failed in the unchanged bundler::tests::test_bundle because its media query order was screen, print instead of print, screen; the complete rerun passed.


by OpenAI Codex

SyMind and others added 2 commits September 8, 2026 16:02
Preserve the original commits from parcel-bundler#1335.
Integrate the change with rstackjs/lightningcss master (5aec9d4),
retaining the fork package configuration and existing regression tests.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-22T02:58:57.141417Z e8153a2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codspeed

codspeed Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 12 untouched benchmarks
⏩ 4 skipped benchmarks1


Comparing codex/minify-zero-translate3d (5a11591) with master (ec96a51)

Open in CodSpeed

Footnotes

  1. 4 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@intellild
intellild merged commit 627c1cc into master Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants