Skip to content

Commit 2376fc2

Browse files
committed
chore: migrate to @babel/plugin-syntax-jsx
1 parent 384aeec commit 2376fc2

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"dependencies": {
3232
"@babel/helper-annotate-as-pure": "^7.18.6",
3333
"@babel/helper-module-imports": "^7.21.4",
34-
"babel-plugin-syntax-jsx": "^6.18.0",
34+
"@babel/plugin-syntax-jsx": "^7.22.5",
3535
"lodash": "^4.17.21",
3636
"picomatch": "^2.3.1"
3737
},

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import syntax from 'babel-plugin-syntax-jsx'
1+
import syntax from '@babel/plugin-syntax-jsx'
22
import pureAnnotation from './visitors/pure'
33
import minify from './visitors/minify'
44
import displayNameAndId from './visitors/displayNameAndId'
55
import templateLiterals from './visitors/templateLiterals'
66
import assignStyledRequired from './visitors/assignStyledRequired'
77
import transpileCssProp from './visitors/transpileCssProp'
88

9-
export default function({ types: t }) {
9+
export default function ({ types: t }) {
1010
return {
1111
inherits: syntax,
1212
visitor: {

yarn.lock

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,13 @@ __metadata:
336336
languageName: node
337337
linkType: hard
338338

339+
"@babel/helper-plugin-utils@npm:^7.22.5":
340+
version: 7.22.5
341+
resolution: "@babel/helper-plugin-utils@npm:7.22.5"
342+
checksum: c0fc7227076b6041acd2f0e818145d2e8c41968cc52fb5ca70eed48e21b8fe6dd88a0a91cbddf4951e33647336eb5ae184747ca706817ca3bef5e9e905151ff5
343+
languageName: node
344+
linkType: hard
345+
339346
"@babel/helper-remap-async-to-generator@npm:^7.18.9":
340347
version: 7.18.9
341348
resolution: "@babel/helper-remap-async-to-generator@npm:7.18.9"
@@ -822,6 +829,17 @@ __metadata:
822829
languageName: node
823830
linkType: hard
824831

832+
"@babel/plugin-syntax-jsx@npm:^7.22.5":
833+
version: 7.22.5
834+
resolution: "@babel/plugin-syntax-jsx@npm:7.22.5"
835+
dependencies:
836+
"@babel/helper-plugin-utils": ^7.22.5
837+
peerDependencies:
838+
"@babel/core": ^7.0.0-0
839+
checksum: 8829d30c2617ab31393d99cec2978e41f014f4ac6f01a1cecf4c4dd8320c3ec12fdc3ce121126b2d8d32f6887e99ca1a0bad53dedb1e6ad165640b92b24980ce
840+
languageName: node
841+
linkType: hard
842+
825843
"@babel/plugin-syntax-jsx@npm:^7.7.2":
826844
version: 7.21.4
827845
resolution: "@babel/plugin-syntax-jsx@npm:7.21.4"
@@ -2266,9 +2284,9 @@ __metadata:
22662284
"@babel/helper-annotate-as-pure": ^7.18.6
22672285
"@babel/helper-module-imports": ^7.21.4
22682286
"@babel/plugin-proposal-class-properties": ^7.18.6
2287+
"@babel/plugin-syntax-jsx": ^7.22.5
22692288
"@babel/plugin-transform-modules-commonjs": ^7.21.5
22702289
"@babel/preset-env": ^7.21.5
2271-
babel-plugin-syntax-jsx: ^6.18.0
22722290
babel-test: ^0.2.4
22732291
jest: ^29.5.0
22742292
jest-file-snapshot: ^0.5.0
@@ -2282,13 +2300,6 @@ __metadata:
22822300
languageName: unknown
22832301
linkType: soft
22842302

2285-
"babel-plugin-syntax-jsx@npm:^6.18.0":
2286-
version: 6.18.0
2287-
resolution: "babel-plugin-syntax-jsx@npm:6.18.0"
2288-
checksum: 0c7ce5b81d6cfc01a7dd7a76a9a8f090ee02ba5c890310f51217ef1a7e6163fb7848994bbc14fd560117892e82240df9c7157ad0764da67ca5f2afafb73a7d27
2289-
languageName: node
2290-
linkType: hard
2291-
22922303
"babel-preset-current-node-syntax@npm:^1.0.0":
22932304
version: 1.0.1
22942305
resolution: "babel-preset-current-node-syntax@npm:1.0.1"

0 commit comments

Comments
 (0)