Replace Webpack in a large JavaScript project to get significantly faster development build startup times
Switch from Vite to Farm to eliminate dev-vs-production build inconsistencies while keeping existing Vite plugins
Start a new React or Vue project with Farm for millisecond startup and near-instant hot reloading
Use lazy compilation to only build the parts of a large app that are actively being used, cutting wait times
Install via npm/yarn/pnpm, no manual Rust compilation needed, requires Node.js 16+ on the host machine.
Farm is a tool that builds web applications for the browser. When you write code in JavaScript, TypeScript, React, or Vue, a build tool takes all those files and packages them into the smaller, optimized files a browser can load. Farm does that job, and its main selling point is speed: it is written in Rust, a programming language known for performance, which lets it start projects in milliseconds and apply code changes almost instantly while you are working. The authors built Farm because they felt the popular tools already available had real weaknesses at scale. Webpack, which has been the standard for years, can be very slow on large codebases. Vite, a newer alternative, is faster during development but uses a different approach for the production build than for development, which can cause bugs that only appear when you ship. Farm uses the same approach in both environments, so what you see during development matches what goes to production. It also supports Vite plugins directly, meaning teams already using Vite can switch without throwing away their existing setup. Some of its other features include incremental building, which means it skips recompiling any file that has not changed since the last run, and lazy compilation, which means it only compiles parts of the code that are actually being used at any given moment. Both of these cut down waiting time on large projects. It also handles CSS, images, Sass, Less, and other common file types without needing extra configuration. Farm reached version 1.0 and is described as production-ready. The project is open source and has been used in enterprise projects according to the README. You can start a new project with a single command using npm, yarn, or pnpm.
← farm-fe on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.