refactor(oxfmt): Handle all options in Rust to reduce JSON payload size#18874
Merged
graphite-app[bot] merged 1 commit intomainfrom Feb 6, 2026
Merged
Conversation
Member
Author
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
2917d5b to
b78a404
Compare
85f24d2 to
d671092
Compare
b78a404 to
d308f1a
Compare
d671092 to
f2c5f98
Compare
10ebd74 to
22f8b78
Compare
f2c5f98 to
963c2f4
Compare
22f8b78 to
c6a365e
Compare
963c2f4 to
ad3b5c4
Compare
c6a365e to
60d8702
Compare
ad3b5c4 to
3141598
Compare
3141598 to
657687c
Compare
60d8702 to
631a71e
Compare
657687c to
0d3308e
Compare
631a71e to
37daf43
Compare
0d3308e to
d468e9c
Compare
37daf43 to
73014fe
Compare
Dunqing
approved these changes
Feb 6, 2026
73014fe to
f54cbd0
Compare
d468e9c to
237c9bb
Compare
Contributor
Merge activity
|
…ze (#18874) Follow up on #18373 Aims to reduce: - Rust -> JS payload size - Logic itself in JS side by handling all options in Rust side. Before: - Plugin options handled globally during config caching - All files received full JSON - JS side filtered by `parser` name to decide plugin loading After: - Plugin options added per-file in `finalize_external_options()` if needed - Only relevant files receive plugin flags based on `FormatFileStrategy` - JS side just checks flag existence (`parser` knowledge not needed)
237c9bb to
6ee2d59
Compare
f54cbd0 to
eb8a91c
Compare
Base automatically changed from
01-22-_poc_feat_oxfmt_use_oxc_formatter_in_js-in-xxx_part
to
main
February 6, 2026 05:56
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.

Follow up on #18373
Aims to reduce:
by handling all options in Rust side.
Before:
parsername to decide plugin loadingAfter:
finalize_external_options()if neededFormatFileStrategyparserknowledge not needed)