babel-preset-react-app 10.0.0-next.64 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/create.js +2 -3
- package/dependencies.js +0 -4
- package/package.json +15 -15
package/create.js
CHANGED
@@ -83,8 +83,6 @@ module.exports = function (api, opts, env) {
|
|
83
83
|
useBuiltIns: 'entry',
|
84
84
|
// Set the corejs version we are using to avoid warnings in console
|
85
85
|
corejs: 3,
|
86
|
-
// Do not transform modules to CJS
|
87
|
-
modules: false,
|
88
86
|
// Exclude transforms that make all code slower
|
89
87
|
exclude: ['transform-typeof-symbol'],
|
90
88
|
},
|
@@ -97,7 +95,8 @@ module.exports = function (api, opts, env) {
|
|
97
95
|
development: isEnvDevelopment || isEnvTest,
|
98
96
|
// Will use the native built-in instead of trying to polyfill
|
99
97
|
// behavior for any plugins that require one.
|
100
|
-
useBuiltIns: true,
|
98
|
+
...(opts.runtime !== 'automatic' ? { useBuiltIns: true } : {}),
|
99
|
+
runtime: opts.runtime || 'classic',
|
101
100
|
},
|
102
101
|
],
|
103
102
|
isTypeScriptEnabled && [require('@babel/preset-typescript').default],
|
package/dependencies.js
CHANGED
@@ -74,8 +74,6 @@ module.exports = function (api, opts) {
|
|
74
74
|
targets: {
|
75
75
|
node: 'current',
|
76
76
|
},
|
77
|
-
// Do not transform modules to CJS
|
78
|
-
modules: false,
|
79
77
|
// Exclude transforms that make all code slower
|
80
78
|
exclude: ['transform-typeof-symbol'],
|
81
79
|
},
|
@@ -89,8 +87,6 @@ module.exports = function (api, opts) {
|
|
89
87
|
// Set the corejs version we are using to avoid warnings in console
|
90
88
|
// This will need to change once we upgrade to corejs@3
|
91
89
|
corejs: 3,
|
92
|
-
// Do not transform modules to CJS
|
93
|
-
modules: false,
|
94
90
|
// Exclude transforms that make all code slower
|
95
91
|
exclude: ['transform-typeof-symbol'],
|
96
92
|
},
|
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
|
}
|