4 ms·
The Bun DX is infinitely better than Node's, especially for Typescript projects
by crubier 5mo ago
The Bun DX is infinitely better than Node's, especially for Typescript projects
- thot_experiment 5mo agoIn what particular way? I've been using Typescript a lot more recently (unfortunately XD) and I've found the native experience in Node to be totally fine.
- traderj0e 5mo agoNode's built-in profiler doesn't work with Typescript, which is one part of Node not natively supporting TS. Idk how it is in Bun, cause that made me abandon TS rather than abandoning Node.
- kigiri 5mo agoNode supports ts natively now though.
- bel8 5mo agoeven enums? last I tested, it did type-stripping only. And looking ad docs, it seems it only has partial support still: https://nodejs.org/api/typescript.html https://nodejs.org/api/typescript.html > To use TypeScript with full support for all TypeScript features, including tsconfig.json, you can use a third-party package. These instructions use tsx as an example but there are many other similar libraries available.
- traderj0e 5mo agoAnd this partial support is fairly recent. If it says anything other than "ts is fully supported exactly the same as js" then I'm gonna pass on ts.