Skip to content

Commit f314d3f

Browse files
Replace deprecated babel class-properties plugin
1 parent 52f5ec8 commit f314d3f

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

.babelrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ module.exports = {
1717
require('@babel/preset-react').default,
1818
],
1919
plugins: [
20-
require('@babel/plugin-proposal-class-properties').default,
20+
require('@babel/plugin-transform-class-properties').default,
2121
],
2222
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"devDependencies": {
114114
"@babel/core": "~7.28.0",
115115
"@babel/eslint-parser": "~7.28.0",
116-
"@babel/plugin-proposal-class-properties": "~7.18.0",
116+
"@babel/plugin-transform-class-properties": "~7.27.1",
117117
"@babel/preset-env": "~7.28.0",
118118
"@babel/preset-react": "~7.27.0",
119119
"@babel/register": "~7.28.0",

yarn.lock

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ __metadata:
9595
languageName: node
9696
linkType: hard
9797

98-
"@babel/helper-create-class-features-plugin@npm:^7.18.6, @babel/helper-create-class-features-plugin@npm:^7.27.1, @babel/helper-create-class-features-plugin@npm:^7.28.3":
98+
"@babel/helper-create-class-features-plugin@npm:^7.27.1, @babel/helper-create-class-features-plugin@npm:^7.28.3":
9999
version: 7.28.5
100100
resolution: "@babel/helper-create-class-features-plugin@npm:7.28.5"
101101
dependencies:
@@ -344,18 +344,6 @@ __metadata:
344344
languageName: node
345345
linkType: hard
346346

347-
"@babel/plugin-proposal-class-properties@npm:~7.18.0":
348-
version: 7.18.6
349-
resolution: "@babel/plugin-proposal-class-properties@npm:7.18.6"
350-
dependencies:
351-
"@babel/helper-create-class-features-plugin": "npm:^7.18.6"
352-
"@babel/helper-plugin-utils": "npm:^7.18.6"
353-
peerDependencies:
354-
"@babel/core": ^7.0.0-0
355-
checksum: 10/49a78a2773ec0db56e915d9797e44fd079ab8a9b2e1716e0df07c92532f2c65d76aeda9543883916b8e0ff13606afeffa67c5b93d05b607bc87653ad18a91422
356-
languageName: node
357-
linkType: hard
358-
359347
"@babel/plugin-proposal-private-property-in-object@npm:7.21.0-placeholder-for-preset-env.2":
360348
version: 7.21.0-placeholder-for-preset-env.2
361349
resolution: "@babel/plugin-proposal-private-property-in-object@npm:7.21.0-placeholder-for-preset-env.2"
@@ -623,7 +611,7 @@ __metadata:
623611
languageName: node
624612
linkType: hard
625613

626-
"@babel/plugin-transform-class-properties@npm:^7.27.1":
614+
"@babel/plugin-transform-class-properties@npm:^7.27.1, @babel/plugin-transform-class-properties@npm:~7.27.1":
627615
version: 7.27.1
628616
resolution: "@babel/plugin-transform-class-properties@npm:7.27.1"
629617
dependencies:
@@ -12938,7 +12926,7 @@ __metadata:
1293812926
dependencies:
1293912927
"@babel/core": "npm:~7.28.0"
1294012928
"@babel/eslint-parser": "npm:~7.28.0"
12941-
"@babel/plugin-proposal-class-properties": "npm:~7.18.0"
12929+
"@babel/plugin-transform-class-properties": "npm:~7.27.1"
1294212930
"@babel/preset-env": "npm:~7.28.0"
1294312931
"@babel/preset-react": "npm:~7.27.0"
1294412932
"@babel/register": "npm:~7.28.0"

0 commit comments

Comments
 (0)