What's Changed
Performance Improvements ⚡
- perf(logger): calculate trace only when needed by @chenjiahan in #10683
- perf(ci): move benchmark building to self-hosted by @stormslowly in #10680
- perf: inline module graph partials by @CPunisher in #10727
- perf: improve zod references to reduce bundle size by @chenjiahan in #10738
- perf(zod/v4): disable Zod JIT by @colinaaa in #10739
- perf: cache get exports type on module graph cache by @LingyuCoder in #10741
- perf: parallel get runtime hash of concatenated modules by @LingyuCoder in #10744
- perf: parallel get concatenated imports when enter module by @LingyuCoder in #10747
New Features 🎉
- feat: extend target type to include es2023, es2024, and es2025 by @chenjiahan in #10700
- feat(ci): upload perf data by commit when PR merged by @stormslowly in #10715
- feat: support preamble in swc minifier by @CPunisher in #10713
- feat(create-rspack): update tsconfig.json by @chenjiahan in #10674
- feat: add support for SHA-256 by @pgoldberg in #10553
- feat: type reexports presence tolerant by @ahabhgk in #10719
- feat(zod/v4): upgrade to Zod V4 by @colinaaa in #10678
- feat(ci): use full match only to find self-hosted build caches by @stormslowly in #10724
- feat(rstest): support manual mock by @fi3ework in #10625
- feat: introduce rspack_tasks by @hardfist in #10699
Bug Fixes 🐞
- fix: generator data url function panic by @SyMind in #10682
- fix(binding): remove Node 10 compatibility code by @chenjiahan in #10685
- fix(ci): linux x86 native build hardcoded profile by @stormslowly in #10693
- fix: failed to resolve
browserslist:env
from target by @chenjiahan in #10730 - fix: add
-debugids
to Zod schema by @colinaaa in #10728 - fix:
loaderContext.importModule
should return error by @colinaaa in #10750
Refactor 🔨
- refactor(zod/v4): use
.superRefine()
forbuiltin:swc-loader
by @colinaaa in #10679 - refactor: js api readableIdentifier in module by @SyMind in #10686
- refactor: fast fail matrix testing to better utilizing CI runner by @stormslowly in #10687
- refactor: move codspeed build to self-hosted by @stormslowly in #10688
- refactor: prefetch exports info data of getters part 3 by @LingyuCoder in #10652
- refactor: remove unnecessary callback by @hardfist in #10714
- refactor: prefer native build for better speed by @stormslowly in #10725
- refactor(zod/v4): replace deprecated
.superRefine()
by @colinaaa in #10729
Document Updates 📖
- docs: add some clarification of module-graph-partial by @hardfist in #10684
- docs: use assets.rspack.dev by @stormslowly in #10692
- docs: update lazyCompilationMiddleware interface by @JSerFeng in #10695
- docs: update tracing doc typo by @hardfist in #10723
Other Changes
- chore: fix release-debug build for windows by @quininer in #10649
- chore: release 1.4.0-beta.1 by @CPunisher in #10681
- chore: remove rspack.dev redirect by @hardfist in #10691
- chore(workflow): simplify PR template by @chenjiahan in #10701
- chore(deps): update dependency @rslib/core to v0.10.0 by @renovate in #10703
- chore(deps): update dependency axios to ^1.10.0 by @renovate in #10705
- chore(deps): update dependency terser to v5.43.0 by @renovate in #10709
- chore(deps): update dependency ts-jest to v29.4.0 by @renovate in #10710
- chore(deps): update dependency acorn to ^8.15.0 by @renovate in #10704
- chore(benchmark): add rspack benchcases by @h-a-n-a in #9345
- chore(benchmark): limit parallel forks in vitest by @CPunisher in #10718
- chore(CI): fix codspeed build in GitHub hosted runner by @stormslowly in #10720
- chore: add diff artifact action by @CPunisher in #10731
- chore: remove prebundle config for enhanced-resolve by @chenjiahan in #10736
- chore(deps): update dependency create-rstack to v1.5.1 by @renovate in #10752
- chore(deps): update dependency rspress-plugin-sitemap to ^1.2.0 by @renovate in #10753
New Contributors
- @pgoldberg made their first contribution in #10553
Full Changelog: v1.4.0-beta.1...v1.4.0-rc.0