Skip to content

v2.3.4

Latest

Choose a tag to compare

@chenjiahan chenjiahan released this 24 Nov 07:45
b2afded

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 📖

Other Changes

Full Changelog: v2.3.3...v2.3.4