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.
Files changed (2) hide show
  1. package/create.js +1 -5
  2. 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
- ...(!hasJsxRuntime ? { useBuiltIns: true } : {}),
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-next.98+025f2739",
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.11.6",
25
- "@babel/plugin-proposal-class-properties": "7.10.4",
26
- "@babel/plugin-proposal-decorators": "7.10.5",
27
- "@babel/plugin-proposal-nullish-coalescing-operator": "7.10.4",
28
- "@babel/plugin-proposal-numeric-separator": "7.10.4",
29
- "@babel/plugin-proposal-optional-chaining": "7.11.0",
30
- "@babel/plugin-transform-flow-strip-types": "7.10.4",
31
- "@babel/plugin-transform-react-display-name": "7.10.4",
32
- "@babel/plugin-transform-runtime": "7.11.5",
33
- "@babel/preset-env": "7.11.5",
34
- "@babel/preset-react": "7.10.4",
35
- "@babel/preset-typescript": "7.10.4",
36
- "@babel/runtime": "7.11.2",
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": "025f2739ceb459c79a281ddc6e60d7fd7322ca24"
40
+ "gitHead": "ed958938f642007645dd5ac3466db36202f8754e"
41
41
  }