Skip to content
Discussion options

You must be logged in to vote

You’re likely running into a DevTools limitation rather than a webpack-specific issue.

When type: "asset/inline" is used, webpack embeds the .wasm file directly into the JavaScript bundle as a base64 data URI. For a ~55MB WebAssembly file this can significantly increase the size of the generated script.

When Chrome DevTools opens, it tries to parse and analyze the entire bundle for debugging, source mapping, and inspection. A very large inlined asset can make DevTools extremely slow or unstable because it has to process that huge encoded string.

A better approach is usually to load WebAssembly as a separate asset instead of inlining it. For example:

{
  test: /\.wasm$/,
  type: "asset/res…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@enver-dedalus
Comment options

Answer selected by enver-dedalus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants