Releases: web-infra-dev/rsbuild
Releases · web-infra-dev/rsbuild
v1.3.2
What's Changed
New Features 🎉
- feat(deps): update Rspack to v1.3.1 by @chenjiahan in #4941
Bug Fixes 🐞
- fix(create-rsbuild): missing eslint-plugin-vue by @chenjiahan in #4934
- fix: inject tags to HTML template without
<head>
tag by @chenjiahan in #4935
Document 📖
- docs: add guide for access Rspack API by @chenjiahan in #4930
Other Changes
- chore: simplify
isMultiCompiler
types by @chenjiahan in #4929 - chore(workflow): let prettier ignore pnpm lock file by @chenjiahan in #4931
- chore(deps): update dependency nx to ^20.7.0 by @renovate in #4939
- chore(deps): update dependency vitest to ^3.1.1 by @renovate in #4940
- chore(deps): update all patch dependencies by @renovate in #4938
- release: 1.3.2 by @chenjiahan in #4942
Full Changelog: v1.3.1...v1.3.2
v1.3.1
What's Changed
Bug Fixes 🐞
- fix: let jiti load
@rspack/core
with native require by @chenjiahan in #4926 - fix: make CSS preprocessor plugins compat with Rsbuild 1.2 by @colinaaa in #4909
- fix: improve inline rules in CSS preprocessor plugins by @chenjiahan in #4914
Document 📖
- docs: improve
server.compress
by @chenjiahan in #4917 - docs: add cacheDir option to migration guide by @chenjiahan in #4922
- docs: fix broken env file anchor by @chenjiahan in #4923
Other Changes
- chore(deps): update react to ^19.1.0 by @renovate in #4912
- chore(deps): update dependency @rsbuild/core to ^1.3.0 by @renovate in #4910
- release: CSS preprocessor plugins by @chenjiahan in #4915
- chore(deps): update dependency @rsbuild/plugin-sass to ^1.3.1 by @renovate in #4911
- chore(build): simplify rslib config by removing unused plugin by @chenjiahan in #4916
- test(e2e): fix flaky lazy compilation case by @chenjiahan in #4918
- test(e2e): fix flaky watch files cases by @chenjiahan in #4919
- test(e2e): remove some webpack only cases by @chenjiahan in #4921
- chore(deps): update all patch dependencies by @renovate in #4925
- release: 1.3.1 by @chenjiahan in #4927
Full Changelog: v1.3.0...v1.3.1
v1.3.0
See Announcing Rspack 1.3 for more details.
Breaking Changes 💡
Rsbuild dev server no longer sets Access-Control-Allow-Origin: *
header to all requests by default. This is the same default behavior as esbuild and Vite, which prevents any website from sending any requests to the dev server.
It is recommended to set up trusted origins via server.cors
, see the server.cors documentation for more details.
See also:
- esbuild: GHSA-67mh-4wv8-2f99
- Vite: GHSA-vg6x-rcgg-rjx6
What's Changed
New Features 🎉
- feat(deps): update Rspack to 1.3.0-beta.0 by @chenjiahan in #4816
- feat: add integrity support for dynamic imports by @chenjiahan in #4817
- feat(plugin-preact): update swc plugin to v7 by @renovate in #4695
- feat: improve restarting experience by @chenjiahan in #4829
- feat: expose
context.action
property by @chenjiahan in #4831 - feat(security): add warnings for defining
process.env
by @chenjiahan in #4835 - feat: improve build error messages by @chenjiahan in #4838
- feat(css): add support for raw CSS imports by @chenjiahan in #4841
- feat(plugin-sass): add support for raw query by @chenjiahan in #4843
- feat(plugin-less): add support for raw query by @chenjiahan in #4844
- feat(plugin-stylus): add support for raw query by @chenjiahan in #4845
- feat: add types for raw imports of CSS preprocessors by @chenjiahan in #4846
- feat(css): add support for inline CSS imports by @chenjiahan in #4849
- feat(plugin-sass): add support for inline query by @chenjiahan in #4856
- feat(plugin-less): add support for inline query by @chenjiahan in #4859
- feat(plugin-stylus): add support for inline query by @chenjiahan in #4860
- feat(plugin-stylus): add
includeCSS
option type and JSDoc by @chenjiahan in #4862 - feat(deps): update Rspack to v1.3.0-beta.1 by @chenjiahan in #4866
- feat(asset): add support for raw query by @chenjiahan in #4869
- feat(types): declare existing properties of
import.meta.env
by @chenjiahan in #4871 - feat: integrate Rspack lazy compilation middleware by @chenjiahan in #4881
- feat(plugin): add "addContextDependency" and "addMissingDependency" to api.transform by @SoonIter in #4892
- feat(cors): update CORS defaults to allow loopback addresses by @chenjiahan in #4897
- feat(deps): update Rspack to v1.3.0 by @chenjiahan in #4906
Bug Fixes 🐞
- fix(cache):
buildCache.cacheDirectory
config not work by @Shucei in #4790 - fix: should merge copy config correctly when copy config type is different by @9aoy in #4793
- fix: update null checks to improve type safety by @chenjiahan in #4802
- fix(overlay): avoid multiple error overlay instances by @chenjiahan in #4803
- fix: MaxListenersExceeded warning after restarting server by @chenjiahan in #4826
- fix: handle errors in transform loader with try-catch block by @chenjiahan in #4837
- fix: allow to disable CSS minification if CSS is inlined by @chenjiahan in #4853
- fix(plugin-stylus):
define
option type by @chenjiahan in #4861 - fix(types): missing
server.cors
object type by @chenjiahan in #4877 - fix(server)!: should respect the value of the
server.cors
option by @chenjiahan in #4876 - fix(server): allow
server.headers
to overrideserver.cors
by @chenjiahan in #4898
Document 📖
- docs: update examples for server close method by @chenjiahan in #4788
- docs: add
loadEnv
option increateRsbuild
method by @chenjiahan in #4800 - docs: apply new theme colors to the documentation site by @chenjiahan in #4801
- docs:
getPlugins
can acceptenvironment
option by @chenjiahan in #4804 - docs: improve inline static assets by @chenjiahan in #4808
- docs: update ecosystem diagrams by @chenjiahan in #4811
- docs: add information on obtaining additional templates by @chenjiahan in #4813
- docs: update release dates for blogs by @chenjiahan in #4815
- docs: update SRI to match the latest implementation by @chenjiahan in #4819
- docs: update features list by @chenjiahan in #4823
- docs: add MultiCompiler references by @chenjiahan in #4836
- docs: add section on importing raw CSS files by @chenjiahan in #4842
- docs: update Rspress and fix Overview link style by @chenjiahan in #4847
- docs: fix typo in English HMR guide by @Chevindu in #4850
- docs:
pluginReact
is also needed when usingpluginSvgr
by @9aoy in #4857 - docs: add inline query parameter to CSS guide by @chenjiahan in #4865
- docs: import static assets as string by @chenjiahan in #4872
- docs: polish credits in README files by @chenjiahan in #4875
- docs: enhance CORS configuration examples by @chenjiahan in #4880
- docs: update lazy compilation configuration by @chenjiahan in #4882
- docs: clarify CORS security recommendations by @chenjiahan in #4894
- docs: correct
server.headers
type by @chenjiahan in #4895 - docs: clarify env files merge behavior by @chenjiahan in #4902
Other Changes
- test(e2e): add cases for
buildCache.cacheDirectory
by @chenjiahan in #4791 - chore(deps): update dependency nx to ^20.6.0 by @renovate in #4797
- test(e2e): replace fs.rmSync with async remove from fs-extra by @chenjiahan in #4805
- chore(deps): update all patch dependencies by @renovate in #4806
- chore(deps): update actions/setup-node action to v4.3.0 by @renovate in #4809
- chore(deps): update Rspress to 2.0.0-alpha.3 by @chenjiahan in #4814
- test: add case for SRI with async chunks by @chenjiahan in #4818
- release: 1.3.0-beta.0 by @chenjiahan in #4820
- chore(deps): update sass to ^1.86.0 by @renovate in #4821
- chore(deps): update dependency react-router-dom to ^7.4.0 by @renovate in #4825
- chore(deps): update all patch dependencies by @renovate in #4824
- refactor: move file watching and restart logic to separate module by @chenjiahan in #4828
- chore: remove prepare module to simplify CLI initialization code by @chenjiahan in #4830
- chore(deps): update dependency simple-git-hooks to ^2.12.1 by @renovate in #4839
- release: 1.3.0-beta.1 by @chenjiahan in #4848
- chore(deps): update dependency svelte to ^5.25.3 by @renovate in #4852
- chore(deps): update all patch dependencies by @renovate in #4851
- chore: replace merge with rspack-chain methods by @chenjiahan in #4854
- test(e2e): split CSS cases into separate folders by @chenjiahan...
v1.3.0-beta.3
What's Changed
Breaking Changes
- fix(server)!: should respect the value of the
server.cors
option by @chenjiahan in #4876
New Features 🎉
- feat(asset): add support for raw query by @chenjiahan in #4869
- feat(types): declare existing properties of
import.meta.env
by @chenjiahan in #4871 - feat: integrate Rspack lazy compilation middleware by @chenjiahan in #4881
Bug Fixes 🐞
- fix(types): missing
server.cors
object type by @chenjiahan in #4877
Document 📖
- docs: import static assets as string by @chenjiahan in #4872
- docs: polish credits in README files by @chenjiahan in #4875
- docs: enhance CORS configuration examples by @chenjiahan in #4880
- docs: update lazy compilation configuration by @chenjiahan in #4882
Other Changes
- refactor(types): streamline query params and improve JSDoc by @chenjiahan in #4870
- refactor(server): refactor compilation middleware by @chenjiahan in #4878
- release: 1.3.0-beta.3 by @chenjiahan in #4884
Full Changelog: v1.3.0-beta.2...v1.3.0-beta.3
v1.3.0-beta.2
What's Changed
New Features 🎉
- feat(deps): update Rspack to v1.3.0-beta.1 by @chenjiahan in #4866
- feat(css): add support for inline CSS imports by @chenjiahan in #4849
- feat(plugin-sass): add support for inline query by @chenjiahan in #4856
- feat(plugin-less): add support for inline query by @chenjiahan in #4859
- feat(plugin-stylus): add support for inline query by @chenjiahan in #4860
- feat(plugin-stylus): add
includeCSS
option type and JSDoc by @chenjiahan in #4862
Bug Fixes 🐞
- fix: allow to disable CSS minification if CSS is inlined by @chenjiahan in #4853
- fix(plugin-stylus):
define
option type by @chenjiahan in #4861
Document 📖
- docs: fix typo in English HMR guide by @Chevindu in #4850
- docs:
pluginReact
is also needed when usingpluginSvgr
by @9aoy in #4857 - docs: add inline query parameter to CSS guide by @chenjiahan in #4865
Other Changes
- chore(deps): update dependency svelte to ^5.25.3 by @renovate in #4852
- chore(deps): update all patch dependencies by @renovate in #4851
- chore: replace merge with rspack-chain methods by @chenjiahan in #4854
- test(e2e): split CSS cases into separate folders by @chenjiahan in #4855
- chore(deps): update dependency @babel/preset-typescript to ^7.27.0 by @renovate in #4863
- chore(deps): update module federation to v0.11.2 by @renovate in #4810
- chore(webpack): improve logging condition for warning level by @Simon-He95 in #4864
- release: 1.3.0-beta.2 by @chenjiahan in #4867
New Contributors
- @Chevindu made their first contribution in #4850
- @Simon-He95 made their first contribution in #4864
Full Changelog: v1.3.0-beta.1...v1.3.0-beta.2
v1.3.0-beta.1
What's Changed
New Features 🎉
- feat: improve restarting experience by @chenjiahan in #4829
- feat: expose
context.action
property by @chenjiahan in #4831 - feat(security): add warnings for defining
process.env
by @chenjiahan in #4835 - feat: improve build error messages by @chenjiahan in #4838
- feat(css): add support for raw CSS imports by @chenjiahan in #4841
- feat(plugin-sass): add support for raw query by @chenjiahan in #4843
- feat(plugin-less): add support for raw query by @chenjiahan in #4844
- feat(plugin-stylus): add support for raw query by @chenjiahan in #4845
- feat: add types for raw imports of CSS preprocessors by @chenjiahan in #4846
Bug Fixes 🐞
- fix: MaxListenersExceeded warning after restarting server by @chenjiahan in #4826
- fix: handle errors in transform loader with try-catch block by @chenjiahan in #4837
Document 📖
- docs: update features list by @chenjiahan in #4823
- docs: add MultiCompiler references by @chenjiahan in #4836
- docs: add section on importing raw CSS files by @chenjiahan in #4842
- docs: update Rspress and fix Overview link style by @chenjiahan in #4847
Other Changes
- chore(deps): update sass to ^1.86.0 by @renovate in #4821
- chore(deps): update dependency react-router-dom to ^7.4.0 by @renovate in #4825
- chore(deps): update all patch dependencies by @renovate in #4824
- refactor: move file watching and restart logic to separate module by @chenjiahan in #4828
- chore: remove prepare module to simplify CLI initialization code by @chenjiahan in #4830
- chore(deps): update dependency simple-git-hooks to ^2.12.1 by @renovate in #4839
- release: 1.3.0-beta.1 by @chenjiahan in #4848
Full Changelog: v1.3.0-beta.0...v1.3.0-beta.1
v1.3.0-beta.0
What's Changed
New Features 🎉
- feat(deps): update Rspack to 1.3.0-beta.0 by @chenjiahan in #4816
- feat: add integrity support for dynamic imports by @chenjiahan in #4817
- feat(plugin-preact): update swc plugin to v7 by @renovate in #4695
Bug Fixes 🐞
- fix(cache):
buildCache.cacheDirectory
config not work by @Shucei in #4790 - fix: should merge copy config correctly when copy config type is different by @9aoy in #4793
- fix: update null checks to improve type safety by @chenjiahan in #4802
- fix(overlay): avoid multiple error overlay instances by @chenjiahan in #4803
Document 📖
- docs: update examples for server close method by @chenjiahan in #4788
- docs: add
loadEnv
option increateRsbuild
method by @chenjiahan in #4800 - docs: apply new theme colors to the documentation site by @chenjiahan in #4801
- docs:
getPlugins
can acceptenvironment
option by @chenjiahan in #4804 - docs: improve inline static assets by @chenjiahan in #4808
- docs: update ecosystem diagrams by @chenjiahan in #4811
- docs: add information on obtaining additional templates by @chenjiahan in #4813
- docs: update release dates for blogs by @chenjiahan in #4815
- docs: update SRI to match the latest implementation by @chenjiahan in #4819
Other Changes
- test(e2e): add cases for
buildCache.cacheDirectory
by @chenjiahan in #4791 - chore(deps): update dependency nx to ^20.6.0 by @renovate in #4797
- test(e2e): replace fs.rmSync with async remove from fs-extra by @chenjiahan in #4805
- chore(deps): update all patch dependencies by @renovate in #4806
- chore(deps): update actions/setup-node action to v4.3.0 by @renovate in #4809
- chore(deps): update Rspress to 2.0.0-alpha.3 by @chenjiahan in #4814
- test: add case for SRI with async chunks by @chenjiahan in #4818
- release: 1.3.0-beta.0 by @chenjiahan in #4820
New Contributors
Full Changelog: v1.2.19...v1.3.0-beta.0
v1.2.19
What's Changed
New Features 🎉
- feat(CLI): allow to run without sub-command to trigger dev by @chenjiahan in #4773
- feat(types): export LoadEnvOptions and LoadEnvResult types by @chenjiahan in #4779
- feat: support async function for rsbuildConfig in createRsbuild options by @chenjiahan in #4778
- feat: integrate env variable loading into createRsbuild options by @chenjiahan in #4783
Bug Fixes 🐞
- fix: simplify build error logs by @chenjiahan in #4772
- fix: handle null stats JSON in Socket server by @chenjiahan in #4784
Document 📖
- docs: add Tailwind CSS v4 compatibility tip for preprocessors by @chenjiahan in #4770
- docs: update description for build close method by @chenjiahan in #4786
Other Changes
- chore(deps): update Rspress to 2.0.0-alpha.2 by @chenjiahan in #4769
- chore(deps): update dependency svelte to ^5.23.0 by @renovate in #4771
- refactor(CLI): extract config loader function by @chenjiahan in #4780
- chore: fix some type issues of createRsbuild by @chenjiahan in #4782
- release: 1.2.19 by @chenjiahan in #4787
Full Changelog: v1.2.18...v1.2.19
v1.2.18
What's Changed
New Features 🎉
- feat(deps): update Rspack to v1.2.8 by @chenjiahan in #4758
Bug Fixes 🐞
- fix: print environment name only when using multi compiler by @chenjiahan in #4754
- fix(rsbuild): add dynamic import callback to cjs vm by @ScriptedAlchemy in #4755
- fix: appendPlugins not work in some cases by @chenjiahan in #4767
Document 📖
- docs: add dynamic asset prefix guide by @chenjiahan in #4760
- docs: improve InspectConfigOptions type by @chenjiahan in #4761
- docs: simplify Rsdoctor configuration example by @chenjiahan in #4764
Other Changes
- chore(deps): update Rsdoctor to 1.0.0-rc.0 by @chenjiahan in #4757
- chore: export StartServerResult for resuing by @JounQin in #4763
- test(ut): add custom Rspack configuration tests by @chenjiahan in #4766
- chore(server): remove useless runInNewContext option by @9aoy in #4765
- release: 1.2.18 by @chenjiahan in #4768
Full Changelog: v1.2.17...v1.2.18
v1.2.17
What's Changed
New Features 🎉
- feat: allow opening relative paths on error overlay by @chenjiahan in #4739
- feat: display relative paths on error overlay by @chenjiahan in #4744
- feat(plugin-webpack-swc): use require.resolve to check react version to support pnpm catalog by @caohuilin in #4745
Performance 🚀
- perf: bundle webpack-merge for faster startup by @chenjiahan in #4752
Bug Fixes 🐞
- fix: await watcher close before restart by @chenjiahan in #4734
- fix(create-rsbuild): remove public/.gitkeep file by @chenjiahan in #4748
Document 📖
- docs: update quick start guide by @chenjiahan in #4737
- docs: update plugin list by @chenjiahan in #4746
- docs: standardize "web" capitalization across documentation by @chenjiahan in #4749
- docs: improve browser compatibility clarity by @chenjiahan in #4750
Other Changes
- test(e2e): fix flaky watch-files cases by @chenjiahan in #4735
- test(e2e): improve plugin watch hook test reliability by @chenjiahan in #4738
- test(ut): add test cases for overlay links by @chenjiahan in #4740
- chore(deps): update Rspress to v2.0.0-alpha.0 by @chenjiahan in #4741
- chore(deps): update all patch dependencies by @renovate in #4743
- chore: remove unnecessary type assertions by @chenjiahan in #4747
- release: 1.2.17 by @chenjiahan in #4753
Full Changelog: v1.2.16...v1.2.17