All Projects → egoist → Esbuild Register

egoist / Esbuild Register

Licence: mit
Transpile JSX, TypeScript and esnext features on the fly with esbuild

Programming Languages

typescript
32286 projects

esbuild-register

Install

npm i esbuild-register -D
# Or Yarn
yarn add esbuild-register --dev

Usage

node -r esbuild-register file.ts

It will use jsxFactory, jsxFragmentFactory and target options from your tsconfig.json

When using Yarn, you can add an npm script:

"ts": "node -r esbuild-register"

to shorten the command, now just run yarn ts file.ts instead.

Programmatic Usage

const { register } = require('esbuild-register/dist/node')

register({
  // ...options
})

License

MIT © EGOIST w

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].