{"library":"worker-plugin","type":"library","category":null,"description":"Webpack plugin that automatically bundles and compiles Web Workers (including SharedWorkers) integrated into your build. Version 5.0.1 supports both Webpack 4 and 5, with fixes for malformed options objects. It simplifies worker usage by allowing standard `new Worker('./worker.js', { type: 'module' })` syntax, which works without bundling but becomes universally compatible when bundled. Unlike Webpack 5's built-in worker support (which uses `new URL` syntax), worker-plugin uses the more traditional approach and adds SharedWorker support. It does not require runtime changes and supports ESM modules in workers.","language":"javascript","status":"active","version":"5.0.1","tags":["javascript","webpack","plugin","worker","web worker","thread"],"last_verified":"Sat Apr 25","install":[{"cmd":"npm install worker-plugin","imports":["const WorkerPlugin = require('worker-plugin');","import WorkerPlugin from 'worker-plugin';","import WorkerPlugin from 'worker-plugin';"]},{"cmd":"yarn add worker-plugin","imports":[]},{"cmd":"pnpm add worker-plugin","imports":[]}],"homepage":null,"github":"https://github.com/GoogleChromeLabs/worker-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/worker-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}