In my tests when I use any compression format ( brotli and gzip ) with WebAssembly Streaming it leds to this error : “wasm validation error: at offset 4”, Only with disabled compression it seems OK but the file sizes will be the problem in this way …
Some error logs :
falling back to ArrayBuffer instantiation UnityLoader.js:4:11163
printErr http://localhost:/WebTest/Build/UnityLoader.js:4
doNativeWasm blob:http://localhost:/*********************
failed to asynchronously prepare wasm: CompileError: wasm validation error: at offset 4: failed to match magic number UnityLoader.js:4:11163
printErr http://localhost:/WebTest/Build/UnityLoader.js:4
instantiateArrayBuffer blob:http://localhost:/*********************
CompileError: “wasm validation error: at offset 4: failed to match magic number” UnityLoader.js:4:11163
printErr http://localhost:/WebTest/Build/UnityLoader.js:4
onAbort http://localhost:/WebTest/Build/UnityLoader.js:4
abort blob:http://localhost:/****************
instantiateArrayBuffer blob:http://localhost:/****************
uncaught exception: abort({}) at jsStackTrace@blob:http://localhost:/:22295 stackTrace@blob:http://localhost:/:22466 onAbort@http://localhost:/WebTest/Build/UnityLoader.js:4:11065 abort@blob:http://localhost:/:430427 instantiateArrayBuffer/<@blob:http://localhost:/*****:31268