3 ms·
Vite 2.0 (a build tool like Webpack or Rollup, and powered by Esbuild) was just released earlier today. It's seriously awesome. I first learned of Esbuild earl
by Uninen 6y ago
Vite 2.0 (a build tool like Webpack or Rollup, and powered by Esbuild) was just released earlier today. It's seriously awesome.
I first learned of Esbuild early 2020 when I complained on Twitter that JS build tools are awfully slow [1]. Most my (mainly Vue) projects use Webpack and starting the dev server takes typically anywhere between 5-50 seconds.
With Vite, cold devserver start in a mid-sized project on my 2015 MBP is ~2-5 seconds, but vast majority of the starts happen almost instantly as the deps are cached. Hot module reloading and most changes is also very fast and feel instantaneous (where in Webpack projects they would take anywhere between 1-20 seconds). This has HUGE affect in developing experience as you can just keep writing and almost never need to wait for any changes. (The one exception being TailWind/PostCSS builds that take few seconds every time the config or main import changes.)
I absolutely love Esbuild and Vite. Been using them daily for few months now, and I'm currently in the process of converting all my old vue-cli based projects to Vite using a project template I made that has TypeScript, Tailwind, and e2e tests w/ GitLab and GitHub CI configured [2]. If you work with React or Vue and Webpack and haven't yet tested out Vite or any of the other Esbuild based build tools, definitely do check them out!
[1]: https://twitter.com/uninen/status/1230673711910576130 https://twitter.com/uninen/status/1230673711910576130
[2]: https://github.com/Uninen/vite-ts-tailwind-starter https://github.com/Uninen/vite-ts-tailwind-starter