For example, if your build process is very slow and you for some reason have to have it be very fast, esbuild is probably the right tool.
But if instead your goal is to build a large community of developers who can change their own tooling, webpack is probably the right tool as it's by JS developers, for JS developers.
Overall I agree with you, just nitpicking a bit I guess :)
Yes I agree, but I think my point still stands :)
Could you explain further why you think so? Dogfooding tooling and bootstrapping runtimes with themselves is a fairly common practice, at least for discovering issues, bugs and future features for your own project.
Then that those features can both be used for frontend or backend code matters less, as the new JS features are usually not geared to a specific environment but for JS as a whole.
So dogfooding here isn't used by major projects, and I think we can see a pattern.
For a formatting tool, I would agree with you more, but again, for a tool, wouldn't the formatting of the code of the tool itself be a distraction? It may be or it may be not, it depends, but the benefits are less clear for tooling.
Isn't that the workflow when working with/on TypeScript? (substitute webpack with TypeScript)
Tooling may also use a transpiled language but again, I, as a developer who's very experienced with JS, don't see a big win there.
Someone mentioned Flow + OCaml as a bad example and how it doesn't work out for them, but that's more than tooling. At that point you are not using tools written in other languages to build JS, you are just using other languages.
However, TypeScript is now suffering from long compile-times because it targets JS. If it was implemented in a language with more control over threading etc. I think it could be faster.
Also, if I could use TS on the backend without node (say, with the lib/runtime of another language), that would be amazing.
`tsc` is pretty great to be honest but it feels like the exception.