Add bundle.ts files for browser bundling (#502)

This commit is contained in:
Jaco
2021-07-09 15:44:16 +03:00
committed by GitHub
parent bdec479885
commit be251919d6
6 changed files with 33 additions and 17 deletions
+11
View File
@@ -0,0 +1,11 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { Keyring } from './Keyring';
export { Ledger } from '@polkadot/hw-ledger';
export { packageInfo } from './packageInfo';
const keyring = new Keyring();
export { Keyring, keyring };
+2 -7
View File
@@ -3,13 +3,8 @@
import './detectPackage';
import { Keyring } from './Keyring';
import { keyring } from './bundle';
export { Ledger } from '@polkadot/hw-ledger';
export { packageInfo } from './packageInfo';
const keyring = new Keyring();
export { Keyring, keyring };
export * from './bundle';
export default keyring;