Files
pezkuwi-ui/packages/reactnative-identicon/src/cjs/dirname.js
T
Jaco 0467c16bee Mock __dirname via cjs import (#577)
* Mock __dirname via cjs import

* CHANGELOG
2021-12-31 15:07:43 +02:00

7 lines
214 B
JavaScript

// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
module.exports = typeof __dirname === 'string'
? __dirname.replace('/cjs', '')
: undefined;