Re:Farm: Fast vite compatible build tool written in Rust
by lenkite on Saturday June 22, 2024 @03:08AM
(#40757052)
I suppose we should wait until all tools move to Rust/Zig before learning modern front-end engineering to bypass the churn phase. Till then stick to plain HTML+CSS.
Re:Farm: Fast vite compatible build tool written in Rust
by johnny22 on Saturday June 22, 2024 @04:49AM
(#40757488)
for the basics you can just use vite and nothing will change except what's underneath. it's only when you get fancy that you need to write your own plugins that would really be affected by this churn.
Re:Farm: Fast vite compatible build tool written in Rust
by crabmusket on Saturday June 22, 2024 @10:29AM
(#40759384)
I've been using webpack for the last 7 years. Major version upgrades can be a pain, but broadly it's fine. People hopping frameworks every 6 months are causing their own problems.
Re:Farm: Fast vite compatible build tool written in Rust
by alluro2 on Saturday June 22, 2024 @03:46PM
(#40761613)
I fully agree with the sentiment - but for me there's also that I could remove 26 (!) dev dependencies and minutes off each build, in a medium-sized app, when replacing Webpack with Vite - so it's worth being in the loop at least to some extent.
Re:Farm: Fast vite compatible build tool written in Rust
by crabmusket on Saturday June 22, 2024 @11:31PM
(#40764558)
Yep, that makes total sense. We're also looking at a Vite migration in the near future, but also making sure that whatever we do, we're leaning more on web standards and common functionality, and avoiding as much bundler specific stuff as possible.
Back in the day is was cute that you could import GLSL fragments directly into your JS code. Now, not so much.
That’s completely backwards. Vite only uses rollup for production, which is why production build is slower. https://vitejs.dev/guide/why.html#why-not-bundle-with-esbuil... The plan is to replace both esbuild and rollup with Rust-based rolldown (fast, and supports rollup’s plugin architecture) eventually. See https://www.youtube.com/watch?v=hrdwQHoAp0M.