-
Notifications
You must be signed in to change notification settings - Fork 80
/
rollup.config.js
38 lines (36 loc) · 933 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
37
38
// ================================================= /
// Soho Xi - Rollup Configuration
// ================================================= /
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import json from 'rollup-plugin-json';
import license from 'rollup-plugin-license';
const bundleBanner = require('./build/generate-bundle-banner');
module.exports = {
input: 'components/index.js',
output: {
file: 'dist/js/sohoxi.js',
format: 'iife',
sourcemap: true,
sourcemapFile: 'dist/js/sohoxi.js.map',
name: 'Soho',
globals: {
jquery: '$',
d3: 'd3',
alert: 'alert',
console: 'console'
}
},
plugins: [
resolve(),
json(),
babel({
exclude: 'node_modules/**', // only transpile our source code
plugins: ['external-helpers']
}),
license({
sourceMap: true,
banner: bundleBanner
})
],
};