Package Exports
- esbuild-runner
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (esbuild-runner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
⚡ Esbuild Runner (esr
)
Super-fast on-the-fly transpilation of modern JS, TypeScript and JSX using esbuild.
esr makes it easy to run arbitrary code or tests without needing to build your whole project. It's a great way to improve your development.
✨ Usage
The easiest way to use esbuild-runner is to install it globally and use the included esn
binary.
$ esr hello-world.ts
Alternatively, you can require esbuild-runner within any nodejs process to include realtime transpilation:
$ node -r esbuild-runner/register hello-world.ts
In order to use esbuild-runner with Jest, you need to configure a Jest transform in your jest.config.js
module.exports = {
transform: {
"\\.ts$": "esbuild-runner/jest",
},
}
📦 Installation
Simply install the esbuild-runner npm package using your favorite package manager.
- globally ...
$ npm install -g esbuild-runner
- ... or locally in your project
$ npm add esbuild-runner
👋 Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.