What's Changed
Breaking Changes 🛠
Performance Improvements ⚡
New Features 🎉
- feat: add cache.portable configuration by @jerrykingxyz in #12842
- feat: support
import.defer()for statical path by @ahabhgk in #12900 - feat(rstest): only handle global variables when globals is true by @9aoy in #12921
Bug Fixes 🐞
- fix: enable panic backtrace for release-debug profile by @Copilot in #12856
- fix(mf): respect request changes in shared plugins by @ahabhgk in #12863
- fix: prevent panic on template literals with invalid escape sequences by @Copilot in #12867
- fix: rsc should handle concat module in build server manifest by @SyMind in #12859
- fix: fix used exports for global entry that inject to async entrypoints by @ahabhgk in #12883
- fix: should render export name when re-export from different modules by @JSerFeng in #12886
- fix: unsafe cache cannot watch symlink by @SyMind in #12885
- fix!: remove unsafe cache by @SyMind in #12892
- fix: prevent server actions from being removed in production build by @SyMind in #12898
- fix(rstest):
rstest.importActualnot work when imported from@rstest/coreby @9aoy in #12908 - fix: build_chunk_graph recover logic by @hardfist in #12920
Refactor 🔨
- refactor: collect module runtime requirements by @LingyuCoder in #12843
- refactor: use runtime module for optimized deferred module by @ahabhgk in #12884
- refactor: optimize RuntimeGlobals definition with auto-inc macro by @ahabhgk in #12889
- refactor: enable rule for all crates by @hardfist in #12893
- refactor: enable more perf rule by @hardfist in #12901
- refactor: incremental.buildChunkGraph works only for skip building chunk graph by @JSerFeng in #12845
Other Changes
- chore: run workflow for v1.x branch by @SyMind in #12855
- chore: release 2.0.0-alpha.1 by @LingyuCoder in #12860
- chore(build): remove banner plugin for CommonJS default export workaround by @Timeless0911 in #12869
- chore(deps): update dependency lodash to v4.17.23 [security] by @renovate[bot] in #12832
- test: use tapAsyc api to wait server to close by @stormslowly in #12870
- chore(deps): update patch crates by @renovate[bot] in #12871
- chore(deps): update patch npm dependencies by @renovate[bot] in #12872
- chore: move agents folder to .agents and add rspack-perf-profiling skill by @hardfist in #12880
- chore(ci): update diff action commit id by @yifancong in #12881
- chore: update Rspress to v2 and enable llms by @chenjiahan in #12907
- chore: add rspack-sftrace skill by @quininer in #12911
- chore: bump swc_core from 55 to 56 and swc-experimental from 0.4.1 to 0.5.0 by @CPunisher in #12906
- chore(test): remove rust flaky test by @stormslowly in #12914
- chore: gracefully explain unsupported interfaces by @martinjlowm in #12782
New Contributors
- @martinjlowm made their first contribution in #12782
Full Changelog: v2.0.0-alpha.1...v2.0.0-beta.0