Skip to main content
Version: 1.0.0

@farmfe/plugin-react

Support React Jsx and React Refresh for Farm.

Installation

npm
yarn
pnpm
bun
npm add @farmfe/plugin-react

Usage

@farmfe/plugin-react is a Rust plugin, you only need to configure its package name in plugins field in farm.config.ts.

import { UserConfig } from '@farmfe/core';

const config: UserConfig = {
plugins: ['@farmfe/plugin-react', { /** options here */}]
}

Options

See SWC Transform React Options.