Skip to content

Commit b0ca34c

Browse files
committed
upgrade vite to 7.1.7
1 parent 62c3a9d commit b0ca34c

File tree

6 files changed

+518
-211
lines changed

6 files changed

+518
-211
lines changed

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.19.0

examples/client-rendering/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"rescript-relay": "3.3.0",
4949
"rollup": "^2",
5050
"rollup-plugin-visualizer": "5.5.0",
51-
"vite": "^4.4.9",
51+
"vite": "^7.1.7",
5252
"vite-plugin-html": "3.2.0",
5353
"vitest": "^2.1.8"
5454
},

examples/express/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@
4747
"relay-runtime": "18.2.0",
4848
"rescript": "12.0.0-beta.11",
4949
"rescript-relay": "3.3.0",
50-
"rollup": "^2",
5150
"rollup-plugin-visualizer": "5.5.0",
52-
"vite": "^4.4.9",
51+
"vite": "^7.1.7",
5352
"vite-plugin-html": "3.2.0"
5453
},
5554
"dependencies": {

packages/rescript-relay-router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@rescript/react": ">=0.13.0",
4242
"react": ">=18.2.0",
4343
"rescript-relay": ">=3.0.0",
44-
"vite": ">=4.4.9"
44+
"vite": ">=7.1.7"
4545
},
4646
"dependencies": {
4747
"chalk": "^5.0.1",

packages/rescript-relay-router/vite-plugins/RescriptRelayServerVitePlugin.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ export let rescriptRelayVitePlugin = ({
297297
/**
298298
* Close bundle is used to transform Vite's client manifest into the ReScript Relay Router specific manifest.
299299
*/
300-
closeBundle() {
300+
closeBundle(error) {
301+
if (error) {
302+
return;
303+
}
301304
// We only transform the manifest at the end of the client build (since that's when it gets created)
302305
// and skip this step for the SSR build.
303306
if (config.build.ssr) {
@@ -307,7 +310,7 @@ export let rescriptRelayVitePlugin = ({
307310
const manifestName =
308311
typeof config.build.manifest === "string"
309312
? config.build.manifest
310-
: "manifest.json";
313+
: ".vite/manifest.json";
311314
const inPath = path.join(cwd, config.build.outDir, manifestName);
312315
const outPath = path.join(cwd, config.build.outDir, ROUTER_MANIFEST_NAME);
313316

0 commit comments

Comments
 (0)