Skip to main content
Version: 1.0.0

@farmfe/plugin-react

Support React Jsx and React Refresh for Farm.

Installation​

npm install @farmfe/plugin-react react-refresh

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.

Extremely Fast Web Build Tool Written in Rust

Copyright Š 2024 Farm Community. Built with Docusaurus.