forked from henkaku-center/henkaku-nengajo-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.mjs
31 lines (30 loc) · 939 Bytes
/
rollup.config.mjs
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
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import builtins from 'builtin-modules'
export default [
{
input: ['scripts/defender-autotask/relay_mumbai/index.js'],
output: [
{
dir: 'build/relay_mumbai',
format: 'cjs',
exports: 'auto',
},
],
plugins: [resolve({ preferBuiltins: true }), commonjs(), json({ compact: true })],
external: [...builtins, 'ethers', 'web3', 'axios', /^defender-relay-client(\/.*)?$/],
},
{
input: ['scripts/defender-autotask/relay_polygon/index.js'],
output: [
{
dir: 'build/relay_polygon',
format: 'cjs',
exports: 'auto',
},
],
plugins: [resolve({ preferBuiltins: true }), commonjs(), json({ compact: true })],
external: [...builtins, 'ethers', 'web3', 'axios', /^defender-relay-client(\/.*)?$/],
},
]