rollup-plugin-comlink
rollup-plugin-comlink copied to clipboard
Use workers seamlessly with Rollup
Hi, I'm trying to get this plugin to work following the minimal example from the README, but I'm getting a `Cannot find module` error. `rollup.config.js` ``` import comlink from "@surma/rollup-plugin-comlink";...
Hi! First of all, thank you for this amazing library. We are trying to use this in some of our projects, and although it works seamlessly in JavaScript, we were...
I'm looking for a plugin that is similar to [comlink-loader singleton mode](https://github.com/GoogleChromeLabs/comlink-loader#singleton-mode) and found this plugin. However this feature isn't included. I'd like to file a PR that adds a...
Followed Readme instruction, cannot compile with error: ` [!] (plugin comlink) TypeError: Cannot read property 'id' of null TypeError: Cannot read property 'id' of null at Object.resolveId (D:\sourcecode\frontend\ts-rollup-web-worker\node_modules\@surma\rollup-plugin-comlink\index.js:55:58) ` base...
Fixes #1. This PR adds new option `autoWrap: Array`. If a module e.g. `worker.js` matches the regex, other modules depending on it will be converted from ```js import {foo} from...
I use rollup-plugin-iife to convert ES modules into IIFE and use a different loader (i.e. `importScripts`) to load dependencies. In this case, `output.format === 'esm'` but I don't want to...