Skip to content

graywolftech/esbuild-register

 
 

Repository files navigation

esbuild-register

Install

yarn add esbuild-register --dev

esbuild is also required as a peer dependency.

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.

License

MIT © EGOIST (Kevin Titor)

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 99.2%
  • JavaScript 0.8%