mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-29 09:08:00 +00:00
Mock __dirname via cjs import (#577)
* Mock __dirname via cjs import * CHANGELOG
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2021 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
declare const __dirname: string | undefined;
|
||||
|
||||
export default __dirname;
|
||||
@@ -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;
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
Reference in New Issue
Block a user