Overview
Farm officially provides a lot of useful plugins, including Rust plugins and JS plugins. Rust plugins are much faster than Js plugins, we recommend to use Rust plugins whenever possible.
tip
Refer to Using Plugins for how to use plugins in Farm.
Rust Plugins
@farmfe/plugin-react
:Support Reactjsx
andreact-refresh
.@farmfe/plugin-sass
:Support compilingsass/scss
files.@farmfe/plugin-strip
:A Farm rust plugin to removedebugger
statements and functions likeassert.equal
andconsole.log
from your code.@farmfe/plugin-dsv
:A Farm plugin which converts.csv
and.tsv
files into JavaScript modules.@farmfe/plugin-yaml
:A Farm plugin which Converts YAML files to ES6 modules.@farmfe/plugin-virtual
:A rust plugin for farm to easily use virtual module.@farmfe/plugin-react-components
:On-demand components auto importing for React.
Js Plugins
@farmfe/js-plugin-postcss
:Supportpostcss
in your project.@farmfe/js-plugin-less
:Support compilingless
files.@farmfe/js-plugin-svgr
:Support compilingsvg
files.@farmfe/js-plugin-dts
:Support compiling*.d.ts
files.@farmfe/js-plugin-sass
:Support compilingsass/scss
files.
Community Plugins
If official plugins doesn't meet your needs, you can try Community Plugins
And of course check out awesome-farm - you can also submit a PR to list your plugins there.