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

support no-modules #327

Merged
merged 5 commits into from
Sep 21, 2018
Merged

support no-modules #327

merged 5 commits into from
Sep 21, 2018

Conversation

ashleygwilliams
Copy link
Member

@ashleygwilliams ashleygwilliams commented Sep 21, 2018

fixes #317

note:

this PR puts the js file generated by bindgen in the browser key in package.json and includes it in files. i am not sure this is the right call- so if folks could weigh in that would be excellent.

@ashleygwilliams ashleygwilliams added the work in progress do not merge! label Sep 21, 2018
@ashleygwilliams ashleygwilliams changed the title [WIP] feat(bindgen): accept no-modules as target [WIP] support no-modules Sep 21, 2018
@ashleygwilliams ashleygwilliams added needs review and removed work in progress do not merge! labels Sep 21, 2018
@ashleygwilliams ashleygwilliams changed the title [WIP] support no-modules support no-modules Sep 21, 2018
@ashleygwilliams ashleygwilliams added this to the 0.5.0 milestone Sep 21, 2018
@ashleygwilliams ashleygwilliams merged commit 9f106ca into master Sep 21, 2018
@ashleygwilliams ashleygwilliams deleted the no-modules-plz-k-thx branch September 21, 2018 18:16
@@ -136,6 +136,7 @@ pub fn wasm_bindgen_build(
};
let target_arg = match target {
"nodejs" => "--nodejs",
"no-modules" => "--no-modules",
Copy link
Member

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

Copy link
Member Author

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

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

Successfully merging this pull request may close these issues.

--no-modules for wasm-pack
2 participants