fix(ui): repair import to work fine in parcel v2

pull/5991/head
Pavel Zavora 2022-07-21 14:12:25 +02:00
parent 0d0a75e37c
commit 804de07497
1 changed files with 1 additions and 2 deletions

View File

@ -27,9 +27,8 @@ class JobManager {
private jobs: {[key: string]: Deferred} = {}
constructor() {
const url = new URL('./worker.ts', import.meta.url)
_.times(workerCount, () => {
const worker = new Worker(url, {
const worker = new Worker(new URL('./worker.ts', import.meta.url), {
type: 'module',
})