forked from zloirock/core-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
26 lines (26 loc) · 1.08 KB
/
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
'use strict';
module.exports = {
// use transforms which does not use ES5+ builtins
plugins: [
['@babel/proposal-nullish-coalescing-operator'],
['@babel/proposal-optional-catch-binding'],
['@babel/proposal-optional-chaining'],
['@babel/transform-member-expression-literals'],
['@babel/transform-property-literals'],
['@babel/transform-arrow-functions'],
['@babel/transform-block-scoped-functions'],
['@babel/transform-block-scoping'],
['@babel/transform-classes', { loose: true }],
['@babel/transform-computed-properties', { loose: true }],
['@babel/transform-destructuring', { loose: true }],
['@babel/transform-literals'],
['@babel/transform-parameters'],
['@babel/transform-shorthand-properties'],
['@babel/transform-spread', { loose: true }],
['@babel/transform-template-literals', { loose: true, spec: true }],
['@babel/transform-exponentiation-operator'],
['transform-for-of-as-array'],
// use it instead of webpack es modules for support engines without descriptors
['transform-es2015-modules-simple-commonjs'],
],
};