Skip to content

Commit 1c09e80

Browse files
author
Vincent
authored
Bugfix/ti modern splitting/preset-env (#73)
* bump v
1 parent c7efd10 commit 1c09e80

3 files changed

Lines changed: 210 additions & 193 deletions

File tree

config/babelOptions.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@ const packageConfig = require('./packageConfig');
22

33
const babelOptions = {
44
passPerPreset: true,
5-
presets: ['@babel/preset-typescript', '@babel/preset-react'],
5+
presets: [
6+
[
7+
'@babel/preset-env',
8+
{
9+
useBuiltIns: 'entry',
10+
corejs: 3,
11+
},
12+
],
13+
'@babel/typescript',
14+
'@babel/react',
15+
],
616
plugins: [
7-
'@loadable/babel-plugin',
817
[
9-
'@babel/plugin-transform-runtime',
18+
'@babel/transform-runtime',
1019
{
11-
corejs: 2,
20+
corejs: 3,
1221
},
1322
],
23+
'@loadable/babel-plugin',
1424
'react-hot-loader/babel',
1525
[
1626
'relay',

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@firstlookmedia/react-scripts",
3-
"version": "2.0.0-rc23",
3+
"version": "2.0.0-rc24",
44
"description": "shared react site configs",
55
"author": "First Look Media",
66
"license": "MIT",
@@ -13,22 +13,24 @@
1313
},
1414
"dependencies": {
1515
"@babel/cli": "^7.0.0",
16-
"@babel/core": "^7.0.0",
16+
"@babel/core": "^7.5.0",
1717
"@babel/plugin-proposal-class-properties": "^7.0.0",
1818
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
1919
"@babel/plugin-proposal-function-sent": "^7.0.0",
2020
"@babel/plugin-proposal-json-strings": "^7.0.0",
2121
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
2222
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
23+
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
2324
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
2425
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
2526
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
2627
"@babel/plugin-syntax-import-meta": "^7.0.0",
28+
"@babel/plugin-transform-arrow-functions": "^7.2.0",
2729
"@babel/plugin-transform-runtime": "^7.0.0",
28-
"@babel/preset-env": "^7.0.0",
30+
"@babel/preset-env": "^7.5.5",
2931
"@babel/preset-react": "^7.0.0",
3032
"@babel/preset-typescript": "^7.3.3",
31-
"@babel/runtime-corejs2": "^7.0.0",
33+
"@babel/runtime-corejs3": "^7.5.5",
3234
"@loadable/babel-plugin": "^5.8.0",
3335
"@loadable/webpack-plugin": "^5.7.1",
3436
"autoprefixer": "^8",
@@ -92,7 +94,6 @@
9294
},
9395
"devDependencies": {
9496
"babel-plugin-macros": "^2.6.1",
95-
"core-js": "^2.4.1",
9697
"eslint": "^4",
9798
"eslint-config-airbnb-base": "^12",
9899
"eslint-plugin-import": "^2",

0 commit comments

Comments
 (0)