v1.0.1-beta.7
chenjiahan
released this
30 Jul 15:19
·
843 commits
to main
since this release
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