Skip to content

Commit

Permalink
@vitejs/plugin-react to @vitejs/plugin-react-swc
Browse files Browse the repository at this point in the history
  • Loading branch information
L4Ph committed May 26, 2024
1 parent 2a8dc92 commit 3bdd772
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 65 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@types/wicg-file-system-access": "^2020.9.7",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react-swc": "^3.7.0",
"babel-eslint": "^10.1.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from "node:path";
import { readFileSync, existsSync } from "node:fs";
import { defineConfig, loadEnv, Plugin, createFilter, transformWithEsbuild } from "vite";
import react from "@vitejs/plugin-react";
import react from "@vitejs/plugin-react-swc";
import tsconfigPaths from "vite-tsconfig-paths";


Expand Down
205 changes: 142 additions & 63 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/core@npm:^7.21.3, @babel/core@npm:^7.24.5":
"@babel/core@npm:^7.21.3":
version: 7.24.6
resolution: "@babel/core@npm:7.24.6"
dependencies:
Expand Down Expand Up @@ -469,13 +469,6 @@ __metadata:
languageName: node
linkType: hard

"@babel/helper-plugin-utils@npm:^7.24.6":
version: 7.24.6
resolution: "@babel/helper-plugin-utils@npm:7.24.6"
checksum: 10c0/636d3ce8cabc0621c1f78187e1d95f1087209921fa452f76aad06224ef5dffb3d934946f5183109920f32a4b94dd75ac91c63bc52813fee639d10cd54d49ba1f
languageName: node
linkType: hard

"@babel/helper-remap-async-to-generator@npm:^7.16.8":
version: 7.16.8
resolution: "@babel/helper-remap-async-to-generator@npm:7.16.8"
Expand Down Expand Up @@ -645,7 +638,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/parser@npm:^7.20.7, @babel/parser@npm:^7.24.6":
"@babel/parser@npm:^7.24.6":
version: 7.24.6
resolution: "@babel/parser@npm:7.24.6"
bin:
Expand Down Expand Up @@ -1470,28 +1463,6 @@ __metadata:
languageName: node
linkType: hard

"@babel/plugin-transform-react-jsx-self@npm:^7.24.5":
version: 7.24.6
resolution: "@babel/plugin-transform-react-jsx-self@npm:7.24.6"
dependencies:
"@babel/helper-plugin-utils": "npm:^7.24.6"
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: 10c0/df136207167fd7a87c70235ef17a8d6c15f9704b979a00260d7babd6d71c3fdfc01a624335e10bdfbde0654cc35a1d9120d54b11697d10670472230a8fdbdb06
languageName: node
linkType: hard

"@babel/plugin-transform-react-jsx-source@npm:^7.24.1":
version: 7.24.6
resolution: "@babel/plugin-transform-react-jsx-source@npm:7.24.6"
dependencies:
"@babel/helper-plugin-utils": "npm:^7.24.6"
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: 10c0/1fa643bc8ca6a404835d07fc219bb74304aec549b30f68f31cef6a5227f44badb8fc208f46e4c9231da480e29e62b42a7567a7c9e0b9b7db6ac3643a3b11e40b
languageName: node
linkType: hard

"@babel/plugin-transform-react-jsx@npm:^7.12.12, @babel/plugin-transform-react-jsx@npm:^7.16.7":
version: 7.17.3
resolution: "@babel/plugin-transform-react-jsx@npm:7.17.3"
Expand Down Expand Up @@ -1892,7 +1863,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.24.6, @babel/types@npm:^7.8.3":
"@babel/types@npm:^7.21.3, @babel/types@npm:^7.24.6, @babel/types@npm:^7.8.3":
version: 7.24.6
resolution: "@babel/types@npm:7.24.6"
dependencies:
Expand Down Expand Up @@ -5396,6 +5367,138 @@ __metadata:
languageName: node
linkType: hard

"@swc/core-darwin-arm64@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-darwin-arm64@npm:1.5.7"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@swc/core-darwin-x64@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-darwin-x64@npm:1.5.7"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@swc/core-linux-arm-gnueabihf@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.5.7"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard

"@swc/core-linux-arm64-gnu@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-arm64-gnu@npm:1.5.7"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@swc/core-linux-arm64-musl@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-arm64-musl@npm:1.5.7"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@swc/core-linux-x64-gnu@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-x64-gnu@npm:1.5.7"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@swc/core-linux-x64-musl@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-linux-x64-musl@npm:1.5.7"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@swc/core-win32-arm64-msvc@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-win32-arm64-msvc@npm:1.5.7"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@swc/core-win32-ia32-msvc@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-win32-ia32-msvc@npm:1.5.7"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@swc/core-win32-x64-msvc@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core-win32-x64-msvc@npm:1.5.7"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@swc/core@npm:^1.5.7":
version: 1.5.7
resolution: "@swc/core@npm:1.5.7"
dependencies:
"@swc/core-darwin-arm64": "npm:1.5.7"
"@swc/core-darwin-x64": "npm:1.5.7"
"@swc/core-linux-arm-gnueabihf": "npm:1.5.7"
"@swc/core-linux-arm64-gnu": "npm:1.5.7"
"@swc/core-linux-arm64-musl": "npm:1.5.7"
"@swc/core-linux-x64-gnu": "npm:1.5.7"
"@swc/core-linux-x64-musl": "npm:1.5.7"
"@swc/core-win32-arm64-msvc": "npm:1.5.7"
"@swc/core-win32-ia32-msvc": "npm:1.5.7"
"@swc/core-win32-x64-msvc": "npm:1.5.7"
"@swc/counter": "npm:^0.1.2"
"@swc/types": "npm:0.1.7"
peerDependencies:
"@swc/helpers": ^0.5.0
dependenciesMeta:
"@swc/core-darwin-arm64":
optional: true
"@swc/core-darwin-x64":
optional: true
"@swc/core-linux-arm-gnueabihf":
optional: true
"@swc/core-linux-arm64-gnu":
optional: true
"@swc/core-linux-arm64-musl":
optional: true
"@swc/core-linux-x64-gnu":
optional: true
"@swc/core-linux-x64-musl":
optional: true
"@swc/core-win32-arm64-msvc":
optional: true
"@swc/core-win32-ia32-msvc":
optional: true
"@swc/core-win32-x64-msvc":
optional: true
peerDependenciesMeta:
"@swc/helpers":
optional: true
checksum: 10c0/83ab96bee5d448e580d8a6c8c1d1fbfdfaf5561f8904140122e49c428c2336790d31e7bdcdf610ce8f20c7f682785263d2ebab7cb56c2dcb5ea46be54eab2c03
languageName: node
linkType: hard

