-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathrollup.config.js
More file actions
42 lines (39 loc) · 863 Bytes
/
rollup.config.js
File metadata and controls
42 lines (39 loc) · 863 Bytes
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
39
40
41
42
const buble = require('rollup-plugin-buble');
const cjs = require('rollup-plugin-commonjs');
const node = require('rollup-plugin-node-resolve');
const uglify = require('rollup-plugin-uglify').uglify;
const version = process.env.VERSION || require('./package.json').version
const banner =
'/*!\n' +
' * isect v' + version + '\n' +
' * (c) 2018 Andrei Kashcha.\n' +
' * Released under the MIT License.\n' +
' */'
export default {
input: 'index.js',
plugins: [
node(),
cjs(),
buble()
],
output: [{
sourcemap: true,
format: 'umd',
name: 'isect',
file: 'build/isect.js',
banner
},
{
sourcemap: true,
format: 'umd',
name: 'isect',
file: 'build/isect.min.js',
banner,
plugins: [uglify()]
},
{
format: 'es',
file: 'build/isect.module.js'
}
],
}