Highlights
Tailwind CSS Plugin
Rsbuild 2.0.8 introduces @rsbuild/plugin-tailwindcss, a first-party plugin for integrating Tailwind CSS v4 through @tailwindcss/webpack.
Compared with the @tailwindcss/postcss package, it avoids running Tailwind CSS transforms through PostCSS and provides better build performance.
import { pluginTailwindcss } from '@rsbuild/plugin-tailwindcss';
export default {
plugins: [pluginTailwindcss()],
};What's Changed
New Features 🎉
- feat(core): support autoExternal exclude by @chenjiahan in #7722
- feat(core): support autoExternal packageJson option by @chenjiahan in #7728
- feat: add tailwindcss plugin by @chenjiahan in #7745
- feat: support tailwindcss inline imports by @chenjiahan in #7746
- feat: support tailwindcss url imports by @chenjiahan in #7747
- feat(plugin-tailwindcss): add optimize option by @chenjiahan in #7750
- feat(plugin-babel): support multiple babel rules by @chenjiahan in #7764
- feat(deps): update @rspack/core to 2.0.5 by @chenjiahan in #7780
Bug Fixes 🐞
- fix(core): remove redundant autoExternal rules by @chenjiahan in #7713
- fix(deps): update all patch dependencies by @renovate[bot] in #7741
- fix(plugin-tailwindcss): skip main rule when css is not emitted by @chenjiahan in #7748
- fix(core): correct base middleware path matching by @chenjiahan in #7761
- fix(deps): update @swc/helpers to v0.5.22 by @chenjiahan in #7763
- fix(plugin-babel): restrict Babel rule ID matching by @chenjiahan in #7765
- fix(deps): update @swc/helpers to v0.5.23 by @CPunisher in #7769
- fix(types): allow webpack-compatible rspack plugins by @chenjiahan in #7771
- fix(types): update rspack plugin types by @chenjiahan in #7772
- fix(core): support async html template parameters by @vegerot in #7773
Refactor 🔨
- refactor: move plugin-stylus to separate repo by @chenjiahan in #7715
- refactor(core): simplify autoExternal rules by @chenjiahan in #7738
Document 📖
- docs: add autoExternal version history by @chenjiahan in #7712
- docs: recommend autoExternal for SSR by @chenjiahan in #7718
- docs: update Vite ssr.external migration by @chenjiahan in #7721
- docs: update autoExternal docs by @chenjiahan in #7723
- docs: clarify module federation output module limit by @chenjiahan in #7726
- docs(skills): update e2e helper guidance by @chenjiahan in #7727
- docs: update README credits by @chenjiahan in #7729
- docs: clarify autoExternal usage by @chenjiahan in #7740
- docs(plugin-tailwindcss): add plugin docs by @chenjiahan in #7752
- docs: remove outdated README branch note by @chenjiahan in #7753
- docs: update Tailwind CSS v4 guide by @chenjiahan in #7754
- docs: simplify wording in docs by @chenjiahan in #7757
- docs: clarify Tailwind CSS scan scope by @chenjiahan in #7759
- docs: update html template parameters docs by @chenjiahan in #7777
Other Changes
- chore: update skills by @chenjiahan in #7711
- test(e2e): replace vue react mix with solid react by @chenjiahan in #7714
- chore: restore Renovate workspace scanning by @Timeless0911 in #7716
- chore(deps): update module federation to v2.4.0 by @renovate[bot] in #7717
- test: cover SSR autoExternal by @chenjiahan in #7719
- chore(deps): migrate workspace deps to pnpm catalog by @chenjiahan in #7720
- test: cover externals overriding autoExternal by @chenjiahan in #7725
- chore(deps): update sass to ^1.100.0 by @renovate[bot] in #7733
- chore(deps): update swc monorepo to ^12.10.0 by @renovate[bot] in #7734
- test: improve autoExternal e2e cases by @chenjiahan in #7730
- chore(deps): update module federation to v2.5.0 by @renovate[bot] in #7732
- chore(deps): update dependency @shikijs/transformers to ^4.1.0 by @renovate[bot] in #7735
- chore(deps): update dependency ws to ^8.21.0 by @renovate[bot] in #7736
- chore: externalize supports-color in core build by @chenjiahan in #7737
- test: cover autoExternal web CommonJS output by @chenjiahan in #7739
- chore(deps): update node.js to v24.16.0 by @renovate[bot] in #7742
- chore(deps): update rstackjs/rstack-ecosystem-ci to v0.3.1 by @renovate[bot] in #7731
- test(plugin-tailwindcss): add injectStyles e2e by @chenjiahan in #7749
- release: @rsbuild/plugin-tailwindcss v2.0.0 by @chenjiahan in #7751
- test(plugin-tailwindcss): add React HMR e2e case by @chenjiahan in #7755
- test: reorganize tailwindcss e2e cases by @chenjiahan in #7758
- test: add Tailwind CSS source scope cases by @chenjiahan in #7760
- test(plugin-tailwindcss): add Vue and Svelte e2e cases by @chenjiahan in #7762
- chore(deps): update babel to ^7.29.7 by @renovate[bot] in #7756
- release: @rsbuild/plugin-babel v1.2.0 by @chenjiahan in #7766
- chore(deps): upgrade pnpm to 11.3.0 by @chenjiahan in #7767
- chore(deps): update dependency @rsbuild/plugin-babel to ^1.2.0 by @renovate[bot] in #7774
- test: simplify path resolution in entry by @chenjiahan in #7778
- chore(core): upgrade reduce-configs to v2 by @chenjiahan in #7779
Full Changelog: v2.0.7...v2.0.8