refactor(lightningcss): replace parcel source map with rspack source map#14592
refactor(lightningcss): replace parcel source map with rspack source map#14592intellild wants to merge 9 commits into
Conversation
📦 Binary Size-limit
🎉 Size decreased by 392.00KB from 67.82MB to 67.44MB (⬇️0.56%) |
Merging this PR will not alter performance
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | rust@runtime_requirements |
10.4 ms | 10.6 ms | -2.37% |
| ⚡ | Simulation | rust@create_module_hashes |
8.6 ms | 8.5 ms | +2.15% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing codex/lightningcss-sourcemap-writer (4169ecd) with main (42f39a8)
Footnotes
-
47 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. ↩
Summary
Use the new generic Lightning CSS source map writer API so Rspack can generate
rspack_sources::SourceMapdirectly instead of going throughparcel_sourcemap.This updates the workspace
lightningcssdependency to the git revision61aee3776df2563e7c0d2982fcf1e7d3ec51571bfromintellild/lightningcss, removes directparcel_sourcemapusage from the loader and minimizer, and keeps source map output wired through localRspackSourceMapWriteradapters.Validation
cargo check -p rspack_loader_lightningcss -p rspack_plugin_lightning_css_minimizercargo tree -i parcel_sourcemapreturns package not foundcargo fmt --check -p rspack_loader_lightningcss -p rspack_plugin_lightning_css_minimizerpnpm exec rstest Config.part1.test.js -t source-map-absolute-sourcespnpm exec rstest Config.part3.test.js -t verify-bundle-css-minify-lightningby OpenAI Codex