News for hackers. Stuff that matters.
Re:Bun 1.1 by searchableguy on Monday April 01, 2024 @11:36PM (#39902142)
You can use tsx as loader with node if you want to directly run typescript.

node --import tsx ./file.ts

Re:Bun 1.1 by zackify on Tuesday April 02, 2024 @12:03AM (#39902268)
The problem is, if you have ESM and then a tool in your repo like jest, requires commonjs.

Now you have to compile stuff.

In my case I’ve had apps use certain ts config options, and then another library has a start script which is incompatible.

So you’re stuck needing a different TS config for both things. These annoyances are solved with bun

Re:Bun 1.1 by galaxyLogic on Tuesday April 02, 2024 @12:01AM (#39902257)
Does it support editing the source-files while in the debugger?

I've been hesitant to move to TypeScript because I'm unsure how well the debugger works in practice.

My current platform is Node.js + WebStorm IDE as a debugger. I can debug the JavaScript and I can modify it while stopping at a breakpoint or debugger-statement. It is a huge time-saver that I don't have to see something wrong with my code while in the debugger and then find the original source-file to modify and recompile and then restart.

Just curious, do Deno and Bun support edit-while-debug, out of the box? Or do I need to install some dependencies to make that work?