Skip to content

Load dependencies from wasm-bindgen #116

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

Closed
wants to merge 1 commit into from

Conversation

alexcrichton
Copy link
Contributor

This commit updates wasm-pack to read the __wasm_pack_unstable section of
wasm binaries that it exeutes over. This section is then parsed and NPM
dependencies are extracted, if any, and inserted into the generated
package.json.

Closes #101

Copy link
Contributor

@mgattozzi mgattozzi left a comment

Choose a reason for hiding this comment

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

This looks pretty good to me! I'll need to dig into it a bit more rather than a cursory look at the code for sure though.

src/manifest.rs Outdated
},
}

println!("{:?}", wasm);
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this for debugging purposes?

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, indeed!

@ashleygwilliams
Copy link
Member

lol haha i was gonna implement this, but i guess i don't have to anymore, will review later today.

This commit updates `wasm-pack` to read the `__wasm_pack_unstable` section of
wasm binaries that it exeutes over. This section is then parsed and NPM
dependencies are extracted, if any, and inserted into the generated
`package.json`.

Closes rustwasm#101
@ashleygwilliams
Copy link
Member

blocked pending RFC on npm deps expression

@ashleygwilliams
Copy link
Member

i'm going to close this because it is very stale and we've decided that this is not how we want to load npm deps.

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.

3 participants