From 5e6cc41b7a8b41aec30a81b787e5e4b5ed60661a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 2 Jun 2021 13:56:29 +0200 Subject: fix issues with circular imports Parts of this commit are from a patch by sebasjm. The circular imports caused an issue with webpack. While we don't use webpack in the wallet, the wallet should still be importable by webpack. Some packages were importing their dependencies via "index.js", which re-exports public exports of the package. This resulted in circular dependencies which were resolved correctly by rollup, but not by webpack. --- packages/taler-wallet-core/src/util/logging.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/util') diff --git a/packages/taler-wallet-core/src/util/logging.ts b/packages/taler-wallet-core/src/util/logging.ts index 230cb7053..4f48e24da 100644 --- a/packages/taler-wallet-core/src/util/logging.ts +++ b/packages/taler-wallet-core/src/util/logging.ts @@ -19,7 +19,7 @@ */ const isNode = - typeof process !== "undefined" && process.release.name === "node"; + typeof process !== "undefined" && typeof process.release !== "undefined" && process.release.name === "node"; function writeNodeLog( message: any, -- cgit v1.2.3