diff options
author | Florian Dold <florian@dold.me> | 2021-06-02 13:56:29 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-06-02 13:56:29 +0200 |
commit | 5e6cc41b7a8b41aec30a81b787e5e4b5ed60661a (patch) | |
tree | 45614dac0fa24a4c3de873226a1c2ffbb14c840f /packages/taler-wallet-core/src/util | |
parent | 02f1d4b08116c24f0af1f32cb6d82be292fa6d10 (diff) | |
download | wallet-core-5e6cc41b7a8b41aec30a81b787e5e4b5ed60661a.tar.gz wallet-core-5e6cc41b7a8b41aec30a81b787e5e4b5ed60661a.tar.bz2 wallet-core-5e6cc41b7a8b41aec30a81b787e5e4b5ed60661a.zip |
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.
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/logging.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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, |