forked from bugsnag/bugsnag-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
20 lines (20 loc) · 905 Bytes
/
babel.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = api => {
if (api) api.cache(false)
const presets = []
const plugins = [
[ '@babel/plugin-transform-arrow-functions' ],
[ '@babel/plugin-transform-block-scoping' ],
[ '@babel/plugin-transform-classes', { loose: true } ],
[ '@babel/plugin-transform-computed-properties', { loose: true } ],
[ '@babel/plugin-transform-destructuring', { loose: true } ],
[ '@babel/plugin-transform-member-expression-literals' ],
[ '@babel/plugin-transform-property-literals' ],
[ '@babel/plugin-transform-parameters', { loose: true } ],
[ '@babel/plugin-transform-shorthand-properties' ],
[ '@babel/plugin-transform-spread', { loose: true } ],
[ '@babel/plugin-transform-template-literals', { loose: true } ],
[ '@babel/plugin-proposal-object-rest-spread', { loose: true } ],
[ '@babel/syntax-object-rest-spread' ]
]
return { presets, plugins }
}