Skip to content

Commit b4fe788

Browse files
tharun208ianschmitz
authored andcommitted
Add numeric separator support (#7817)
1 parent 2de57fe commit b4fe788

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/babel-preset-react-app/create.js

+2
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ module.exports = function(api, opts, env) {
154154
loose: true,
155155
},
156156
],
157+
// Adds Numeric Seperators
158+
require('@babel/plugin-proposal-numeric-separator').default,
157159
// The following two plugins use Object.assign directly, instead of Babel's
158160
// extends helper. Note that this assumes `Object.assign` is available.
159161
// { ...todo, completed: true }

packages/babel-preset-react-app/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@babel/core": "7.6.4",
2525
"@babel/plugin-proposal-class-properties": "7.5.5",
2626
"@babel/plugin-proposal-decorators": "7.6.0",
27+
"@babel/plugin-proposal-numeric-separator": "7.2.0",
2728
"@babel/plugin-proposal-object-rest-spread": "7.6.2",
2829
"@babel/plugin-syntax-dynamic-import": "7.2.0",
2930
"@babel/plugin-transform-destructuring": "7.6.0",

packages/react-dev-utils/browsersHelper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function shouldSetBrowsers(isInteractive) {
4242
}
4343

4444
function checkBrowsers(dir, isInteractive, retry = true) {
45-
const current = browserslist.loadConfig({path: dir});
45+
const current = browserslist.loadConfig({ path: dir });
4646
if (current != null) {
4747
return Promise.resolve(current);
4848
}

0 commit comments

Comments
 (0)