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: add --no-modules-global support #1070

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

Conversation

fosskers
Copy link

@fosskers fosskers commented Oct 20, 2021

This PR adds pass-through support for the wasm-bindgen flag --no-modules-global, which is very useful when building/running WASM in certain scenarios (browser extensions in particular).

Supercedes #860 which was mysteriously closed last summer.

Closes #729.


Make sure these boxes are checked! 📦✅

  • You have the latest version of rustfmt installed
$ rustup component add rustfmt
  • You ran cargo fmt on the code base before submitting
  • You reference which issue is being closed in the PR text

✨✨ 😄 Thanks so much for contributing to wasm-pack! 😄 ✨✨

@fosskers
Copy link
Author

See also rustwasm/wasm-bindgen#2700.

@fosskers
Copy link
Author

We are using this downstream and it's working well.

@fosskers
Copy link
Author

Hi there, any thoughts on this?

@gthb
Copy link
Contributor

gthb commented Dec 10, 2021

LGTM (as a random person on the internet with no approval/commit rights)

@fosskers
Copy link
Author

Hi there, it's been another month. Any thoughts?

@RonaldColyar
Copy link

LGTM

Copy link

@davehorner davehorner left a comment

Choose a reason for hiding this comment

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

why isn't this in tree yet? wasm-pack 0.10.2 still does not support the needed argument tunneling.

@fosskers
Copy link
Author

fosskers commented Oct 3, 2022

No clue, we've been using it for a while without issue.

@wlinna
Copy link

wlinna commented Oct 14, 2022

I'd really like to have this feature as well, but apparently wasm-pack is lacking maintainers
#928

I wonder if I should use wasm-bindgen cli directly for this while waiting (?).

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.

Allow passing --no-modules-global to wasm-bindgen
5 participants