Skip to content

Commit 65da112

Browse files
committed
chore: add react-compiler
1 parent bcf64e7 commit 65da112

File tree

7 files changed

+3470
-33
lines changed

7 files changed

+3470
-33
lines changed

app/app.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
2+
3+
@theme {
4+
--font-sans:
5+
'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
6+
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
7+
}
48

59
html,
610
body {

app/routes.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
import { type RouteConfig, index } from "@react-router/dev/routes";
1+
import { type RouteConfig, index, route } from "@react-router/dev/routes";
22

3-
export default [index("routes/home.tsx")] satisfies RouteConfig;
3+
export default [
4+
index("routes/home.tsx"),
5+
route("about", "routes/about.tsx"),
6+
] satisfies RouteConfig;

app/routes/about.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function Route() {
2+
return <h1>Hello World</h1>
3+
}

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
},
2020
"devDependencies": {
2121
"@react-router/dev": "^7.1.3",
22-
"@types/node": "^20",
22+
"@tailwindcss/postcss": "4.0.7",
23+
"@types/node": "^22.13.4",
2324
"@types/react": "^19.0.1",
2425
"@types/react-dom": "^19.0.1",
2526
"autoprefixer": "^10.4.20",
27+
"babel-plugin-react-compiler": "19.0.0-beta-21e868a-20250216",
2628
"postcss": "^8.4.49",
27-
"tailwindcss": "^3.4.16",
29+
"tailwindcss": "^4.0.7",
2830
"typescript": "^5.7.2",
29-
"vite": "^5.4.11",
31+
"vite": "^6.1.0",
32+
"vite-plugin-babel": "1.3.0",
3033
"vite-tsconfig-paths": "^5.1.4"
31-
}
34+
},
35+
"packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af"
3236
}

0 commit comments

Comments
 (0)