Skip to content

Commit 3d281cd

Browse files
Updated plugin to comply with vite 7 new api (#44)
* Updated plugin to comply with vite 7 new api * fix: fall back to vite’s default target in non ssr in vite < 7, it’s modules anyways. in vite > 7, modules is no longer an option, instead it’s “baseline-widely-available” Signed-off-by: Marc MacLeod <marbemac+gh@gmail.com> * relax yarn constraints, multiple vite versions Signed-off-by: Marc MacLeod <marbemac+gh@gmail.com> * update several of the examples to vite v7 Signed-off-by: Marc MacLeod <marbemac+gh@gmail.com> --------- Signed-off-by: Marc MacLeod <marbemac+gh@gmail.com> Co-authored-by: Marc MacLeod <marbemac+gh@gmail.com>
1 parent c0a17bb commit 3d281cd

20 files changed

Lines changed: 2696 additions & 2093 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ssrx/vite': minor
3+
---
4+
5+
Updated plugin to comply with vite 7 new api

examples/bun-react-router/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"@ssrx/vite": "latest",
2525
"@types/react": "18.3.5",
2626
"@types/react-dom": "18.3.0",
27-
"@vitejs/plugin-react": "4.3.1",
27+
"@vitejs/plugin-react": "4.6.0",
2828
"typescript": "5.6.2",
29-
"vite": "5.4.8",
30-
"vite-tsconfig-paths": "5.0.1"
29+
"vite": "7.0.4",
30+
"vite-tsconfig-paths": "5.1.4"
3131
}
3232
}

examples/react-router-kitchen-sink/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@
5757
"@types/better-sqlite3": "7.6.11",
5858
"@types/react": "18.3.5",
5959
"@types/react-dom": "18.3.0",
60-
"@vitejs/plugin-react": "4.3.1",
60+
"@vitejs/plugin-react": "4.6.0",
6161
"autoprefixer": "10.4.20",
6262
"drizzle-kit": "0.24.2",
6363
"postcss": "8.4.47",
6464
"rollup-plugin-analyzer": "4.0.0",
6565
"tailwindcss": "3.4.13",
6666
"tsx": "4.19.1",
6767
"typescript": "5.6.2",
68-
"vite": "5.4.8",
69-
"vite-tsconfig-paths": "5.0.1"
68+
"vite": "7.0.4",
69+
"vite-tsconfig-paths": "5.1.4"
7070
}
7171
}

examples/react-router-records/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"@ssrx/vite": "latest",
2424
"@types/react": "18.3.5",
2525
"@types/react-dom": "18.3.0",
26-
"@vitejs/plugin-react": "4.3.1",
26+
"@vitejs/plugin-react": "4.6.0",
2727
"autoprefixer": "10.4.20",
2828
"postcss": "8.4.47",
2929
"tailwindcss": "3.4.13",
3030
"typescript": "5.6.2",
31-
"vite": "5.4.8",
32-
"vite-tsconfig-paths": "5.0.1"
31+
"vite": "7.0.4",
32+
"vite-tsconfig-paths": "5.1.4"
3333
}
3434
}

examples/react-router-records/src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Hono } from 'hono';
44
import { compress } from 'hono/compress';
55
import type { RedirectStatusCode } from 'hono/utils/http-status';
66

7-
import { serverHandler } from './app.tsx';
7+
import { serverHandler } from './App.tsx';
88
import { routes } from './routes.tsx';
99

1010
const server = new Hono();
@@ -67,7 +67,7 @@ if (import.meta.env.PROD) {
6767
fetch: server.fetch,
6868
},
6969
() => {
70-
console.log(`🚀 Server running at http://localhost:${port}`);
70+
console.log(`🚀 Server running at http://localhost:${port}/react-router-records`);
7171
},
7272
);
7373
}

examples/react-router-simple/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"@ssrx/vite": "latest",
2525
"@types/react": "18.3.5",
2626
"@types/react-dom": "18.3.0",
27-
"@vitejs/plugin-react": "4.3.1",
27+
"@vitejs/plugin-react": "4.6.0",
2828
"typescript": "5.6.2",
29-
"vite": "5.4.8",
30-
"vite-tsconfig-paths": "5.0.1"
29+
"vite": "7.0.4",
30+
"vite-tsconfig-paths": "5.1.4"
3131
}
3232
}

examples/remix-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@
6464
"typescript-remix-routes-plugin": "1.0.1",
6565
"vite": "5.4.8",
6666
"vite-env-only": "3.0.3",
67-
"vite-tsconfig-paths": "5.0.1"
67+
"vite-tsconfig-paths": "5.1.4"
6868
}
6969
}

examples/solid-router-simple/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"devDependencies": {
2424
"@ssrx/vite": "latest",
2525
"typescript": "5.6.2",
26-
"vite": "5.4.8",
27-
"vite-plugin-solid": "2.9.1",
28-
"vite-tsconfig-paths": "5.0.1"
26+
"vite": "7.0.4",
27+
"vite-plugin-solid": "2.11.7",
28+
"vite-tsconfig-paths": "5.1.4"
2929
}
3030
}

examples/tanstack-router-simple/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"@tanstack/router-plugin": "1.57.13",
2828
"@types/react": "18.3.5",
2929
"@types/react-dom": "18.3.0",
30-
"@vitejs/plugin-react": "4.3.1",
30+
"@vitejs/plugin-react": "4.6.0",
3131
"autoprefixer": "10.4.20",
3232
"postcss": "8.4.47",
3333
"tailwindcss": "3.4.13",
3434
"typescript": "5.6.2",
3535
"vite": "5.4.8",
36-
"vite-tsconfig-paths": "5.0.1"
36+
"vite-tsconfig-paths": "5.1.4"
3737
}
3838
}

packages/plugin-solid-router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
},
3636
"devDependencies": {
3737
"@solidjs/router": "0.11.2",
38-
"esbuild-plugin-solid": "0.5.0"
38+
"esbuild-plugin-solid": "0.6.0"
3939
}
4040
}

0 commit comments

Comments
 (0)