-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrollup.config.mjs
45 lines (44 loc) · 1.01 KB
/
rollup.config.mjs
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
43
44
45
import buble from '@rollup/plugin-buble';
import resolve from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
export default [{
// ESM2015 bundle
input: 'lib/main.js',
output: [{
file: 'dist/jszip-esm2015.js',
format: 'esm'
}],
external: ['@progress/pako-esm']
}, {
// ESM5 bundle
input: 'lib/main.js',
output: [{
file: 'dist/jszip-esm5.js',
format: 'esm'
}],
plugins: [ buble() ],
external: ['@progress/pako-esm']
}, {
// UMD bundles
input: 'lib/main.js',
output: [{
file: 'dist/jszip.js',
format: 'umd',
name: 'JSZip'
}, {
file: 'dist/jszip.min.js',
format: 'umd',
name: 'JSZip',
plugins: [ terser() ]
}],
plugins: [ resolve(), buble() ]
}, {
// SystemJS bundle
input: 'lib/main.js',
output: [{
file: 'dist/jszip-system.js',
format: 'systemjs'
}],
plugins: [ buble() ],
external: ['@progress/pako-esm']
}];