forked from handsontable/hyperformula
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbabel.config.js
43 lines (43 loc) · 1016 Bytes
/
babel.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
module.exports = {
presets: [
['@babel/preset-env', {
targets: {
chrome: '64',
firefox: '58',
ie: '11',
safari: '11'
},
modules: false,
debug: false,
useBuiltIns: 'usage',
corejs: 3,
}]
],
plugins: [
['transform-inline-environment-variables']
],
env: {
// Environment for transpiling files to be compatible with UMD.
commonjs: {
plugins: [
['@babel/plugin-transform-runtime', {
corejs: false,
helpers: false,
regenerator: false,
useESModules: false,
}],
['@babel/plugin-transform-modules-commonjs', { loose: true }]
]
},
// Environment for transpiling files to be compatible with CommonJS.
commonjs_dist: {
plugins: [
['@babel/plugin-transform-modules-commonjs', { loose: true }],
],
},
// Environment for transpiling files to be compatible with ES Modules.
es: {
plugins: [],
},
},
};