This example app shows how to set up your Vue + Typescript project to use Comlink to wrap your TS WebWorkers (with ES6 style imports). The files of interest are vue.config.js
, src/worker.ts
and src/App.vue
.
Still to figure out is how to import the types of the WebWorker so that we can get autocompletion for the worker properties and methods.
yarn install
yarn serve
yarn build
yarn lint