babel-preset-react-app-new 1.0.0 → 1.0.1
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 +13 -1
- package/package.json +4 -1
package/create.js
CHANGED
|
@@ -98,7 +98,19 @@ module.exports = function (api, opts, env) {
|
|
|
98
98
|
].filter(Boolean),
|
|
99
99
|
plugins: [
|
|
100
100
|
[require('@babel/plugin-proposal-decorators').default, { legacy: true }],
|
|
101
|
-
|
|
101
|
+
[
|
|
102
|
+
require('@babel/plugin-transform-class-properties').default,
|
|
103
|
+
{
|
|
104
|
+
loose: true
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
[require('@babel/plugin-transform-private-methods').default, { loose: true }],
|
|
108
|
+
[
|
|
109
|
+
require('@babel/plugin-proposal-private-property-in-object').default,
|
|
110
|
+
{
|
|
111
|
+
loose: true
|
|
112
|
+
}
|
|
113
|
+
],
|
|
102
114
|
// Polyfills the runtime needed for async/await, generators, and friends
|
|
103
115
|
// https://babeljs.io/docs/en/babel-plugin-transform-runtime
|
|
104
116
|
[
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-preset-react-app-new",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Babel preset used by Create React App",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/core": "^7.24.5",
|
|
25
25
|
"@babel/plugin-proposal-decorators": "^7.24.1",
|
|
26
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
27
|
+
"@babel/plugin-transform-class-properties": "^7.24.1",
|
|
28
|
+
"@babel/plugin-transform-private-methods": "^7.24.1",
|
|
26
29
|
"@babel/plugin-transform-runtime": "^7.24.3",
|
|
27
30
|
"@babel/preset-env": "^7.24.5",
|
|
28
31
|
"@babel/preset-react": "^7.24.1",
|