fix import.meta.url in cjs error
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Martti Malmi 2023-11-20 17:38:09 +02:00
parent 5b3680d0df
commit 5c0ad1c375
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ export class PowWorker implements PowMiner {
#queue: Map<string, PowQueue> = new Map();
constructor(workerPath: string) {
this.#worker = new Worker(new URL(workerPath, import.meta.url), {
this.#worker = new Worker(workerPath, {
type: 'module',
name: 'POW',
});