mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 02:08:03 +00:00
d1cd13072f
- Updated all package references - Fixed react-identicon and related packages - Version 3.16.8
59 lines
1.1 KiB
JavaScript
59 lines
1.1 KiB
JavaScript
// Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import path from 'path';
|
|
|
|
import { createBundle } from '@pezkuwi/dev/config/rollup';
|
|
|
|
const pkgs = [
|
|
'@pezkuwi/react-identicon',
|
|
'@pezkuwi/react-qr',
|
|
'@pezkuwi/ui-keyring',
|
|
'@pezkuwi/ui-settings',
|
|
'@pezkuwi/vue-identicon'
|
|
];
|
|
|
|
const external = [
|
|
...pkgs,
|
|
'@pezkuwi/hw-ledger',
|
|
'@pezkuwi/keyring',
|
|
'@pezkuwi/util',
|
|
'@pezkuwi/util-crypto',
|
|
'react',
|
|
'react-dom',
|
|
'vue',
|
|
'vue-router'
|
|
];
|
|
|
|
const globals = {
|
|
react: 'React',
|
|
'react-dom': 'ReactDOM',
|
|
vue: 'Vue',
|
|
'vue-router': 'VueRouter'
|
|
};
|
|
|
|
const entries = ['ui-shared'].reduce((all, p) => ({
|
|
...all,
|
|
[`@pezkuwi/${p}`]: path.resolve(process.cwd(), `packages/${p}/build`)
|
|
}), {
|
|
// re-exported in @pezkuwi/util-crypto, map directly
|
|
'@pezkuwi/networks': '@pezkuwi/util-crypto'
|
|
});
|
|
|
|
const overrides = {};
|
|
|
|
export default pkgs.map((pkg) => {
|
|
const override = (overrides[pkg] || {});
|
|
|
|
return createBundle({
|
|
external,
|
|
globals,
|
|
pkg,
|
|
...override,
|
|
entries: {
|
|
...entries,
|
|
...(override.entries || {})
|
|
}
|
|
});
|
|
});
|