Skip to content

hyrious/esbuild-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b22b806 · Feb 14, 2025
Jul 28, 2024
Feb 11, 2025
May 22, 2024
Aug 27, 2024
Feb 14, 2025
Feb 12, 2025
Jan 20, 2023
Dec 14, 2022
Feb 14, 2025
Jan 11, 2021
Jan 20, 2023
Aug 26, 2024
Feb 14, 2025
Feb 14, 2025
Aug 27, 2024

Repository files navigation

@hyrious/esbuild-dev

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.

Features

  • Fast with the help of esbuild, use esbuild-dev to substitute ts-node
    • pros: checkout this repo's actions, npm run build done in 0.30s!
    • cons: you won't get any type checking at all
  • 🐛 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

Install

npm i -g @hyrious/esbuild-dev esbuild

Note: esbuild is a peer dependency!

Usage

esbuild-dev [--watch] main.ts

Read the docs to learn more.

Develop

The source codes in the project is carefully written in a style that esbuild won't generate interop helpers. Refer esbuild#1831 to learn how.

License

MIT @ hyrious