by johnfn · 3y ago · 0 comments
> I really wish the Node, Typescript, Deno/Bun, and maybe some bundler people would come together and figure out how to make this easier for people.
Bun has solved this. Bun is straight-up magic; they've implemented tons of hacks and heuristics so everything just works. Bun can even handle ridiculous or otherwise invalid code, like having import and require in the same file.
So, business as usual in the Javascript space. That's how the ecosystem got here, and why nothing works reliably.
I tried it and ran into many issues. For example:
- Incompatibility of transpiled artifacts with the Node runtime (many bugs were fixed, but I haven't tried again). I don't trust bun as a runtime.
- Broken monorepo support.
- No direct react support; you still need react-scripts/webpack/whatever. They have documentation on transpiling react, but it isn't the same.
- No type checking, as with many other tools.
Also, filter their issue tracker for bugs: https://github.com/oven-sh/bun/issues?q=is%3Aissue+is%3Aopen...