Releases: mileszim/useWorker
Release list
@mileszim/useworker@4.2.0
Minor Changes
-
e046f9c: Add the
@mileszim/useworker-viteVite plugin, which compiles a*.workermodule's entire import graph (local files and npm packages) into a real module-worker chunk. Worker functions can now be composed across modules and invoked withuseWorkerexactly like a pure function.@mileszim/useworkerdetects these plugin-built worker modules and runs them via a module worker instead of thefn.toString()blob path. This release also fixesremoteDependencies(importScripts), which threw under module workers, and thekillcontroller for module workers.
@mileszim/useworker-vite@4.2.0
Minor Changes
-
e046f9c: Add the
@mileszim/useworker-viteVite plugin, which compiles a*.workermodule's entire import graph (local files and npm packages) into a real module-worker chunk. Worker functions can now be composed across modules and invoked withuseWorkerexactly like a pure function.@mileszim/useworkerdetects these plugin-built worker modules and runs them via a module worker instead of thefn.toString()blob path. This release also fixesremoteDependencies(importScripts), which threw under module workers, and thekillcontroller for module workers.