1 | import json from 'rollup-plugin-json';
|
2 | import babel from 'rollup-plugin-babel';
|
3 |
|
4 | export default {
|
5 | entry: 'site/index.js',
|
6 | format: 'umd',
|
7 | moduleName: 'giottojs',
|
8 | plugins: [
|
9 | json(),
|
10 | babel({
|
11 | babelrc: false,
|
12 | presets: ['es2015-rollup']
|
13 | })
|
14 | ],
|
15 | dest: '../giottojs.org/giottojs.js',
|
16 | globals: {
|
17 | "d3-view": "giotto",
|
18 | "d3-let": "giotto",
|
19 | "d3-transition": "giotto"
|
20 | }
|
21 | };
|