Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / crypto / lib / worker / worker.ts
blob2045e3ab82f009886d6dace5ed646b1e629b3415
1 import { expose, transferHandlers } from 'comlink';
2 // apply polyfills
3 import 'core-js/stable';
5 import { Api as WorkerApi } from './api';
6 import { workerTransferHandlers } from './transferHandlers';
8 workerTransferHandlers.forEach(({ name, handler }) => transferHandlers.set(name, handler));
10 WorkerApi.init();
12 expose(WorkerApi);