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.
npm install -D workerize-proxy-loader
The API is identical to workerize-loader.
The inner workings here are heavily inspired by worker-loader. It's worth a read!
ES6 proxy fork by James K Nelson.