workerize-proxy-loader

Automatically move a module into a Web Worker (Webpack loader) using proxies

Usage no npm install needed!

<script type="module">
  import workerizeProxyLoader from 'https://cdn.skypack.dev/workerize-proxy-loader';
</script>

README

workerize-proxy-loader npm travis

This is a fork. You probably want workerize-loader.

This fork makes access to the worker methods available via an ES6 Proxy, allowing it to be used with packages generated by rollup.

Install

npm install -D workerize-proxy-loader

API

The API is identical to workerize-loader.

Credit

The inner workings here are heavily inspired by worker-loader. It's worth a read!

ES6 proxy fork by James K Nelson.

License

MIT License © Jason Miller