--- bzip2.mjs.original 2022-11-12 12:45:21.255261049 -0600 +++ bzip2.mjs 2022-11-12 12:45:32.667224733 -0600 @@ -1064,6 +1064,10 @@ } } + if (typeof process !== 'undefined') { + wasmBinaryFile = wasmBinaryFile.slice(7); + } + // Otherwise, getBinary should be able to get it synchronously return Promise.resolve().then(function() { return getBinary(wasmBinaryFile); }); }