babel-preset-react-app 10.0.0-next.98 → 10.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/create.js +1 -5
- package/package.json +15 -15
package/create.js
CHANGED
@@ -54,10 +54,6 @@ module.exports = function (api, opts, env) {
|
|
54
54
|
);
|
55
55
|
}
|
56
56
|
|
57
|
-
var hasJsxRuntime = Boolean(
|
58
|
-
api.caller(caller => !!caller && caller.hasJsxRuntime)
|
59
|
-
);
|
60
|
-
|
61
57
|
if (!isEnvDevelopment && !isEnvProduction && !isEnvTest) {
|
62
58
|
throw new Error(
|
63
59
|
'Using `babel-preset-react-app` requires that you specify `NODE_ENV` or ' +
|
@@ -99,7 +95,7 @@ module.exports = function (api, opts, env) {
|
|
99
95
|
development: isEnvDevelopment || isEnvTest,
|
100
96
|
// Will use the native built-in instead of trying to polyfill
|
101
97
|
// behavior for any plugins that require one.
|
102
|
-
...(
|
98
|
+
...(opts.runtime !== 'automatic' ? { useBuiltIns: true } : {}),
|
103
99
|
runtime: opts.runtime || 'classic',
|
104
100
|
},
|
105
101
|
],
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "babel-preset-react-app",
|
3
|
-
"version": "10.0.0
|
3
|
+
"version": "10.0.0",
|
4
4
|
"description": "Babel preset used by Create React App",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -21,21 +21,21 @@
|
|
21
21
|
"test.js"
|
22
22
|
],
|
23
23
|
"dependencies": {
|
24
|
-
"@babel/core": "7.
|
25
|
-
"@babel/plugin-proposal-class-properties": "7.
|
26
|
-
"@babel/plugin-proposal-decorators": "7.
|
27
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "7.
|
28
|
-
"@babel/plugin-proposal-numeric-separator": "7.
|
29
|
-
"@babel/plugin-proposal-optional-chaining": "7.
|
30
|
-
"@babel/plugin-transform-flow-strip-types": "7.
|
31
|
-
"@babel/plugin-transform-react-display-name": "7.
|
32
|
-
"@babel/plugin-transform-runtime": "7.
|
33
|
-
"@babel/preset-env": "7.
|
34
|
-
"@babel/preset-react": "7.
|
35
|
-
"@babel/preset-typescript": "7.
|
36
|
-
"@babel/runtime": "7.
|
24
|
+
"@babel/core": "7.12.3",
|
25
|
+
"@babel/plugin-proposal-class-properties": "7.12.1",
|
26
|
+
"@babel/plugin-proposal-decorators": "7.12.1",
|
27
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "7.12.1",
|
28
|
+
"@babel/plugin-proposal-numeric-separator": "7.12.1",
|
29
|
+
"@babel/plugin-proposal-optional-chaining": "7.12.1",
|
30
|
+
"@babel/plugin-transform-flow-strip-types": "7.12.1",
|
31
|
+
"@babel/plugin-transform-react-display-name": "7.12.1",
|
32
|
+
"@babel/plugin-transform-runtime": "7.12.1",
|
33
|
+
"@babel/preset-env": "7.12.1",
|
34
|
+
"@babel/preset-react": "7.12.1",
|
35
|
+
"@babel/preset-typescript": "7.12.1",
|
36
|
+
"@babel/runtime": "7.12.1",
|
37
37
|
"babel-plugin-macros": "2.8.0",
|
38
38
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24"
|
39
39
|
},
|
40
|
-
"gitHead": "
|
40
|
+
"gitHead": "ed958938f642007645dd5ac3466db36202f8754e"
|
41
41
|
}
|