refactor(formatter_css): update oxc_formatter_css to support sortTailwindcss option#23323
Conversation
Merging this PR will improve performance by 3.61%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | pipeline[kitchen-sink.tsx] |
110.2 ms | 120.6 ms | -8.63% |
| ❌ | Simulation | pipeline[App.tsx] |
34.4 ms | 36.5 ms | -5.83% |
| ❌ | Simulation | pipeline[binder.ts] |
13.3 ms | 13.9 ms | -4.2% |
| ❌ | Simulation | pipeline[react.development.js] |
4.8 ms | 5 ms | -3.14% |
| ⚡ | Simulation | linter[kitchen-sink.tsx] |
218.8 ms | 180.3 ms | +21.36% |
| ⚡ | Simulation | linter[binder.ts] |
33.8 ms | 30.7 ms | +10.12% |
| ⚡ | Simulation | linter[App.tsx] |
107.8 ms | 98.3 ms | +9.61% |
| ⚡ | Simulation | formatter[errors.ts] |
613.8 µs | 569.5 µs | +7.79% |
| ⚡ | Simulation | linter[react.development.js] |
15.4 ms | 14.4 ms | +6.87% |
| ⚡ | Simulation | isolated-declarations[vue-id.ts] |
52.8 ms | 49.7 ms | +6.19% |
| ⚡ | Simulation | formatter[handle-comments.js] |
2.9 ms | 2.8 ms | +4.11% |
| ⚡ | Simulation | formatter[core.js] |
1.6 ms | 1.6 ms | +3.44% |
| ⚡ | Simulation | formatter[index.tsx] |
3.9 ms | 3.8 ms | +3.35% |
| ⚡ | Simulation | formatter[next.ts] |
2.3 ms | 2.3 ms | +3.12% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss (a7395f7) with 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence (020287d)2
Footnotes
-
9 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. ↩
-
No successful run was found on
06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence(3b1be74) during the generation of this report, so 9f04c29 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
834f364 to
d1d9281
Compare
2d75705 to
ed0a7d9
Compare
d1d9281 to
19c595b
Compare
fdc75db to
f812916
Compare
49116ab to
72fb010
Compare
0444ce7 to
846de51
Compare
72fb010 to
45b346e
Compare
846de51 to
c54fcbe
Compare
45b346e to
ac7386c
Compare
c54fcbe to
e82ca18
Compare
ac7386c to
231cc6b
Compare
e82ca18 to
29dc930
Compare
86ff7ea to
98fba53
Compare
6f28d30 to
318ffdf
Compare
98fba53 to
5f409de
Compare
318ffdf to
fcf1c2e
Compare
5f409de to
acd3b8e
Compare
acd3b8e to
f9caea9
Compare
fcf1c2e to
fbe56a6
Compare
fbe56a6 to
5ac1f9d
Compare
f9caea9 to
298b185
Compare
3b1be74 to
1f8e80f
Compare
a7395f7 to
c4d29f4
Compare
Merge activity
|
…ailwindcss` option (#23323) - Before this PR: If `sortTailwindcss` option is enabled for CSS/LESS/SCSS, it was formatted by Prettier - After this PR: `oxc_formatter_css` also handles `sortTailwindcss` as like `oxc_formatter` does
1f8e80f to
9d2a957
Compare
c4d29f4 to
43aa5fe
Compare
…ailwindcss` option (#23323) - Before this PR: If `sortTailwindcss` option is enabled for CSS/LESS/SCSS, it was formatted by Prettier - After this PR: `oxc_formatter_css` also handles `sortTailwindcss` as like `oxc_formatter` does

sortTailwindcssoption is enabled for CSS/LESS/SCSS, it was formatted by Prettieroxc_formatter_cssalso handlessortTailwindcssas likeoxc_formatterdoes