@farmfe/plugin-react
支持 React Jsx 和 React Refresh
Installation
sh
npm add @farmfe/plugin-reactsh
yarn add @farmfe/plugin-reactsh
pnpm add @farmfe/plugin-reactsh
bun add @farmfe/plugin-reactUsage
@farmfe/plugin-react 是一个 Rust 插件,你只需要在 farm.config.ts 的 plugins 字段中配置它的包名。
ts
import { UserConfig } from '@farmfe/core';
const config: UserConfig = {
plugins: ['@farmfe/plugin-react', { /** options here */}]
}
Options
请参阅SWC 转换 React 选项。
Farm