-
Notifications
You must be signed in to change notification settings - Fork 2
/
rollup.umd.js
34 lines (33 loc) · 874 Bytes
/
rollup.umd.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 commonjs from 'rollup-plugin-commonjs';
import replace from 'rollup-plugin-replace';
import babel from 'rollup-plugin-babel';
import json from 'rollup-plugin-json';
export default {
input: 'src/index.js',
output: {
name: 'rakam',
file: 'rakam.umd.js',
format: 'umd',
amd: {
id: 'rakam',
}
},
plugins: [
json(),
babel({
exclude: 'node_modules/**',
plugins: ['@babel/plugin-proposal-object-rest-spread'],
}),
resolve({
browser: true,
}),
replace({
BUILD_COMPAT_SNIPPET: 'true',
BUILD_COMPAT_LOCAL_STORAGE: 'true',
BUILD_COMPAT_2_0: 'true',
BUILD_COMPAT_REACT_NATIVE: 'false',
}),
commonjs(),
],
};