Skip to content

Commit

Permalink
fix wasm replacement breaking when multiple wasm modules are present (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz authored May 23, 2023
1 parent 97c8739 commit e4a3ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildApplication/generateFunctionsMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ async function extractAndFixWasmRequires(
`${identifier}.wasm`
),
});
const originalWasmModuleRequire = updatedContents.slice(start, end);
const originalWasmModuleRequire = originalFileContents.slice(start, end);
updatedContents = updatedContents.replace(
originalWasmModuleRequire,
`import ${identifier} from "${'../'.repeat(
Expand Down

0 comments on commit e4a3ee4

Please sign in to comment.