-
Notifications
You must be signed in to change notification settings - Fork 1
/
rollup.config.js
36 lines (35 loc) · 909 Bytes
/
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
import { nodeResolve } from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import sourcemaps from 'rollup-plugin-sourcemaps'
import globals from 'rollup-plugin-node-globals'
import builtins from 'rollup-plugin-node-builtins'
import copy from 'rollup-plugin-copy'
export default [
{
input: 'src/components/PatchBoot.js',
output: [
{
file: 'public/patch-boot.js',
format: 'es',
sourcemap: true
}
],
external: ['../scuttle-shell-browser-consumer.js'],
plugins: [
builtins(),
nodeResolve({
browser: true
}),
commonjs(),
globals(),
sourcemaps(),
copy({
targets:
[{
src: 'node_modules/scuttle-shell-browser-consumer/site/ssb-connect.js',
dest: 'public/', rename: 'scuttle-shell-browser-consumer.js'
}]
})
]
}
]