forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.js
31 lines (31 loc) · 790 Bytes
/
default.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
module.exports = () => ( {
presets: [
[
'@babel/env',
{
useBuiltIns: 'entry',
corejs: 2,
// Exclude transforms that make all code slower, see https://github.com/facebook/create-react-app/pull/5278
exclude: [ 'transform-typeof-symbol' ],
},
],
'@babel/react',
'@babel/preset-typescript',
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-syntax-dynamic-import',
[
'@babel/transform-runtime',
{
corejs: false, // we polyfill so we don't need core-js
helpers: true,
regenerator: false,
useESModules: false,
// Needed so that helpers aren't duplicated.
// This will need to be kept up to date while https://github.com/babel/babel/issues/10261 is unresolved.
version: '7.5.5',
},
],
],
} );