"@swc/counter@npm:^0.1.2, @swc/counter@npm:^0.1.3":
version: 0.1.3
resolution: "@swc/counter@npm:0.1.3"
checksum: 10c0/8424f60f6bf8694cfd2a9bca45845bce29f26105cda8cf19cdb9fd3e78dc6338699e4db77a89ae449260bafa1cc6bec307e81e7fb96dbf7dcfce0eea55151356
languageName: node
linkType: hard

"@swc/types@npm:0.1.7":
version: 0.1.7
resolution: "@swc/types@npm:0.1.7"
dependencies:
"@swc/counter": "npm:^0.1.3"
checksum: 10c0/da7c542de0a44b85a98139db03920448e86309d28ad9e9335f91b4025e5f32ae4fbbfdd0f287330fb0de737e7c5ec4f64ade0fc5fffea6c2fd9ac681b1e97bea
languageName: node
linkType: hard

"@testing-library/dom@npm:^7.28.1":
version: 7.31.2
resolution: "@testing-library/dom@npm:7.31.2"
Expand Down Expand Up @@ -5498,19 +5601,6 @@ __metadata:
languageName: node
linkType: hard

"@types/babel__core@npm:^7.20.5":
version: 7.20.5
resolution: "@types/babel__core@npm:7.20.5"
dependencies:
"@babel/parser": "npm:^7.20.7"
"@babel/types": "npm:^7.20.7"
"@types/babel__generator": "npm:*"
"@types/babel__template": "npm:*"
"@types/babel__traverse": "npm:*"
checksum: 10c0/bdee3bb69951e833a4b811b8ee9356b69a61ed5b7a23e1a081ec9249769117fa83aaaf023bb06562a038eb5845155ff663e2d5c75dd95c1d5ccc91db012868ff
languageName: node
linkType: hard

"@types/babel__generator@npm:*":
version: 7.6.4
resolution: "@types/babel__generator@npm:7.6.4"
Expand Down Expand Up @@ -6255,18 +6345,14 @@ __metadata:
languageName: node
linkType: hard

"@vitejs/plugin-react@npm:^4.2.1":
version: 4.3.0
resolution: "@vitejs/plugin-react@npm:4.3.0"
"@vitejs/plugin-react-swc@npm:^3.7.0":
version: 3.7.0
resolution: "@vitejs/plugin-react-swc@npm:3.7.0"
dependencies:
"@babel/core": "npm:^7.24.5"
"@babel/plugin-transform-react-jsx-self": "npm:^7.24.5"
"@babel/plugin-transform-react-jsx-source": "npm:^7.24.1"
"@types/babel__core": "npm:^7.20.5"
react-refresh: "npm:^0.14.2"
"@swc/core": "npm:^1.5.7"
peerDependencies:
vite: ^4.2.0 || ^5.0.0
checksum: 10c0/38ef4c4b7fd626d3b47b5498bd248967eed970099c97f051f29dbe9f72792a4f511ccb10f664dff865c595526ab7265eda5837852bc82bb56a24030302eb23e3
vite: ^4 || ^5
checksum: 10c0/f9f562c87f0fd384d160c5d499056841f8a38050fc01f5295d3394a77c288eca1f78f6df3aa08c01f3f5cb3e4937c6490607ac87b700d87bab425b7c4dc15e91
languageName: node
linkType: hard

Expand Down Expand Up @@ -6509,7 +6595,7 @@ __metadata:
"@types/wicg-file-system-access": "npm:^2020.9.7"
"@typescript-eslint/eslint-plugin": "npm:^4.10.0"
"@typescript-eslint/parser": "npm:^4.10.0"
"@vitejs/plugin-react": "npm:^4.2.1"
"@vitejs/plugin-react-swc": "npm:^3.7.0"
ajv: "npm:^7.0.3"
axios: "npm:^0.21.1"
babel-eslint: "npm:^10.1.0"
Expand Down Expand Up @@ -18768,13 +18854,6 @@ __metadata:
languageName: node
linkType: hard

"react-refresh@npm:^0.14.2":
version: 0.14.2
resolution: "react-refresh@npm:0.14.2"
checksum: 10c0/875b72ef56b147a131e33f2abd6ec059d1989854b3ff438898e4f9310bfcc73acff709445b7ba843318a953cb9424bcc2c05af2b3d80011cee28f25aef3e2ebb
languageName: node
linkType: hard

"react-refresh@npm:^0.8.3":
version: 0.8.3
resolution: "react-refresh@npm:0.8.3"
Expand Down

0 comments on commit 3bdd772

Please sign in to comment.