Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WASM bundles fail when loaded via `file://` URLs #7918
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
Running will require a recent Rust nightly build, but I'm happy to add the bundle files if necessary to skip that step.
What is the expected behavior?
Please note that I can specifically reproduce the correct behavior by snipping out the
Other relevant information:
Alright, some updates after I spent more time looking at this: the actual URL request goes to ".wasm", so adding checks for "./" or "file://" don't fix this specific issue (though may not be a bad idea in general). Is this something that should potentially have a config value added instead, where we can disable streaming load?
I'm admittedly totally unfamiliar with
I tested this solution in the webpack output and it solved my problem in Electron. If anyone with more (any) webpack contribution experience would like to fix this via PR I would be forever grateful, otherwise I may be able to make time to take a crack at it.