forked from webscopeio/react-textarea-autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
34 lines (33 loc) · 806 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
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import license from 'rollup-plugin-license';
import uglify from 'rollup-plugin-uglify';
import copy from 'rollup-plugin-copy';
import path from 'path';
export default {
input: 'src/index.js',
external: ['react', 'prop-types', 'textarea-caret'],
/**
* suppress false warnings https://github.com/rollup/rollup-plugin-babel/issues/84
*/
onwarn: () => null,
plugins: [
copy({
src: 'es6',
}),
babel(),
resolve(),
commonjs({ extensions: ['.js', '.jsx'] }),
uglify(),
license({
banner: {
file: path.join(__dirname, 'LICENSE'),
},
}),
],
output: {
file: 'index.js',
format: 'cjs',
},
};