-
Notifications
You must be signed in to change notification settings - Fork 14
/
rollup.config.js
64 lines (62 loc) · 1.33 KB
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Adapted from https://github.com/rollup/rollup-starter-lib/
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
//import replace from 'rollup-plugin-replace'
import pkg from './package.json';
export default [
// browser-friendly UMD build
// {
// input: 'src/index.js',
// external: [
// 'ms',
// 'bip39',
// 'eciesjs',
// '@cosmjs/launchpad',
// '@cityofzion/neon-core',
// '@cityofzion/neon-js',
// '@polkadot/util-crypto',
// '@polkadot/keyring',
// 'axios'
// ],
// output: {
// name: pkg.name,
// file: pkg.browser,
// format: 'umd'
// },
// plugins: [
// resolve({
// browser: true
// }),
// // replace(),
// commonjs(),
// json()
// ]
// },
{
input: 'src/index.js',
external: [
'ms',
'@cosmostation/cosmosjs',
'@polkadot/util-crypto',
'@polkadot/keyring',
'@solana/web3.js',
'avalanche',
'axios',
'bs58',
'sha.js',
'bip39',
'bip32',
'elliptic',
'eciesjs',
'ethers',
'tweetnacl'
],
output: [
{ file: pkg.main, format: 'cjs' },
{ file: pkg.module, format: 'es' }
],
plugins: [
]
}
];