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

Make worker-build support custom JS shims #686

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LuisDuarte1
Copy link

@LuisDuarte1 LuisDuarte1 commented Dec 23, 2024

This allows for users to provide their own JS shim and allowing them to customize behaviour: panic handling, wasm coredumps, and so on...

It defaults to the embedded shim in the binary to avoid breaking changes.

This allows for users to provide their own JS shim and allowing them to
customize behaviour: panic handling, wasm coredumps, and so on...

It defaults to the embedded shim in the binary to avoid breaking
changes,
@zebp
Copy link
Collaborator

zebp commented Dec 23, 2024

I think in the future we should explore different bundling modes, currently we always export a valid Worker but it seems like we may want a future where we export function/class stubs for people to do however they'd like and leave making a valid worker entirely up to them without them doing a custom shim. I'm fine with supporting this until then, but I think this is indicative of the holes in worker-build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants