Farm

Farm

www.farmfe.org

2

About this website

Farm is an extremely fast web build tool and compilation engine written entirely in the Rust programming language, designed to power both web application development and JavaScript library authoring. The project distinguishes itself through benchmark-leading performance, achieving millisecond-level cold starts for React and Vue projects and hot module replacement updates within 10 milliseconds for most scenarios, measured against comparable tools like Vite, Rspack, Webpack, and Turbopack in publicly available performance comparisons hosted on GitHub. A core architectural innovation is incremental building with module-level persistent caching enabled by default, ensuring that any unchanged module is never recompiled on subsequent builds. The partial bundling system automatically groups output modules into a small number of optimally sized bundles, balancing network request counts against browser cache granularity for faster page loads. Out of the box, the tool compiles HTML, CSS, CSS Modules, JavaScript, JSX, TypeScript, TSX, JSON, and static assets, with official plugins extending support to Sass, Less, PostCSS, Vue single-file components, React Fast Refresh, and Solid. The entire compilation pipeline is plugin-driven, supporting both native Rust plugins for maximum performance and JavaScript plugins for ecosystem compatibility, with full Vite plugin API support for seamless migration. Lazy compilation defers processing of modules until they are actually needed, further reducing startup time in large monorepos. The tool guarantees development and production build consistency, supports both legacy ES5 targets and modern browsers through dual-mode output, and offers nightly builds for early access to features. Open source under the MIT license.

Statistics

2
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!