diff --git a/packages/babel-preset-react-app/create.js b/packages/babel-preset-react-app/create.js index 88e345db082..92ba72c660a 100644 --- a/packages/babel-preset-react-app/create.js +++ b/packages/babel-preset-react-app/create.js @@ -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 } diff --git a/packages/babel-preset-react-app/package.json b/packages/babel-preset-react-app/package.json index 20898e2e129..3f819ff48ac 100644 --- a/packages/babel-preset-react-app/package.json +++ b/packages/babel-preset-react-app/package.json @@ -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", diff --git a/packages/react-dev-utils/browsersHelper.js b/packages/react-dev-utils/browsersHelper.js index fdfa6ff3175..6d90ffc62a8 100644 --- a/packages/react-dev-utils/browsersHelper.js +++ b/packages/react-dev-utils/browsersHelper.js @@ -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); }