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
+7
View File
@@ -0,0 +1,7 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './icons';
export { Identicon } from './Identicon';
export { packageInfo } from './packageInfo';
+2 -5
View File
@@ -3,11 +3,8 @@
import './detectPackage';
import { Identicon } from './Identicon';
import { Identicon } from './bundle';
export * from './icons';
export { packageInfo } from './packageInfo';
export { Identicon };
export * from './bundle';
export default Identicon;
+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;
+9
View File
@@ -0,0 +1,9 @@
// Copyright 2017-2021 @polkadot/ui-settings authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { Settings, settings } from './Settings';
export { ENDPOINT_DEFAULT, ICON_DEFAULT, ICON_DEFAULT_HOST, LANGUAGE_DEFAULT, LOCKING_DEFAULT, PREFIX_DEFAULT, UIMODE_DEFAULT, UITHEME_DEFAULT } from './defaults';
export { packageInfo } from './packageInfo';
export { settings, Settings };
+2 -5
View File
@@ -1,11 +1,8 @@
// Copyright 2017-2021 @polkadot/ui-settings authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { Settings, settings } from './Settings';
import { settings } from './bundle';
export { ENDPOINT_DEFAULT, ICON_DEFAULT, ICON_DEFAULT_HOST, LANGUAGE_DEFAULT, LOCKING_DEFAULT, PREFIX_DEFAULT, UIMODE_DEFAULT, UITHEME_DEFAULT } from './defaults';
export { packageInfo } from './packageInfo';
export { settings, Settings };
export * from './bundle';
export default settings;