@bubble-dev/babel-worker
v0.4.0
Published
Worker Threads wrapper that automatically applies `@babel/register` with our config
Downloads
20
Keywords
Readme
@bubble-dev/babel-worker
Worker Threads wrapper that automatically applies @babel/register
with our config.
Install
$ yarn add @bubble-dev/babel-worker
Usage
import { BabelWorker } from '@bubble-dev/babel-worker'
const worker = BabelWorker('./file.ts', { workedData: 'hi' })