Skip to main content
FarmFarm
Version: 2.x (Latest)
On this page

Overview

To use a Rust plugin, configuring plugins in farm.config.ts.

ts
import { defineFarmConfig } from '@farmfe/core';
import react from '@farmfe/plugin-react';

defineFarmConfig({
  // ...
  plugins: [
    { /*..*/ }, // Js plugin, a object with hook defined
    react(), // rust plugin imported and called like a JS plugin
  ]
})

Farm support both rust plugins and js plugins:

100%

Drag or pinch to explore. Keyboard: + / − zoom, arrows pan, 0 resets, Esc closes.