Releases: web-infra-dev/rsbuild
v1.0.1-beta.7
What's Changed
Breaking Changes 🍭
Rsbuild now enables lightningcss-loader by default to transform CSS files, it replaces autoprefixer
to add vendor prefixes and provides better performance.
@rsbuild/plugin-lightningcss
has been deprecated and no longer needed.tools.autoprefixer
config has been removed.
Considering that Lightning CSS has some uncovered edge cases, you can still enable autoprefixer via the postcss configuration file:
// postcss.config.cjs
module.exports = {
plugins: {
autoprefixer: {},
}
}
New Features 🎉
- feat: bump Rspack 1.0.0-beta.1 by @chenjiahan in #3072
- feat: add new
tools.lightningcssLoader
config by @chenjiahan in #3043 - feat: add
isWatch
param to determine whether it is watch mode when build by @9aoy in #3065 - feat: support only build specified environment by @9aoy in #3059
- feat(core): add
type
option todev.watchFiles
to support reload server by @kurorinto in #3069
Performance 🚀
- perf!: remove built-in autoprefixer by @chenjiahan in #3035
- perf: skip postcss-loader if no plugins are registered by @chenjiahan in #3036
- perf: prebundle postcss by @chenjiahan in #3062
- perf: remove cosmiconfig from postcss-loader by @chenjiahan in #3063
- perf: bump rspack-manifest-plugin v5.0.1 by @chenjiahan in #3064
Bug Fixes 🐞
- fix: targets options of lightningcss-loader by @chenjiahan in #3038
- fix: targets of lightningcss-loader not work by @chenjiahan in #3039
- fix: set browserset for lightningcss minimizer by @chenjiahan in #3048
- fix: add uniqueName to WebSocket compilation name by @chenjiahan in #3051
- fix: processAssets callback should only called once by @9aoy in #3054
- fix: allow to enable Rspack
experiments.css
by @chenjiahan in #3068 - fix: watchFiles options not work for reloading server by @chenjiahan in #3077
Document 📖
- docs: add guide for builtin lightningcss loader by @chenjiahan in #3049
- docs: add remove plugin tip when use environment plugin by @9aoy in #3053
- docs: make moduleFederation.options more clear by @chenjiahan in #3060
- docs: simplify
tools.rspack
examples by @chenjiahan in #3061 - docs: tells that
addRules
is adding rules to the leading by @xc2 in #3071
Other Changes
- chore(deps): bump [email protected] by @chenjiahan in #3033
- chore(deps): update all patch dependencies by @renovate in #2982
- chore(deps): update dependency sass-loader to v16 by @renovate in #3042
- chore(deps): update eslint to ^9.8.0 by @renovate in #3041
- Revert "test(e2e): try to fix CI failures (#2997)" by @chenjiahan in #3045
- test(e2e): retry on CI by @chenjiahan in #3044
- test(e2e): avoid write to committed file by @chenjiahan in #3046
- chore(deps): update dependency @babel/preset-env to ^7.25.0 by @renovate in #3040
- chore: add example for module federation v2 by @chenjiahan in #3052
- test(e2e): add basic e2e cases for MF v2 by @chenjiahan in #3055
- test(e2e): add test case for lightingcss-loader by @chenjiahan in #3073
- chore: remove temp code for lightningcss-loader by @chenjiahan in #3074
- test(e2e): should kill child process by @chenjiahan in #3076
New Contributors
- @kurorinto made their first contribution in #3069
Full Changelog: v1.0.1-beta.6...v1.0.1-beta.7
v1.0.1-beta.6
What's Changed
New Features 🎉
- feat(deps): bump Rspack 1.0.0-beta.0 by @chenjiahan in #3022
- feat: allow absolute output path for inspectConfig by @chenjiahan in #3024
Bug Fixes 🐞
- fix(core): incorrect exports fields by @chenjiahan in #3025
- fix(plugin-sass): type issue with moduleResolution node16+ by @chenjiahan in #3026
Document 📖
- docs: update Rstack repo links by @chenjiahan in #3018
Other Changes
Full Changelog: v1.0.1-beta.5...v1.0.1-beta.6
v1.0.1-beta.5
What's Changed
New Features 🎉
- feat: add sources param to api.processAssets by @chenjiahan in #2987
- feat: support add plugins for specified environment by @9aoy in #2986
- feat: more plugins support used as environment plugin by @9aoy in #2994
- feat: add environments as a filter of
api.processAssets
by @chenjiahan in #3009 - feat: enable inline chunks based on conditions through output options by @Thulof in #3000
Bug Fixes 🐞
- fix: webSocket stats message conflict when multiple web environment by @9aoy in #2989
- fix: modify the criteria for verifying the Rsdoctor plugin by @easy1090 in #2992
- fix: only listen to process exit when onExit hook is used by @chenjiahan in #2998
- fix: css-loader type declaration is outdated by @chenjiahan in #3001
Document 📖
- docs: add
api.processAssets
API by @chenjiahan in #2993 - docs: update modifyEnvironmentConfig example code by @9aoy in #2995
- docs: correct onAfterCreateCompiler example by @9aoy in #2996
- docs(instance.mdx): adjust the references by @hasnum-stack in #3003
- docs: distinguish between rspack watchOptions and rsbuild watchFiles configuration by @9aoy in #3004
- docs: fix build typo in the benchmark by @chenjiahan in #3008
- docs: add tips for inline scripts in production mode by @chenjiahan in #3012
Other Changes
- refactor: implement assets retry via Rsbuild plugin hooks by @chenjiahan in #2990
- chore(deps): update eslint by @renovate in #2981
- test(e2e): try to fix CI failures by @chenjiahan in #2997
- test: add e2e case for onExit hook by @chenjiahan in #2999
- test(e2e): enable test case for browserslist extends by @chenjiahan in #3010
- chore: use Node.js built-in isRegExp util by @chenjiahan in #3011
- chore(deps): update dependency sass-loader to v15 by @renovate in #3015
- chore(deps): update dependency yaml to ^2.5.0 by @renovate in #3014
Full Changelog: v1.0.1-beta.4...v1.0.1-beta.5
v1.0.1-beta.4
What's Changed
New Features 🎉
- feat: add new plugin API to process assets by @chenjiahan in #2966
- feat: allow to process assets for specific target by @chenjiahan in #2967
- feat: allow to access environment context in transform API by @chenjiahan in #2968
- feat: allow to access environment context in process assets by @chenjiahan in #2970
- feat: allow to access compiler in modifyHTMLTags hook by @chenjiahan in #2975
Bug Fixes 🐞
- fix: exclude method options when checking
[hash].hot-update.json
by @huuduy005 in #2977 - fix(plugin-svgr): dedupe SVGO plugins config by @chenjiahan in #2984
Document 📖
- docs: fix
tools.htmlPlugin
default options by @chenjiahan in #2952 - docs: fix output.externals type by @Timeless0911 in #2955
- docs: add tool stack to homepage by @chenjiahan in #2958
- docs: use Rspress i18n API by @chenjiahan in #2963
- docs: fix Vue JSX example by @chenjiahan in #2965
- docs: move environment context to separate page by @chenjiahan in #2969
Other Changes
- chore(deps): update dependency nx to ^19.5.1 by @renovate in #2961
- chore(deps): update dependency eslint-plugin-svelte to ^2.43.0 by @renovate in #2960
- refactor: use new processAssets api to handle SRI by @chenjiahan in #2971
- refactor: use unified Rspack plugin to attach to plugin hooks by @chenjiahan in #2972
- refactor(plugin-rem): use new processAssets api by @chenjiahan in #2973
- refactor: implement appIcon via Rsbuild plugin by @chenjiahan in #2974
- refactor: implement inline chunks via Rsbuild plugin by @chenjiahan in #2976
- chore(deps): update dependency @modern-js/module-tools to ^2.56.0 by @renovate in #2980
- chore(deps): update all patch dependencies by @renovate in #2979
New Contributors
- @huuduy005 made their first contribution in #2977
Full Changelog: v1.0.1-beta.3...v1.0.1-beta.4
v1.0.1-beta.3
What's Changed
New Features 🎉
- feat: add
htmlPlugin
andrspackConfig
template parameters by @chenjiahan in #2938 - feat: add environments as a filter of
api.transform
by @chenjiahan in #2947 - feat(deps): bump Rspack 1.0.0-alpha.5 by @chenjiahan in #2949
Bug Fixes 🐞
- fix: minify.jsOptions is not pass to SwcMinimizerPlugin by @luhc228 in #2931
- fix: only print verbose error logs in debug mode by @chenjiahan in #2941
- fix: should print stats.file as file name when have build errors by @chenjiahan in #2942
Document 📖
- docs: add benchmark to homepage by @chenjiahan in #2946
Other Changes
- refactor(plugin-rem): use modifyHTMLTags hook by @chenjiahan in #2939
- chore(deps): update dependency react-router-dom to ^6.25.0 by @renovate in #2945
- chore(deps): update all patch dependencies by @renovate in #2944
Full Changelog: v1.0.1-beta.2...v1.0.1-beta.3
v1.0.1-beta.2
What's Changed
New Features 🎉
- feat(create-rsbuild): add framework alias and validate input by @chenjiahan in #2922
- feat(deps): bump rspack 1.0.0-alpha.4 by @9aoy in #2936
Bug Fixes 🐞
- fix: specify SWC cache directory by @9aoy in #2926
- fix(webpack): should generate config files correctly when output is specified by @9aoy in #2929
Document 📖
- docs: add modify config tips by @chenjiahan in #2930
- docs: correct server.htmlFallback tip by @Thulof in #2933
Other Changes
- chore(deps): update eslint to ^9.7.0 by @renovate in #2924
- chore: move babel-preset package by @chenjiahan in #2925
- chore(deps): update all patch dependencies by @renovate in #2923
- chore: move typed-css-modules plugin to separate repo by @chenjiahan in #2932
- Release: v1.0.1-beta.2 by @9aoy in #2937
New Contributors
Full Changelog: v1.0.1-beta.1...v1.0.1-beta.2
v1.0.1-beta.1
What's Changed
New Features 🎉
- feat(create-rsbuild): allow to create via CLI options by @chenjiahan in #2903
- feat: allow dev.client.port to be a number by @chenjiahan in #2907
Bug Fixes 🐞
- fix(create-rsbuild): lit should be dependency by @chenjiahan in #2910
- fix(create-rsbuild): skip tools selection when using CLI options by @chenjiahan in #2911
- fix: es template string breaks template compiling by @chenjiahan in #2914
- fix: allow setting NODE_ENV from env files by @chenjiahan in #2915
Document 📖
- docs: port value should be string instead of int by @vikas5914 in #2905
- docs: add create-rsbuild quick creation guide by @chenjiahan in #2918
- docs: update the builtin CHAIN_ID list by @chenjiahan in #2920
Other Changes
- test(e2e): add cases for create-rsbuild by @chenjiahan in #2912
- chore(deps): update dependency vitest to v2 by @renovate in #2909
- chore(deps): update dependency @modern-js/module-tools to ^2.55.0 by @renovate in #2908
New Contributors
- @vikas5914 made their first contribution in #2905
Full Changelog: v1.0.1-beta.0...v1.0.1-beta.1
v1.0.1-beta.0
Note
We are releasing 1.0.1-beta.0
instead of 1.0.0-beta.0
.
This is because Rsbuild 1.0.0
is a deprecated version. Package managers will resolve ^1.0.0-beta.0
to 1.0.0
, which is unexpected.
resolve: #2897, #2864, #2767, rspack-contrib/rsbuild-plugin-umd#1
What's Changed
New Features 🎉
- feat(CLI): add new --env-dir option by @chenjiahan in #2891
- feat: allow to disable gzip compression size by @chenjiahan in #2892
Performance 🚀
- perf: skip template evaluation when using default template by @chenjiahan in #2896
- perf: bump html-rspack-plugin 6.0.0-beta.8 by @chenjiahan in #2898
Bug Fixes 🐞
- fix(type): webpack type should works with moduleResolution node16+ by @9aoy in #2900
- fix(plugin-sass): additionalData missing string type by @chenjiahan in #2901
Document 📖
- docs: update benchmark graph by @chenjiahan in #2893
- docs: Replace 'tailwindcss' with 'UnoCSS' in unocss.mdx by @sagardwivedi in #2895
Other Changes
- chore(deps): update eslint by @renovate in #2890
- chore(deps): update dependency webpack to ^5.93.0 by @renovate in #2889
- chore(deps): update dependency webpack-merge to v6 by @renovate in #2827
- chore: move image compress plugin to separate repo by @chenjiahan in #2899
New Contributors
- @sagardwivedi made their first contribution in #2895
Full Changelog: v1.0.0-alpha.9...v1.0.1-beta.0
v1.0.0-alpha.9
What's Changed
New Features 🎉
- feat(deps): bump Rspack 1.0.0-alpha.3 by @chenjiahan in #2883
- feat: OPTIONS request return success code by @vtv6 #2867
Performance 🚀
- perf: prettier the compiled packages by @chenjiahan in #2879
- perf: skip calculation if browserslist is default value by @chenjiahan in #2882
Bug Fixes 🐞
- fix: html-rspack-plugin typo by @chenjiahan in #2880
- fix(plugin-assets-retry): url calculation when using asset prefix by @SoonIter in #2835
- fix(server): register OPTIONS fallback middleware at last by @chenjiahan in #2885
Full Changelog: v1.0.0-alpha.8...v1.0.0-alpha.9
v1.0.0-alpha.8
What's Changed
New Features 🎉
- types: export HtmlRspackPlugin type by @chenjiahan in #2861
- types: allow passing user config to mergeEnvironmentConfig by @9aoy in #2863
- feat(create-rsbuild): support for project name with npm scope by @chenjiahan in #2874
- types: fix plugins type mismatch by @chenjiahan in #2875
Performance 🚀
- perf: prebundle html-rspack-plugin by @chenjiahan in #2870
Bug Fixes 🐞
- fix: js/css are minified when both minify.js and minify.css are false by @xc2 in #2865
- fix: rspack plugin apply error after merging config by @9aoy in #2877
Document 📖
- docs: update custom loader examples by @chenjiahan in #2868
- docs: improve environment config by @chenjiahan in #2871
Other Changes
- chore(deps): update rspress to v1.26.0 by @renovate in #2869
- chore(deps): update dependency rspress-plugin-sitemap to ^1.1.0 by @renovate in #2873
Full Changelog: v1.0.0-alpha.7...v1.0.0-alpha.8