fix import.meta.url in cjs error
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
5b3680d0df
commit
5c0ad1c375
@ -17,7 +17,7 @@ export class PowWorker implements PowMiner {
|
|||||||
#queue: Map<string, PowQueue> = new Map();
|
#queue: Map<string, PowQueue> = new Map();
|
||||||
|
|
||||||
constructor(workerPath: string) {
|
constructor(workerPath: string) {
|
||||||
this.#worker = new Worker(new URL(workerPath, import.meta.url), {
|
this.#worker = new Worker(workerPath, {
|
||||||
type: 'module',
|
type: 'module',
|
||||||
name: 'POW',
|
name: 'POW',
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user