How does Farm achieve its extremely fast performance for HMR updates?
Farm is written in Rust, which contributes to its speed. This allows it to start a React or Vue project in milliseconds and perform HMR updates within 10ms in most scenarios.
What is 'Incremental Building' and how does it benefit development with Farm?
Incremental Building in Farm utilizes a persistent cache and module-level caching, which is enabled by default. This ensures that modules are not recompiled unnecessarily, only being recompiled when changes occur, significantly speeding up development cycles.
Can Farm integrate with existing Vite plugins?
Yes, Farm offers out-of-the-box support for Vite plugins. This allows developers to leverage a wide ecosystem of existing tools and functionalities within their Farm projects.
What types of assets and languages does Farm support compiling by default, and what additional support is available via plugins?
Farm natively supports compiling HTML, CSS, CSS Modules, Js/Jsx/Ts/Tsx, JSON, and Static Assets. Through official plugins, it extends support to Sass, Less, PostCSS, Vue, React, and Solid.
How does 'Partial Bundling' optimize resource loading and caching in projects built with Farm?
Partial Bundling organizes your project into a few optimized bundles. This approach accelerates resource loading by reducing the number of requests while still maintaining granular caching capabilities.