-
Notifications
You must be signed in to change notification settings - Fork 410
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
support no-modules #327
support no-modules #327
Conversation
ca37bb2
to
2f88175
Compare
2f88175
to
d79349e
Compare
@@ -136,6 +136,7 @@ pub fn wasm_bindgen_build( | |||
}; | |||
let target_arg = match target { | |||
"nodejs" => "--nodejs", | |||
"no-modules" => "--no-modules", |
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.
Not in this PR, but as a follow up issue, this seems like a good candidate for an enum
with FromStr
and Display
impls like how we do with BuildMode
and Access
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.
yeah i was thinking about this when i ran into it, i'll file an issue for a refactor
fixes #317
note:
this PR puts the js file generated by bindgen in the
browser
key inpackage.json
and includes it infiles
. i am not sure this is the right call- so if folks could weigh in that would be excellent.