forked from micahstubbs/drift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
38 lines (35 loc) · 963 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
import json from 'rollup-plugin-json';
import babel from 'rollup-plugin-babel';
import babelrc from 'babelrc-rollup';
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import strip from 'rollup-plugin-strip';
export default {
entry: 'src/index.js',
format: 'umd',
globals: {},
moduleName: 'flow',
plugins: [
nodeResolve({ jsnext: true, main: true }),
json(),
babel(babelrc()),
commonjs(),
strip({
// set this to `false` if you don't want to
// remove debugger statements
debugger: true,
// defaults to `[ 'console.*', 'assert.*']`
functions: [ 'console.log', 'assert.*', 'debug'],
// set this to `false` if you're not using sourcemaps –
// defaults to `true`
sourceMap: false
})
],
external: [],
dest: 'build/flow.js',
acorn: {
allowReserved: true
}//,
//sourceMap: true,
//sourceMapFile: 'build/flow.js'
};