0.3.0 • Published 2 years ago
@ohpz/esbuild-jest v0.3.0
esbuild-jest
A Jest transformer using esbuild
Install
npm install -D @ohpz/esbuild-jest
Set transform
TypeScript file to @ohpz/esbuild-jest
inside jest.config.js
{
"transform": {
"^.+\\.tsx?$": "@ohpz/esbuild-jest"
}
}
Specify esbuild options
const esbuildOptions = {}
module.export = {
transform: {
"^.+\\.tsx?$": [
"@ohpz/esbuild-jest",
esbuildOptions
]
}
}
License
MIT License © 2021 hannoeru
0.3.0
2 years ago