README.md
</a>
<a href="https://twitter.com/FarmFe71928" >
</a>
<a href="https://npmjs.com/package/@farmfe/core"></a>
<a href="https://nodejs.org/en/about/releases/"></a>
Farm is an extremely fast vite-compatible web-building tool written in Rust. It's designed to be fast, powerful and consistent, aims to provide best experience for web development, which is the real next generation build tool.
See Why Farm for details.
In short, tools like webpack are too slow, but new tools like Vite are not perfect, Vite has a lot of drawbacks when comes to a large project:
Farm can solve these problems perfectly, and it's really fast cause it's written in Rust. Farm aims to be fast, consistent, flexible, which is the real next generation build tool.
[!NOTE]
- Since Farm v0.13, Vite plugins can be used directly in Farm. Refer to Using vite plugins in Farm
- Since Farm v0.14, persistent disk cache enabled by default. Refer to Incremental Building
- Now Farm is 1.0 stable and production ready!. See Farm official website to get started.
dynamic import and the imported module won't be compiled when it is executed.Farm has implemented all features of a web build tool, including production optimization like tree shake and minification. It's now 1.0 stable. We have already migrated enterprise projects to Farm, and it works great!
See RFC-001 Architecture for design motivation and architecture.
Create a new Farm(support both React and Vue) project with your favorite package manager:
# with npm
npm create farm@latest
# with yarn
yarn create farm@latest
# with pnpm
pnpm create farm@latest
Visit Farm Documentation to learn more about Farm.
Farm is much faster than similar tool, 20x faster than webpack and 10x faster than Vite in the benchmark:
See Benchmark for details.
See Contributing Guide.
With Discord
Wechat group
QQ group
</th>
</tr>
<tr>
<td>
<picture>
<source
media="(prefers-color-scheme: dark)"
srcset="https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=active&period=past_28_days&owner_id=108205785&repo_ids=507542208&image_size=2x3&color_scheme=dark"
/>
</picture>
</td>
<td rowspan="2">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://next.ossinsight.io/widgets/official/compose-org-participants-growth/thumbnail.png?activity=new&period=past_28_days&owner_id=108205785&repo_ids=507542208&image_size=4x7&color_scheme=dark">
</picture>
</td>
</tr>
<tr>
<td>
<picture>
<source
media="(prefers-color-scheme: dark)"
srcset="https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=new&period=past_28_days&owner_id=108205785&repo_ids=507542208&image_size=2x3&color_scheme=dark"
/>
</picture>
</td>
</tr>
Thanks to https://github.com/tmm who donated the farm npm package to the Farm team.
Thanks to projects:
The SWC project created by @kdy1, which powers Farm's code parsing, transformation and minification.
The NAPI-RS project created by @Brooooooklyn, which powers Farm's node-binding implementation.
The Rollup project created by @lukastaegert, which inspired Farm's plugin system implementation.
The Vite project created by Evan You, which inspired Farm's compatibility design of ecosystem.
Author:
Maintainer: