Highlights✨
Enable dev.lazyCompilation: true by default
related PR: #2123
1. startup instantly
startup time 50x↑ faster with lazyCompilation: true
before 3.80s↓
after 0.05s↑
2. When preload meets lazyCompilation magic, a magical chemical burst out
Rspress will preload the corresponding route when hovering over the link, then a magical chemical reaction bursts out between lazyCompilation and preload, enabling a seamless refresh experience.
What's Changed
New Features 🎉
- feat: add
localeRedirect: 'only-default-lang'support by @JounQin in #2125 - feat!: enable
dev.lazyCompilation: trueby default by @SoonIter in #2123 - feat: upgrade create-rspress to support
npm create rspress@betaby @SoonIter in #2128
Bug Fixes 🐞
- fix(plugin-llms): group routes correctly without locales config by @jbroma in #2116
- fix(theme/dynamic-toc): should abandon all elements with
display: none. by @SoonIter in #2119 - fix: the pkg type error in moduleResolution: node16 by @SoonIter in #2127
Other Changes
- chore(deps): update dependency cspell to ^8.19.4 by @renovate in #2118
- chore(deps): update all patch dependencies by @renovate in #2117
- chore(deps): update Rsbuild to v1.3.16 by @chenjiahan in #2120
- chore(deps): migrate react-helmet to @unhead/react@2.0.0 by @SoonIter in #2121
- Release v2.0.0-beta.4 by @SoonIter in #2130
Full Changelog: v2.0.0-beta.3...v2.0.0-beta.4