My recommended stack: node, npm, typescript and esbuild.
My recommended stack: node, npm, typescript and esbuild.
CRA, yes. Vite, not in my experience. Vite does what it says it does, gets out of your way, is configurable enough when you need it to be, and has great testing tools. I don’t think I’ve ever had an issue with Vite.
I do understand esbuild, I don't understand whatever it is that Vite does.
Edit: I don't know how Vite's HMR works, but it wouldn't surprise me if it is just piggybacking on esbuild's live reloading. Anyone here knows if there is a difference between the two?
My guess is that Vite relies on underlying tools as much as possible and only ejects when they need to. This is also why they are writing their own version of esbuild/rollup so that more of the dev pipeline can be controlled by Vite.
My code editor always auto saves changes so i just alt tab to browser and refresh to see changes
With live reload, often what happens, especially as projects get larger, is the watcher takes longer to trigger so the live reload is slower than just alt-tabbing, and it sometimes goes off on its own, probably due to multiple quick file changes, which is really annoying
I've never enjoyed this feature
esbuild index.js --bundle --outfile=build.cjs --format=cjs --platform=node
You can use pkg then to make this bundle executable.
pkg build.cjs
This is not vite. :-)