Overview of Farm features
mainFarm is a high-performance web build engine written in Rust that is compatible with the Vite plugin ecosystem. Key features include:
- Super Fast: Millisecond-level startup for React/Vue projects and ~10ms HMR updates.
- Incremental Builds: Supports persistent caching at the module level to avoid re-compiling unchanged modules.
- Pluggable Architecture: Supports Vite plugins, Farm compilation plugins (Rust, JS, and Swc), Farm Runtime plugins, and Farm Dev Server plugins.
- Rich Compilation Support: Out-of-the-box support for JS/TS/JSX/TSX, CSS, CSS Modules, Sass, Less, PostCSS, HTML, and static assets.
- Lazy Compilation: Only compiles dynamic imports when they are requested, speeding up large projects.
- Partial Bundling: Automatically bundles resources based on dependency relationships and size to optimize loading and cache hits.
- Consistency: Ensures consistent behavior between development and production environments.
- Compatibility: Supports both modern and legacy (ES5) browsers.