-
Notifications
You must be signed in to change notification settings - Fork 418
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
webpack-warning about dynamic require-expression #822
Comments
This is really an issue with Webpack, not wasm-pack or getrandom. There aren't any great solutions: you can use the Or maybe getrandom could use this solution, which actually seems like the most viable option. |
This has been fixed in getrandom, thanks for the report! |
🐛 Bug description
I'm getting the following warning from webpack:
The problem is this line:
🤔 Expected Behavior
There should be no warning I guess.
👟 Steps to reproduce
Command I used to build my crate:
My
Cargo.toml
:Rust file:
The issue is somewhere related to getrandom as it works (e.g. the dynamic require disappears) when I remove the dependency / related code.
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version:
wasm-pack 0.9.1
rustc version:
rustc 1.41.0 (5e1a79984 2020-01-27)
The text was updated successfully, but these errors were encountered: