Mock __dirname via cjs import (#577)

* Mock __dirname via cjs import

* CHANGELOG
This commit is contained in:
Jaco
2021-12-31 14:07:43 +01:00
committed by GitHub
parent 757b138977
commit 0467c16bee
32 changed files with 150 additions and 4 deletions
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/ui-shared authors & contributors
// SPDX-License-Identifier: Apache-2.0
module.exports = typeof __dirname === 'string'
? __dirname.replace('/cjs', '')
: undefined;