-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(workerd): use new transport #144
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
invoke: async (payload) => { | ||
// we still need to implement fetchModule on top of service binding | ||
// since websocket and rpc have tighter payload size limit | ||
// (for example, rpc 1MB is not enough for large pre-bundled deps with source map) | ||
const response = await env.__viteInvoke.fetch(requestJson(payload)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this is great, but it turns out we have payload size limit for rpc...
/home/hiroshi/code/personal/vite-environment-examples/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/wrangler/wrangler-dist/cli.js:29768
throw a;
^
Error: Serialized RPC arguments or return values are limited to 1MiB, but the size of this value was: 3828118 bytes.
at Object.respond (file:///home/hiroshi/code/personal/vite-environment-examples/node_modules/.pnpm/vite@file+vite-6.0.0-beta.3.tgz_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-DBWyyc1z.js:53470:20)
at file:///home/hiroshi/code/personal/vite-environment-examples/node_modules/.pnpm/vite@file+vite-6.0.0-beta.3.tgz_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-DBWyyc1z.js:64571:16 {
[cause]: undefined
}
2710281
to
facbb6f
Compare
a80bcc9
to
2ed493c
Compare
d0627d9
to
b5c4861
Compare
2ed493c
to
d4af07b
Compare
No description provided.