PageSourceSearch

https://farm-nightly.netlify.app/assets/js/a02e0a26.1516c3d9.js

js farm-nightly.netlify.app collected 2026-10-03 10:43:56 UTC 2,188 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfarm_docs=self.webpackChunkfarm_docs||[]).push([[526],{6846:(i,n,e)=>{e.r(n),e.d(n,{assets:()=>g,contentTitle:()=>l,default:()=>c,frontMatter:()=>t,metadata:()=>u,toc:()=>o});var s=e(49214),r=e(36906);const t={},l="Overview",u={id:"plugins/writing-plugins/overview",title:"Overview",description:"To use a Rust plugin, configuring plugins in farm.config.ts.",source:"@site/docs/plugins/writing-plugins/overview.md",sourceDirName:"plugins/writing-plugins",slug:"/plugins/writing-plugins/overview",permalink:"/docs/plugins/writing-plugins/overview",draft:!1,unlisted:!1,editUrl:"https://github.com/farm-fe/farm-fe.github.io/tree/main/docs/plugins/writing-plugins/overview.md",tags:[],version:"current",frontMatter:{},sidebar:"pluginSidebar",previous:{title:"Community Plugins",permalink:"/docs/plugins/community-plugins"},next:{title:"Writing Rust Plugins",permalink:"/docs/plugins/writing-plugins/rust-plugin"}},g={},o=[];function p(i){const n={a:"a",code:"code",h1:"h1",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...i.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"overview",children:"Overview"})}),"\n",(0,s.jsxs)(n.p,{children:["To use a Rust plugin, configuring ",(0,s.jsx)(n.code,{children:"plugins"})," in ",(0,s.jsx)(n.code,{children:"farm.config.ts"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"import { defineFarmConfig } from '@farmfe/core';\n\ndefineFarmConfig({\n  // ...\n  plugins: [\n    { /*..*/ }, // Js plugin, a object with hook defined\n    '@farmfe/plugin-react', // rust plugin package name\n  ]\n})\n\n"})}),"\n",(0,s.jsx)(n.p,{children:"Farm support both rust plugins and js plugins:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/plugins/writing-plugins/rust-plugin",children:"Writing Rust Plugin"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/plugins/writing-plugins/js-plugin",children:"Writing Js Plugin"})}),"\n"]})]})}function c(i={}){const{wrapper:n}={...(0,r.R)(),...i.components};return n?(0,s.jsx)(n,{...i,children:(0,s.jsx)(p,{...i})}):p(i)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.