What's Changed
Breaking Changes 🍭
Please visit #813 for details of all breaking changes.
- rename
output.disableCssExtract
tooutput.injectStyles
in #906 - rename
output.disableSourceMap
tooutput.sourceMap
, source maps no longer generated during build by default in #896 - rename the options of
@rsbuild/plugin-babel
to babelLoaderOptions in #858 - remove deprecated
source.entries
config in #839 - writeToDisk defaults to false in #859
- add output.targets to replace createRsbuild.target in #871
New Features 🎉
- feat: add type declaration for PluginSolidPresetOptions (#783) by @lalalazero in #848
- feat(plugin-vue): apply default split chunk rules by @chenjiahan in #851
- feat(plugin-vue2): apply default split chunk rules by @chenjiahan in #852
- feat(core): inspect normalized config by @chenjiahan in #870
- feat(core): expose loadConfig method by @chenjiahan in #879
- feat(core): support get original Rsbuild config by @chenjiahan in #894
- feat(plugin-stylus): support extension
.stylus
by @xc2 in #895 - feat: add new
@rsbuild/plugin-umd
package by @chenjiahan in #891 - feat: support rsbuild.createDevServer by @9aoy in #902
Performance 🚀
- perf(plugin-babel): skip schema-utils in babel-loader by @chenjiahan in #853
- perf: avoid passing html plugin in plugin options by @chenjiahan in #863
- perf(deps): remove url-join dependency by @chenjiahan in #900
- perf(shared): prebundle line-diff dependency by @chenjiahan in #910
Bug Fixes 🐞
- fix(plugin-babel): failed to resolve babel-loader by @chenjiahan in #842
- fix(server-plugin): not relay on modifyRsbuildConfig by @9aoy in #847
- fix(plugin-react): split react-refresh utils to lib-react chunk by @chenjiahan in #850
- fix: add charset test case by @9aoy in #750
- fix: allow to generate HTML with filename hash by @chenjiahan in #876
- fix: avoid duplicated logs with multiple targets by @chenjiahan in #883
- fix: incorrect log name for service worker by @chenjiahan in #884
- fix(plugin-react): should get the new targets from context by @chenjiahan in #890
- fix(plugin-umd): add globalObject to support Node.js env by @chenjiahan in #908
Document 📖
- docs: update web default browserslist by @9aoy in #841
- docs: add missing logger to javascript-api part by @chenjiahan in #846
- docs: split config document to single markdown page by @chenjiahan in #855
- docs: merge config fragments by @chenjiahan in #856
- docs: add some example for server.proxy by @chenjiahan in #868
- docs: add example for custom HTML filename by @chenjiahan in #877
- docs: add output.targets document by @chenjiahan in #881
- docs: fix Overview component missing style by @chenjiahan in #885
- docs: improve typings for dev config options by @chenjiahan in #887
- docs: update output.sourceMap document by @chenjiahan in #898
- docs(check-syntax): add enable source map tip by @chenjiahan in #899
- docs: remove separate CHANGELOG files by @chenjiahan in #904
- docs: prefer relative links and fix broken links by @chenjiahan in #907
- docs: add guide for UMD plugin by @chenjiahan in #909
Other Changes
- chore: remove unused getRspackVersion fn by @chenjiahan in #843
- chore(workflow): integrate ls-lint for filename linting by @chenjiahan in #844
- chore(workflow): configure ls-lint for tests and docs by @chenjiahan in #845
- chore: merge basic plugin by @chenjiahan in #849
- chore(deps): bump vitest to 1.0.1 by @Timeless0911 in #854
- chore: bump rspack to 0.4.2 by @9aoy in #860
- test(e2e): add basic case for server.proxy by @chenjiahan in #864
- chore(workflow): simplify pull request template by @chenjiahan in #866
- test(e2e): fix ERR_UNSAFE_PORT error in CI by @chenjiahan in #865
- doc(assetsRetryPlugin): delete usage limit description on dynamic import by @lalalazero in #869
- refactor(server): extract createHttpServer method from rsbuildServer by @9aoy in #867
- chore(examples): use CLI instead of JS API for SW by @chenjiahan in #872
- chore(deps): bump Rspress to adapt Rsbuild v0.2.0 by @chenjiahan in #873
- chore: rename dir param of loadEnv to cwd by @chenjiahan in #878
- test(e2e): support load separate config file by @chenjiahan in #882
- chore(server): format dev-middleware options by @9aoy in #889
- chore(deps): bump Modern.js v2.42.1 by @chenjiahan in #888
- Revert "chore(deps): bump Modern.js v2.42.1 (#888)" by @chenjiahan in #893
- refactor: use getMiddlewares instead of RsbuildDevServer by @9aoy in #892
- test(e2e): split vue cases to separate folder by @chenjiahan in #901
- chore: merge createContext implementation by @chenjiahan in #903
- chore(shared): use deepmerge instead of lodash.merge by @chenjiahan in #911
New Contributors
- @lalalazero made their first contribution in #848
- @xc2 made their first contribution in #895
Full Changelog: v0.1.9...v0.2.0