diff options
author | Sebastian <sebasjm@gmail.com> | 2022-10-31 00:07:37 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-10-31 00:07:54 -0300 |
commit | 2f17d818023677f4cba6facdc1262249d0b7569b (patch) | |
tree | 881bd2c09c65583973e397de7c09333374e39579 /packages/taler-wallet-core/src/crypto | |
parent | 4feb79f3c92f7f1c5d3fd66b207d77b144f1c1d0 (diff) | |
download | wallet-core-2f17d818023677f4cba6facdc1262249d0b7569b.tar.xz |
require and __filename is not supported for ESM
Diffstat (limited to 'packages/taler-wallet-core/src/crypto')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts b/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts index ed67d2e95..de8f12902 100644 --- a/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts +++ b/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts @@ -26,7 +26,7 @@ import { processRequestWithImpl } from "./worker-common.js"; const logger = new Logger("nodeThreadWorker.ts"); -const f = __filename; +const f = import.meta.url; const workerCode = ` // Try loading the glue library for embedded |