{"library":"rollup-plugin-off-main-threads","type":"library","category":null,"description":"Rollup plugin to seamlessly use Web Workers with ES modules by shimming AMD/ESM support for workers. Current stable version is 1.0.0. It auto-bundles workers referenced via `new URL` patterns, and also supports importing workers as URLs via the `omt:` scheme. Differentiators: it works with Rollup's native worker support and handles complex worker bundling scenarios, including Service Workers with `useEval`. It enforces AMD or ESM output format for workers due to limited native module support in browsers.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install rollup-plugin-off-main-threads","imports":["import OMT from '@surma/rollup-plugin-off-main-thread'","import workerURL from 'omt:./worker.js'","OMT({ workerRegexp: /new Worker\\(([^)]+)\\)/ })"]},{"cmd":"yarn add rollup-plugin-off-main-threads","imports":[]},{"cmd":"pnpm add rollup-plugin-off-main-threads","imports":[]}],"homepage":"https://github.com/jeffrylim92/rollup-plugin-off-main-thread#readme","github":"https://github.com/jeffrylim92/rollup-plugin-off-main-thread","docs":null,"changelog":null,"pypi":null,"npm":"rollup-plugin-off-main-threads","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}