-
Notifications
You must be signed in to change notification settings - Fork 1
/
rollup-config.js
executable file
·68 lines (66 loc) · 1.86 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* eslint-disable import/no-extraneous-dependencies */
import buble from 'rollup-plugin-buble';
import cjs from 'rollup-plugin-commonjs';
import globals from 'rollup-plugin-node-globals';
import builtins from 'rollup-plugin-node-builtins';
import replace from 'rollup-plugin-replace';
import resolve from 'rollup-plugin-node-resolve';
import uglify from 'rollup-plugin-uglify';
export default {
name: 'reactkenburnsvideo',
input: 'index.js',
output: {
file: 'dist/index.js',
format: 'umd',
},
plugins: [
buble({
objectAssign: 'Object.assign',
exclude: ['node_modules/**'],
}),
cjs({
exclude: 'node_modules/process-es6/**',
include: [
'node_modules/create-react-class/**',
'node_modules/fbjs/**',
'node_modules/object-assign/**',
'node_modules/react/**',
'node_modules/react-dom/**',
'node_modules/prop-types/**',
'node_modules/react-rnd/**',
'node_modules/react-draggable/**',
'node_modules/inline-style-prefixer/**',
'node_modules/css-in-js-utils/**',
'node_modules/string-hash/**',
'node_modules/asap/**',
'node_modules/hyphenate-style-name/**',
'node_modules/js-file-download/**',
'node_modules/whammy/**',
'node_modules/react-style-proptype/**',
],
namedExports: {
'node_modules/react/react.js': [
'cloneElement',
'createElement',
'PropTypes',
'Children',
'Component',
],
'node_modules/react-dom/index.js': [
'findDOMNode',
],
'node_modules/whammy/whammy.js': [
'fromImageArray',
],
},
}),
globals(),
builtins(),
replace({ 'process.env.NODE_ENV': JSON.stringify('production') }),
resolve({
browser: true,
main: true,
}),
uglify(),
],
};