Skip to content

Commit

Permalink
chore(deps): vite 6.0.0-beta.2 (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Oct 2, 2024
1 parent 8bdd56c commit 08ae006
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 322 deletions.
2 changes: 1 addition & 1 deletion examples/react-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"@hiogawa/transforms": "0.0.0",
"@hiogawa/vite-plugin-ssr-middleware-alpha": "workspace:*",
"@types/estree": "^1.0.5",
"@types/estree": "^1.0.6",
"happy-dom": "^14.12.3",
"magic-string": "^0.30.10",
"unocss": "0.61.5"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"tsup": "^8.1.2",
"tsx": "^4.16.2",
"typescript": "^5.5.3",
"vite": "https://pkg.pr.new/vite@95020ab",
"vite": "6.0.0-beta.2",
"vitest": "^2.0.3",
"wrangler": "^3.78.8"
},
Expand Down
5 changes: 1 addition & 4 deletions packages/workerd/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ function createRunner(env: RunnerEnv, webSocket: WebSocket) {
});
},
send(payload) {
// compat to support both before and after https://github.com/vitejs/vite/pull/18186
// @ts-ignore
// biome-ignore format:
webSocket.send(typeof payload === "string" ? payload : JSON.stringify(payload));
webSocket.send(JSON.stringify(payload));
},
},
},
Expand Down
Loading

0 comments on commit 08ae006

Please sign in to comment.