Files: 54f45b9e3a2114fd3c234a8de046349c9a3dab1c / rollup.config.js
909 bytesRaw
1 | import { nodeResolve } from '@rollup/plugin-node-resolve' |
2 | import commonjs from '@rollup/plugin-commonjs' |
3 | import sourcemaps from 'rollup-plugin-sourcemaps' |
4 | import globals from 'rollup-plugin-node-globals' |
5 | import builtins from 'rollup-plugin-node-builtins' |
6 | import copy from 'rollup-plugin-copy' |
7 | |
8 | export default [ |
9 | { |
10 | input: 'src/components/PatchBoot.js', |
11 | output: [ |
12 | { |
13 | file: 'public/patch-boot.js', |
14 | format: 'es', |
15 | sourcemap: true |
16 | } |
17 | ], |
18 | external: ['../scuttle-shell-browser-consumer.js'], |
19 | plugins: [ |
20 | builtins(), |
21 | nodeResolve({ |
22 | browser: true |
23 | }), |
24 | commonjs(), |
25 | globals(), |
26 | sourcemaps(), |
27 | copy({ |
28 | targets: |
29 | [{ |
30 | src: 'node_modules/scuttle-shell-browser-consumer/site/ssb-connect.js', |
31 | dest: 'public/', rename: 'scuttle-shell-browser-consumer.js' |
32 | }] |
33 | }) |
34 | ] |
35 | } |
36 | ] |
Built with git-ssb-web