-
Notifications
You must be signed in to change notification settings - Fork 2
/
rollup.esm.js
33 lines (32 loc) · 882 Bytes
/
rollup.esm.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
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.esm.js',
format: 'esm',
},
plugins: [
json(),
babel({
exclude: 'node_modules/**',
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-object-rest-spread'
],
runtimeHelpers: true
}),
replace({
BUILD_COMPAT_SNIPPET: 'false',
BUILD_COMPAT_LOCAL_STORAGE: 'true',
BUILD_COMPAT_2_0: 'true',
BUILD_COMPAT_REACT_NATIVE: 'false',
}),
commonjs({
include: "node_modules/**"
}),
],
};