babel-preset-react-app 9.1.1 → 9.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/create.js +6 -0
- package/package.json +11 -9
package/create.js
CHANGED
@@ -185,6 +185,12 @@ module.exports = function(api, opts, env) {
|
|
185
185
|
removeImport: true,
|
186
186
|
},
|
187
187
|
],
|
188
|
+
// Optional chaining and nullish coalescing are supported in @babel/preset-env,
|
189
|
+
// but not yet supported in webpack due to support missing from acorn.
|
190
|
+
// These can be removed once webpack has support.
|
191
|
+
// See https://github.com/facebook/create-react-app/issues/8445#issuecomment-588512250
|
192
|
+
require('@babel/plugin-proposal-optional-chaining').default,
|
193
|
+
require('@babel/plugin-proposal-nullish-coalescing-operator').default,
|
188
194
|
].filter(Boolean),
|
189
195
|
overrides: [
|
190
196
|
isFlowEnabled && {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "babel-preset-react-app",
|
3
|
-
"version": "9.1.
|
3
|
+
"version": "9.1.2",
|
4
4
|
"description": "Babel preset used by Create React App",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -21,19 +21,21 @@
|
|
21
21
|
"test.js"
|
22
22
|
],
|
23
23
|
"dependencies": {
|
24
|
-
"@babel/core": "7.
|
24
|
+
"@babel/core": "7.9.0",
|
25
25
|
"@babel/plugin-proposal-class-properties": "7.8.3",
|
26
26
|
"@babel/plugin-proposal-decorators": "7.8.3",
|
27
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "7.8.3",
|
27
28
|
"@babel/plugin-proposal-numeric-separator": "7.8.3",
|
28
|
-
"@babel/plugin-
|
29
|
+
"@babel/plugin-proposal-optional-chaining": "7.9.0",
|
30
|
+
"@babel/plugin-transform-flow-strip-types": "7.9.0",
|
29
31
|
"@babel/plugin-transform-react-display-name": "7.8.3",
|
30
|
-
"@babel/plugin-transform-runtime": "7.
|
31
|
-
"@babel/preset-env": "7.
|
32
|
-
"@babel/preset-react": "7.
|
33
|
-
"@babel/preset-typescript": "7.
|
34
|
-
"@babel/runtime": "7.
|
32
|
+
"@babel/plugin-transform-runtime": "7.9.0",
|
33
|
+
"@babel/preset-env": "7.9.0",
|
34
|
+
"@babel/preset-react": "7.9.1",
|
35
|
+
"@babel/preset-typescript": "7.9.0",
|
36
|
+
"@babel/runtime": "7.9.0",
|
35
37
|
"babel-plugin-macros": "2.8.0",
|
36
38
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24"
|
37
39
|
},
|
38
|
-
"gitHead": "
|
40
|
+
"gitHead": "d2f813f8897ffcd2f0b0d2da75d0c44924c92f4d"
|
39
41
|
}
|