Skip to content

Commit 3882f39

Browse files
committed
chore: add vite react plugin
1 parent 03e9bba commit 3882f39

File tree

3 files changed

+57
-2
lines changed

3 files changed

+57
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@types/styled-components": "^5.1.20",
4747
"@typescript-eslint/eslint-plugin": "^8.26.0",
4848
"@typescript-eslint/parser": "^8.26.0",
49+
"@vitejs/plugin-react": "^4.3.4",
4950
"babel-plugin-styled-components": "^2.0.2",
5051
"eslint": "^9.21.0",
5152
"eslint-config-prettier": "^10.1.1",

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { resolve } from "path";
22
import { defineConfig } from "vite";
3+
import react from "@vitejs/plugin-react";
34
import svgr from "vite-plugin-svgr";
45
// eslint-disable-next-line import/no-unresolved
56
import tailwindcss from "@tailwindcss/vite";
@@ -16,5 +17,6 @@ export default defineConfig({
1617
include: "**/*.svg",
1718
}),
1819
tailwindcss(),
20+
react(),
1921
],
2022
});

yarn.lock

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ __metadata:
5656
languageName: node
5757
linkType: hard
5858

59-
"@babel/core@npm:^7.18.9, @babel/core@npm:^7.21.3":
59+
"@babel/core@npm:^7.18.9, @babel/core@npm:^7.21.3, @babel/core@npm:^7.26.0":
6060
version: 7.26.9
6161
resolution: "@babel/core@npm:7.26.9"
6262
dependencies:
@@ -191,6 +191,13 @@ __metadata:
191191
languageName: node
192192
linkType: hard
193193

194+
"@babel/helper-plugin-utils@npm:^7.25.9":
195+
version: 7.26.5
196+
resolution: "@babel/helper-plugin-utils@npm:7.26.5"
197+
checksum: 10c0/cdaba71d4b891aa6a8dfbe5bac2f94effb13e5fa4c2c487667fdbaa04eae059b78b28d85a885071f45f7205aeb56d16759e1bed9c118b94b16e4720ef1ab0f65
198+
languageName: node
199+
linkType: hard
200+
194201
"@babel/helper-split-export-declaration@npm:^7.22.6":
195202
version: 7.22.6
196203
resolution: "@babel/helper-split-export-declaration@npm:7.22.6"
@@ -287,6 +294,28 @@ __metadata:
287294
languageName: node
288295
linkType: hard
289296

297+
"@babel/plugin-transform-react-jsx-self@npm:^7.25.9":
298+
version: 7.25.9
299+
resolution: "@babel/plugin-transform-react-jsx-self@npm:7.25.9"
300+
dependencies:
301+
"@babel/helper-plugin-utils": "npm:^7.25.9"
302+
peerDependencies:
303+
"@babel/core": ^7.0.0-0
304+
checksum: 10c0/ce0e289f6af93d7c4dc6b385512199c5bb138ae61507b4d5117ba88b6a6b5092f704f1bdf80080b7d69b1b8c36649f2a0b250e8198667d4d30c08bbb1546bd99
305+
languageName: node
306+
linkType: hard
307+
308+
"@babel/plugin-transform-react-jsx-source@npm:^7.25.9":
309+
version: 7.25.9
310+
resolution: "@babel/plugin-transform-react-jsx-source@npm:7.25.9"
311+
dependencies:
312+
"@babel/helper-plugin-utils": "npm:^7.25.9"
313+
peerDependencies:
314+
"@babel/core": ^7.0.0-0
315+
checksum: 10c0/fc9ee08efc9be7cbd2cc6788bbf92579adf3cab37912481f1b915221be3d22b0613b5b36a721df5f4c0ab65efe8582fcf8673caab83e6e1ce4cc04ceebf57dfa
316+
languageName: node
317+
linkType: hard
318+
290319
"@babel/runtime@npm:^7.10.1, @babel/runtime@npm:^7.11.1, @babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.21.0":
291320
version: 7.22.6
292321
resolution: "@babel/runtime@npm:7.22.6"
@@ -1193,6 +1222,7 @@ __metadata:
11931222
"@types/styled-components": "npm:^5.1.20"
11941223
"@typescript-eslint/eslint-plugin": "npm:^8.26.0"
11951224
"@typescript-eslint/parser": "npm:^8.26.0"
1225+
"@vitejs/plugin-react": "npm:^4.3.4"
11961226
babel-plugin-styled-components: "npm:^2.0.2"
11971227
clsx: "npm:^2.1.1"
11981228
eslint: "npm:^9.21.0"
@@ -4011,7 +4041,7 @@ __metadata:
40114041
languageName: node
40124042
linkType: hard
40134043

4014-
"@types/babel__core@npm:^7.18.0":
4044+
"@types/babel__core@npm:^7.18.0, @types/babel__core@npm:^7.20.5":
40154045
version: 7.20.5
40164046
resolution: "@types/babel__core@npm:7.20.5"
40174047
dependencies:
@@ -4358,6 +4388,21 @@ __metadata:
43584388
languageName: node
43594389
linkType: hard
43604390

4391+
"@vitejs/plugin-react@npm:^4.3.4":
4392+
version: 4.3.4
4393+
resolution: "@vitejs/plugin-react@npm:4.3.4"
4394+
dependencies:
4395+
"@babel/core": "npm:^7.26.0"
4396+
"@babel/plugin-transform-react-jsx-self": "npm:^7.25.9"
4397+
"@babel/plugin-transform-react-jsx-source": "npm:^7.25.9"
4398+
"@types/babel__core": "npm:^7.20.5"
4399+
react-refresh: "npm:^0.14.2"
4400+
peerDependencies:
4401+
vite: ^4.2.0 || ^5.0.0 || ^6.0.0
4402+
checksum: 10c0/38a47a1dbafae0b97142943d83ee3674cb3331153a60b1a3fd29d230c12c9dfe63b7c345b231a3450168ed8a9375a9a1a253c3d85e9efdc19478c0d56b98496c
4403+
languageName: node
4404+
linkType: hard
4405+
43614406
"@vitest/expect@npm:2.0.5":
43624407
version: 2.0.5
43634408
resolution: "@vitest/expect@npm:2.0.5"
@@ -9172,6 +9217,13 @@ __metadata:
91729217
languageName: node
91739218
linkType: hard
91749219

9220+
"react-refresh@npm:^0.14.2":
9221+
version: 0.14.2
9222+
resolution: "react-refresh@npm:0.14.2"
9223+
checksum: 10c0/875b72ef56b147a131e33f2abd6ec059d1989854b3ff438898e4f9310bfcc73acff709445b7ba843318a953cb9424bcc2c05af2b3d80011cee28f25aef3e2ebb
9224+
languageName: node
9225+
linkType: hard
9226+
91759227
"react-stately@npm:^3.36.1":
91769228
version: 3.36.1
91779229
resolution: "react-stately@npm:3.36.1"

0 commit comments

Comments
 (0)