Solid plugin
The Solid plugin provides support for Solid features. The plugin internally integrates babel-preset-solid.
The Solid plugin relies on Babel transpilation and requires an additional Babel Plugin. At the same time, adding the Babel plugin will cause additional compilation overhead.
Quick start
Install plugin
You can install the plugin using the following command:
Register plugin
You can register the plugin in the rsbuild.config.ts file:
After registering the plugin, you can directly develop Solid.
Since the Solid JSX relies on Babel for compilation, you need to additionally add the Babel plugin.
Babel compilation will introduce extra overhead, in the example above, we use include to match .jsx and .tsx files, thereby reducing the performance cost brought by Babel.
Options
To customize the compilation behavior of Solid, use the following options.
solidPresetOptions
These options are passed to babel-preset-solid. For details, see the babel-preset-solid documentation.
- Type:
SolidPresetOptions - Default:
{} - Example:

