Skip to content
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(child-process,workerd,web-worker): use new module transport (connect, send) #140

Merged
merged 28 commits into from
Nov 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: cleanup
hi-ogawa committed Nov 7, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit aab01f0c7b7ff9c440392f55de0e1a0a11a6d245
3 changes: 1 addition & 2 deletions examples/child-process/src/lib/vite/bridge-client.js
Original file line number Diff line number Diff line change
@@ -33,8 +33,7 @@ export function createBridgeClient(options) {
body: JSON.stringify({ payload, key: options.key }),
});
assert(response.ok);
const result = response.json();
return result;
return response.json();
},
},
hmr: false,
1 change: 0 additions & 1 deletion examples/child-process/src/lib/vite/environment.ts
Original file line number Diff line number Diff line change
@@ -69,7 +69,6 @@ export class ChildProcessFetchDevEnvironment extends DevEnvironment {
const handler = invokeHandlers[payload.event];
assert(handler);
const result = await handler(payload.data);
console.log({ payload, result });
return Response.json(result);
}
return undefined;