Highlights 💡
Exposing SWC JS API
Rspack now experimentally exposes some SWC JavaScript APIs via rspack.experiments.swc
. This allows you to call SWC methods like transform
or minify
without installing the additional @swc/core package.
See SWC API for more details.

What's Changed
Exciting New Features 🎉
- feat(incremental): silent warning and add presets by @ahabhgk in #10175
- feat: add SWC transform and minify support by @GiveMe-A-Name in #10201
- feat: support
origin.loc
on chunkgroup by @LingyuCoder in #10188 - feat: support regexp and function of
output.clean
by @LingyuCoder in #10207 - feat(incremental): add more tracing for debugging by @ahabhgk in #10214
Bug Fixes 🐞
- fix: print rspack version instead of webpack's (fix #10189) by @tmadeira in #10190
- fix: slash in char match pattern of magic comments by @LingyuCoder in #10187
- fix: CI mulit rust cache file with the same cache key by @stormslowly in #10200
- fix: compiler js object cannot be gc by @SyMind in #9685
- fix: dead loop of circular dependency plugin by @LingyuCoder in #10212
- fix(core): temporarily disable lightningcss warning by @hardfist in #10211
- fix(core): add tracing for native fs by @hardfist in #10219
- fix: missing context depenendency by @LingyuCoder in #10221
- fix: copy zod types instead of bundling them by @Timeless0911 in #10222
Document Updates 📖
- docs: add
require.resolveWeak
module method by @9aoy in #10203 - docs: improve CSS Modules documentation by @chenjiahan in #10209
- docs: add notice about lightningcss by @hardfist in #10210
Other Changes
- test: should not report on wrong case when error by @LingyuCoder in #10185
- chore: release v1.3.7 by @chenjiahan in #10182
- refactor: integrate swc api into rspack_javascript_compiler by @GiveMe-A-Name in #10186
- chore(deps): update dependency @rspack/plugin-react-refresh to ^1.4.1 by @renovate in #10192
- chore(deps): update dependency axios to ^1.9.0 by @renovate in #10193
- chore(deps): update typescript and @microsoft/api-extractor by @renovate in #10194
- chore(deps): update dependency table to v6 by @renovate in #10197
- chore(deps): update webpack-merge to v6 (major) by @renovate in #10198
- test: add test case of issue #10195 by @LingyuCoder in #10202
- chore(deps): remove unused webpack-cli by @chenjiahan in #10199
- test: clean full snapshoted stats api test cases by @LingyuCoder in #10204
- chore(deps): update pnpm to v10 by @renovate in #10092
- refactor: merge rust check and test into one require check job require condtion by @stormslowly in #10216
- chore(ci): test self hosted by @stormslowly in #10148
New Contributors
Full Changelog: v1.3.7...v1.3.8