Build and run your script.ts, like ts-node or node-dev.
Require Node.js ^14.18 || >=16 to use --enable-source-maps and top-level await.
- ⚡ Fast with the help of esbuild, use
esbuild-devto substitutets-node- pros: checkout this repo's actions,
npm run builddone in 0.30s! - cons: you won't get any type checking at all
- pros: checkout this repo's actions,
- 🐛 Easy to Debug with the help of node's
--enable-source-maps - ✨ No Magic other than esbuild itself. the author refuses to use any
require.extensions-like things
npm i -g @hyrious/esbuild-dev esbuildNote: esbuild is a peer dependency!
esbuild-dev [--watch] main.tsThe source codes in the project is carefully written in a style that esbuild won't generate interop helpers. Refer esbuild#1831 to learn how.
MIT @ hyrious