Skip to content

Commit e5ebbb1

Browse files
jherrbrenelz
andauthored
fix: update react to start alpha (#121)
Huge thanks to @brenelz for the work here to update react to start with the new setup. --------- Co-authored-by: Brenley Dueck <[email protected]>
1 parent 1f8a1e5 commit e5ebbb1

18 files changed

+34
-112
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.output
22
.vinxi
3+
count.txt

frameworks/react-cra/add-ons/start/assets/src/api.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

frameworks/react-cra/add-ons/start/assets/src/client.tsx.ejs

Lines changed: 0 additions & 33 deletions
This file was deleted.

frameworks/react-cra/add-ons/start/assets/src/routes/api.demo-names.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { createAPIFileRoute } from '@tanstack/react-start/api'
2-
3-
export const APIRoute = createAPIFileRoute('/demo/start/api/names')({
1+
export const ServerRoute = createServerFileRoute().methods({
42
GET: async ({ request }) => {
53
return new Response(JSON.stringify(['Alice', 'Bob', 'Charlie']), {
64
headers: {

frameworks/react-cra/add-ons/start/assets/src/ssr.tsx.ejs

Lines changed: 0 additions & 30 deletions
This file was deleted.

frameworks/react-cra/add-ons/start/assets/app.config.ts.ejs renamed to frameworks/react-cra/add-ons/start/assets/vite.config.ts.ejs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
import { defineConfig } from '@tanstack/react-start/config'
1+
import { defineConfig } from 'vite'
2+
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
23
import viteTsConfigPaths from 'vite-tsconfig-paths'<% if (tailwind) { %>
34
import tailwindcss from "@tailwindcss/vite"
45
<% } %><% if (addOnEnabled.sentry) { %>
56
import { wrapVinxiConfigWithSentry } from "@sentry/tanstackstart-react";
67
<% } %>
78
const config = defineConfig({
8-
tsr: {
9-
appDirectory: 'src',
10-
},
11-
vite: {
129
plugins: [
1310
// this is the plugin that enables path aliases
1411
viteTsConfigPaths({
1512
projects: ['./tsconfig.json'],
1613
}),
1714
<% if (tailwind) { %>tailwindcss(),<% } %>
15+
tanstackStart(),
1816
],
19-
},
2017
})
2118

2219
<% if (addOnEnabled.sentry) { %>

frameworks/react-cra/add-ons/start/info.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
}
2222
],
2323
"deletedFiles": [
24-
"./vite.config.js",
25-
"./vite.config.ts",
2624
"./index.html",
2725
"./src/main.tsx",
2826
"./src/App.css"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"scripts": {
3-
"dev": "vinxi dev",
4-
"build": "vinxi build",
5-
"start": "vinxi start"
3+
"dev": "vite dev --port 3000",
4+
"build": "vite build",
5+
"start": "node .output/server/index.mjs"
66
},
77
"dependencies": {
8-
"@tanstack/react-router-with-query": "^1.114.3",
9-
"@tanstack/react-start": "^1.114.3",
10-
"vinxi": "^0.5.3",
11-
"vite-tsconfig-paths": "^5.1.4"
8+
"@tanstack/react-router-with-query": "^1.121.0",
9+
"@tanstack/react-start": "^1.121.0",
10+
"vite-tsconfig-paths": "^5.1.4",
11+
"vite": "^6.3.3"
1212
}
1313
}

frameworks/react-cra/project/base/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"test": "vitest run"
1111
},
1212
"dependencies": {
13-
"@tanstack/react-router": "^1.114.3",
14-
"@tanstack/react-router-devtools": "^1.114.3",
13+
"@tanstack/react-router": "^1.121.0",
14+
"@tanstack/react-router-devtools": "^1.121.0",
1515
"react": "^19.0.0",
1616
"react-dom": "^19.0.0"
1717
},
@@ -26,5 +26,8 @@
2626
"vite": "^6.1.0",
2727
"vitest": "^3.0.5",
2828
"web-vitals": "^4.2.4"
29+
},
30+
"overrides": {
31+
"@tanstack/react-router": "^1.121.0"
2932
}
3033
}

frameworks/react-cra/project/packages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"file-router": {
1616
"dependencies": {
17-
"@tanstack/router-plugin": "^1.114.3"
17+
"@tanstack/router-plugin": "^1.121.0"
1818
}
1919
}
2020
}

0 commit comments

Comments
 (0)