メインコンテンツへスキップ

All Posts

News bits

Farm v1

Most powerful, fastest, and most stable をうたう Rust 製ビルドツールの Farm v1 がリリースされました。公開している 1000 個の React コンポーネントを利用したベンチマークテストでは、Vite の 10 倍高速であるとのこと。

https://github.com/farm-fe/farm/releases/tag/v1.0

Farm は、Vite のプラグインエコシステムと互換性があります。元々 Rollup 形式のプラグインシステムを採用していたこともあり、早く本番稼働できるように Vite 互換性を持つことを選択したようです。

Make Farm compatible with most Vite plugins #622

またキャッシュを利用した Incremental build、Lazy compilation がデフォルトで利用している他、開発と本番のビルドで全く同じ戦略を利用するため Vite の欠点も解消されます。

Vite では ESBuild と Rollup を使い分けているため、開発環境と本番環境で差が生まれる可能性があることや、複数のツールを使うことによるパフォーマンスの低下や複雑度が増加する問題があります。

Vite は、この問題を解決するために Rust 製の Rollup 互換の Rolldown を現在開発中であり、Farm と多くの部分で被っているため、どのような差が生まれるのかは気になります。

著者について

Hi there. I'm hrdtbs, a frontend expert and technical consultant. I started my career in the creative industry over 13 years ago, learning on the job as a 3DCG modeler and game engineer in the indie scene.

In 2015 I began working as a freelance web designer and engineer. I handled everything from design and development to operation and advertising, delivering comprehensive solutions for various clients.

In 2016 I joined Wemotion as CTO, where I built the engineering team from the ground up and led the development of core web and mobile applications for three years.

In 2019 I joined matsuri technologies as a Frontend Expert, and in 2020 I also began serving as a technical manager supporting streamers and content creators.

I'm so grateful to be working in this field, doing something that brings me so much joy. Thanks for stopping by.