[image-optimizer] Refactor into lightweight transform module - #97988
Open
styfle wants to merge 2 commits into
Open
[image-optimizer] Refactor into lightweight transform module#97988styfle wants to merge 2 commits into
styfle wants to merge 2 commits into
Conversation
Contributor
Failing test suitesCommit: e2635d8 | About building and testing Next.js
Expand output● app-dir action handling › HMR › should support updating the action |
styfle
force-pushed
the
styfle/imgopt-lightweight-transform
branch
from
August 28, 2026 03:01
c2eb1ef to
dc4abd0
Compare
styfle
marked this pull request as ready for review
August 28, 2026 03:04
styfle
force-pushed
the
styfle/imgopt-lightweight-transform
branch
from
August 28, 2026 03:31
dc4abd0 to
35984cc
Compare
styfle
force-pushed
the
styfle/imgopt-lightweight-transform
branch
from
August 28, 2026 04:19
35984cc to
ca52aa6
Compare
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.
This PR is strictly a refactor, no logic should change.
The idea is that we eventually want to run the image optimizer transform step in a child process. This PR refactors the code to make a new
transform.tsthat is lightweight and should reduce some of the overhead of loading a large module graph when spawning a new process.