@bubble-dev/babel-worker

Worker Threads wrapper that automatically applies `@babel/register` with our config

Usage no npm install needed!

<script type="module">
  import bubbleDevBabelWorker from 'https://cdn.skypack.dev/@bubble-dev/babel-worker';
</script>

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' })