@nitrogql/esbuild-register
v1.7.0
Published
Uses esbuild to run TypeScript files directly with Node.js
Downloads
16,451
Readme
@nitrogql/esbuild-register
This package contains an implementation similar to egoist/esbuild-register.
Usage
Usage depends on your Node.js version.
Node.js >= 20.6.0 or >= 18.19.0
node --import=@nitrogql/esbuild-register
Node.js < 20.6.0 and < 18.19.0
node --import=@nitrogql/esbuild-register --experimental-loader=@nitrogql/esbuild-register/hook
Notes
This package does not intend to be a drop-in replacement for esbuild-register
. It intentionally does not support some features, for example import.meta.url
support in CJS modules.