forked from pixel-point/kube-forwarder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
33 lines (32 loc) · 778 Bytes
/
babel.config.js
File metadata and controls
33 lines (32 loc) · 778 Bytes
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
module.exports = function(api) {
api.cache(true)
return {
'comments': false,
'env': {
'test': {
'presets': [
['@babel/preset-env', { 'targets': { 'node': 10 } }]
]
},
'main': {
'presets': [
['@babel/preset-env', { 'targets': { 'node': 10 } }]
]
},
'renderer': {
'presets': [
['@babel/preset-env', { 'modules': false, 'targets': { 'chrome': 73 } }]
]
},
'web': {
// TODO, require configuration after updating to Babel 7.
'presets': [
['@babel/preset-env', { 'modules': false, 'targets': { 'chrome': 73 } }]
]
}
},
'plugins': [
['@babel/plugin-transform-runtime', { 'corejs': 2 }]
]
}
}