1.1.0
- Add new
?multi
option to allow multiple instances of the worker:
import Foo from 'comlink-loader?multi!./foo.worker';
await new Foo() // creates a new worker
await new Foo() // creates another new worker
?multi
option to allow multiple instances of the worker:import Foo from 'comlink-loader?multi!./foo.worker';
await new Foo() // creates a new worker
await new Foo() // creates another new worker