Replies: 4 comments
-
ESbuild FTW. |
Beta Was this translation helpful? Give feedback.
-
what does that mean, learned a little about mithril in the past, do you mean there is a way for esbuild to work with mithril now? Thanks. I want to pick up mithril but webpack is a non-starter for me at this point. the reason to switch from react to mithril is simplicity, and webpack in mithril does not help(react is recommending vite on the build side too, along with pretty much everybody else) |
Beta Was this translation helpful? Give feedback.
-
Vite adds a layer of DX (and a ton of marketing) on top of esbuild that you get the most out of for codebases that produce a visual result (like a site or an app). It only swaps out esbuild's bundling feature for rollup's because it is more full-featured if you want to do all sorts of live-reloadable, hot-module-replaced import preprocessing (eg JSX, MDX, SASS etc) IMO for a library like mithril.js esbuild CLI/API would be enough.
Of course, why wouldn't there be? |
Beta Was this translation helpful? Give feedback.
-
Mithril does work with Vite (and esbuild) if you are writing Though personally I agree that you might want to avoid using |
Beta Was this translation helpful? Give feedback.
-
I like the fact that mithril now is the only SPA that does not get into the SSR side, which makes it complex for people who are only interested in SPA CSR, however the webpack is a bit "out of date" these days, hope Mithril can make vite the default
Mithril.js version:
Why
vite is faster, smaller and more importantly, easier to use. make it default will likely invite more new users too.
Beta Was this translation helpful? Give feedback.
All reactions