// Copyright 2019-2021 @polkadot/wasm-crypto authors & contributors // SPDX-License-Identifier: Apache-2.0 import { createBundle } from '@polkadot/dev/config/rollup'; const pkgs = [ '@polkadot/wasm-crypto' ]; const external = [ ...pkgs, '@polkadot/util' ]; const overrides = { '@polkadot/wasm-crypto': { entries: ['asmjs', 'wasm'].map((p) => `wasm-crypto-${p}`).reduce((all, p) => ({ ...all, [`@polkadot/${p}`]: `../../${p}/build` }), {}) } }; export default pkgs.map((pkg) => createBundle({ external, pkg, ...(overrides[pkg] || {}) }) );