{"library":"vite-plugin-comlink","type":"library","category":null,"description":"Vite plugin that integrates Comlink to simplify Web Worker and SharedWorker usage. Current stable version is 5.3.0, released under MIT license. It removes the need for manual `expose` and `wrap` calls, automatically transforming workers referenced via `ComlinkWorker` and `ComlinkSharedWorker` constructors. Requires Vite >=2.9.6 and comlink as a peer dependency. Key differentiator: zero-config setup for Comlink with Vite, supports both module and classic workers, and provides TypeScript type inference for worker modules.","language":"javascript","status":"active","version":"5.3.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vite-plugin-comlink","imports":["import { comlink } from 'vite-plugin-comlink'","const worker = new ComlinkWorker(new URL('./worker.js', import.meta.url), {});","const sharedWorker = new ComlinkSharedWorker(new URL('./worker.js', import.meta.url), {});"]},{"cmd":"yarn add vite-plugin-comlink","imports":[]},{"cmd":"pnpm add vite-plugin-comlink","imports":[]}],"homepage":null,"github":"https://github.com/mathe42/vite-plugin-comlink","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-comlink","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vite-plugin-comlink/compatibility"}}