mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-26 02:57:59 +00:00
Mock __dirname via cjs import (#577)
* Mock __dirname via cjs import * CHANGELOG
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// Copyright 2017-2021 @polkadot/ui-shared authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import __dirname from './cjs/dirname';
|
||||
import { packageInfo } from './packageInfo';
|
||||
|
||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, []);
|
||||
Reference in New Issue
Block a user