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

Webpack slowed down on nontrivial wasm code #128

Open
johnpmayer opened this issue Mar 4, 2022 · 0 comments
Open

Webpack slowed down on nontrivial wasm code #128

johnpmayer opened this issue Mar 4, 2022 · 0 comments

Comments

@johnpmayer
Copy link

johnpmayer commented Mar 4, 2022

Seems similar to rustwasm/wasm-bindgen#973

I'm generating 50MB of wasm (using the bevy game engine, so this really doesn't feel crazy) and webpack slows to 90 seconds when I import it.

I'm probably going to use web or no-module; and import directly using an HtmlWebpackPlugin template, but am wondering:

  • how should I get the files from pkg into dist
  • if this can be made a first-class configuration option of the plugin, namely, excluding the wasm from the bundler somehow
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

No branches or pull requests

1 participant