6 ms·
You can use tsx as loader with node if you want to directly run typescript. node --import tsx ./file.ts
by searchableguy 2y ago
You can use tsx as loader with node if you want to directly run typescript.
node --import tsx ./file.ts
- galaxyLogic 2y agoDoes 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?
- zackify 2y agoThe 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