forked from amplitude/Amplitude-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.nocompat.js
37 lines (36 loc) · 907 Bytes
/
rollup.nocompat.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
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: 'amplitude',
file: 'amplitude.nocompat.js',
format: 'umd',
},
plugins: [
json(),
babel({
exclude: 'node_modules/**',
plugins: ['@babel/plugin-proposal-object-rest-spread'],
}),
resolve({
browser: true,
}),
replace({
BUILD_COMPAT_SNIPPET: 'false',
BUILD_COMPAT_2_0: 'false',
BUILD_COMPAT_REACT_NATIVE: 'false',
BUILD_COMPAT_LOCAL_STORAGE: 'false',
}),
commonjs({
include: [
'node_modules/query-string/**',
'node_modules/@amplitude/ua-parser-js/**',
'node_modules/blueimp-md5/**',
],
}),
],
};