Highlights
Solid 2 support
Rsbuild’s Solid plugin v2 is out! It supports Solid 2 and uses Solid’s native compiler by default, compiling JSX 10–20× faster than Babel.
If you use @rsbuild/plugin-babel only for Solid JSX, you can remove it from your dependencies and simplify your rsbuild.config.ts to:
import { defineConfig } from '@rsbuild/core';
-import { pluginBabel } from '@rsbuild/plugin-babel';
import { pluginSolid } from '@rsbuild/plugin-solid';
export default defineConfig({
plugins: [
- pluginBabel({ include: /\.(?:jsx|tsx)$/ }),
pluginSolid(),
],
});New projects created with create-rsbuild now use Solid 2 by default when you select Solid. The plugin is now maintained in its own repository: rstackjs/rsbuild-plugin-solid.
What's Changed
New Features 🎉
- feat(plugin-solid): support ESM and CommonJS JSX extensions by default by @chenjiahan in #8932
- feat(core): allow opting into HMR in none mode by @chenjiahan in #8941
- feat(create-rsbuild): use Solid 2 for the default Solid templates by @chenjiahan in #8952
- feat(core): support sending custom HMR events from the client by @Nsttt in #8957
- feat(deps): update @rspack/core to 2.3.4 by @chenjiahan in #8966
Bug Fixes 🐞
- fix(plugin-solid): add the sourceNames option to SolidPresetOptions by @chenjiahan in #8933
- fix(core): preserve the filename hint for asset conflicts by @chenjiahan in #8945
- fix(core): run preview cleanup when the HTTP server is already closed by @chenjiahan in #8956
- fix(core): serialize HMR messages before queueing by @chenjiahan in #8962
Refactor 🔨
- refactor(plugin-solid): use solid-loader for JSX and refresh by @chenjiahan in #8939
- refactor(plugin-solid): remove redundant include from the refresh rule by @chenjiahan in #8940
- refactor(types): default hot.send payload to unknown by @chenjiahan in #8961
- refactor: move the Solid plugin to its own repository by @chenjiahan in #8965
- refactor(core): remove legacy asset conflict message check by @chenjiahan in #8967
Document 📖
- docs: update Solid setup for v2 stable by @chenjiahan in #8936
- docs: recommend Rstack VS Code extension in CONTRIBUTING.md by @fi3ework in #8946
Other Changes
- chore(deps): upgrade Solid v2 dependencies to stable by @chenjiahan in #8928
- chore(deps): update dependency path-serializer to v0.8.1 by @renovate in #8930
- chore(deps): update dependency octane to ^0.19.3 by @renovate in #8929
- release: @rsbuild/plugin-solid v2.0.0 by @chenjiahan in #8935
- chore: generate package exports with Rslib by @chenjiahan in #8934
- chore(deps): upgrade rstack to v0.9.3 by @chenjiahan in #8937
- test: accept updated SRI diagnostics by @SoonIter in #8938
- release: @rsbuild/plugin-solid v2.1.0 by @chenjiahan in #8942
- chore(website): enable Rspack runtime mode by @chenjiahan in #8944
- chore(deps): update dependency svelte to ^5.58.0 by @renovate in #8949
- chore(deps): update dependency octane to ^0.22.0 by @renovate in #8948
- chore(deps): update dependency solid-loader to v1 by @renovate in #8953
- chore(deps): upgrade range-parser to v2 and adapt the dev server by @chenjiahan in #8954
- chore(deps): update dependency octane to ^0.23.1 by @renovate in #8959
- chore(deps): update all patch dependencies by @renovate in #8958
- chore(deps): enable the pnpm v13 lockfile format by @chenjiahan in #8963
- chore(deps): remove expired release age exclusions by @chenjiahan in #8964
- release: v2.3.4 by @chenjiahan in #8968
Full Changelog: v2.3.3...v2.3.4