forked from YuzuJS/setImmediate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
rollup.config.js
38 lines (37 loc) · 927 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 RollupPluginNodeResolve from 'rollup-plugin-node-resolve';
import RollupPluginCommonJS from 'rollup-plugin-commonjs';
import RollupPluginFilesize from 'rollup-plugin-filesize';
import RollupPluginBabel from 'rollup-plugin-babel';
import RollupPluginMinify from 'rollup-plugin-minify'
export default {
entry: 'src/index.js',
dest: 'dist/setImmediate.js',
format: 'umd',
sourceMap: true,
useStrict: true,
context: 'window',
moduleName: 'immediate',
plugins: [
RollupPluginBabel({
exclude: 'node_modules/**',
babelrc: false,
presets: [
'stage-0',
'es2015-rollup'
]
}),
RollupPluginNodeResolve({
jsnext: true,
module: true,
main: true,
browser: true
}),
RollupPluginCommonJS({
include: 'node_modules/**'
}),
RollupPluginMinify({
umd: 'dist/setImmediate.min.js'
}),
RollupPluginFilesize()
]
};