The Preact plugin provides support for Preact, integrating features such as JSX compilation and React aliasing.
You can install the plugin using the following command:
You can register the plugin in the rsbuild.config.ts file:
After registering the plugin, you can directly develop Preact.
Whether to aliases react, react-dom to preact/compat.
booleantrue