logoalt Hacker News

ericydyesterday at 6:52 PM3 repliesview on HN

The author closes by enumerating some of the things they like about Bun which are not included in pnpm. The list is basically: native TS support, a vite-style bundler and a vitest/jest style test runner.

Other than a bundler, Node already has all of these. Different test runner syntax maybe but otherwise TS "just works" out of the box and their built in test runner is totally capable. Not sure I see the need for such a lament over Bun.


Replies

jazzypantsyesterday at 7:01 PM

To be fair, Node didn't have any of these things until Deno & Bun challenged it. Deno didn't seem to move the needle by itself very much for whatever reason, but Bun's existence has had a tangible effect on the Node Technical Steering Committee. I would even argue that much of the current impetus has been driven by Jarred Sumner's savvy social media marketing. It got people talking, and Node is better because of it.

Additionally, Bun's push for covering as much of the Node API as possible has pushed Deno towards the same level of compatibility, and now most code is basically runtime agnostic. I'm not sure if I'll ever actually use Bun in production, but I'm glad it exists because the JavaScript ecosystem has been much improved simply due to its existence.

show 2 replies
hootzyesterday at 6:56 PM

When did Node add native TypeScript? Can you run "node main.ts" directly without any dependencies?

show 2 replies
pjmlpyesterday at 6:55 PM

Additionally, with Typescript compiler rewrite, it is even less relevant.