TP-73120 | lan statement worker fix (#1038)

This commit is contained in:
Varnit Goyal
2024-07-10 17:05:59 +05:30
committed by GitHub
parent 6ce2b4bfcc
commit d08c7d182c

View File

@@ -1,7 +1,7 @@
import * as Comlink from 'comlink';
import { BankStatementWorker } from './bankStatementWorker';
const worker = new Worker(new URL('./bankStatementWorker', import.meta.url), { type: 'module' });
import WorkerInstance from './bankStatementWorker?worker&inline';
const worker = new WorkerInstance();
const BankStatementWorkerWrapper = Comlink.wrap<typeof BankStatementWorker>(worker);
export default BankStatementWorkerWrapper;