Skip to content

Commit

Permalink
Add numeric separator support (#7817)
Browse files Browse the repository at this point in the history
  • Loading branch information
tharun208 authored and ianschmitz committed Oct 30, 2019
1 parent 2de57fe commit b4fe788
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/babel-preset-react-app/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ module.exports = function(api, opts, env) {
loose: true,
},
],
// Adds Numeric Seperators
require('@babel/plugin-proposal-numeric-separator').default,
// The following two plugins use Object.assign directly, instead of Babel's
// extends helper. Note that this assumes `Object.assign` is available.
// { ...todo, completed: true }
Expand Down
1 change: 1 addition & 0 deletions packages/babel-preset-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@babel/core": "7.6.4",
"@babel/plugin-proposal-class-properties": "7.5.5",
"@babel/plugin-proposal-decorators": "7.6.0",
"@babel/plugin-proposal-numeric-separator": "7.2.0",
"@babel/plugin-proposal-object-rest-spread": "7.6.2",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-transform-destructuring": "7.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dev-utils/browsersHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function shouldSetBrowsers(isInteractive) {
}

function checkBrowsers(dir, isInteractive, retry = true) {
const current = browserslist.loadConfig({path: dir});
const current = browserslist.loadConfig({ path: dir });
if (current != null) {
return Promise.resolve(current);
}
Expand Down

0 comments on commit b4fe788

Please sign in to comment.