We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Newer versions of wasm-pack seem to need the 'target' set to 'web', or webpack fails to load the WASM module complaining about 'no loader available'.
The fix was to simply pass that option into the WasmPackPlugin in the webpack.config.js file.
plugins: [ new WasmPackPlugin({ crateDirectory: __dirname, extraArgs: "--target web" }), ]
webpack/webpack#14087 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Newer versions of wasm-pack seem to need the 'target' set to 'web', or webpack fails to load the WASM module complaining about 'no loader available'.
The fix was to simply pass that option into the WasmPackPlugin in the webpack.config.js file.
plugins: [
new WasmPackPlugin({
crateDirectory: __dirname,
extraArgs: "--target web"
}),
]
webpack/webpack#14087 (comment)
The text was updated successfully, but these errors were encountered: