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

Add wasmbindgen option: omit_default_module_path #1272

Merged
merged 2 commits into from
Jun 11, 2023

Conversation

matthiasgeihs
Copy link
Contributor

@matthiasgeihs matthiasgeihs commented Apr 14, 2023

There is currently no option to run wasm-bindgen with --omit_default_module_path.

This is relevant for projects that run in a context where usage of input = new URL('file.wasm', import.meta.url); is causing problems (e.g., in web workers).

This PR adds the option to run wasm-bindgen with --omit_default_module_path.
Reference: https://rustwasm.github.io/wasm-bindgen/reference/cli.html?highlight=omit#--omit-default-module-path

CHANGELOG.md Outdated
Comment on lines 1034 to 1035
# Should we omit the default import path?
omit-default-module-path = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the old changelog should be edited.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops 🙈 Thanks for catching this one 🙏 Added a revert commit for CHANGELOG.

@matthiasgeihs matthiasgeihs requested a review from drager June 5, 2023 08:14
Copy link
Member

@drager drager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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