Skip to content

Commit 9783b6a

Browse files
9aoyCopilot
andauthored
Update packages/core/src/core/plugins/mockRuntime.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c5bced5 commit 9783b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/core/plugins/mockRuntime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class MockRuntimeRspackPlugin {
5151

5252
if (module.name === 'async_wasm_loading') {
5353
const finalSource = module.source!.source.toString('utf-8').replace(
54-
// Sets the object configurable so that imported properties can be spied
54+
// Replace readFile with readWasmFile to use the custom WASM file loader
5555
// Hard coded in EJS template https://github.com/web-infra-dev/rspack/tree/7df875eb3ca3bb4bcb21836fdf4e6be1f38a057c/crates/rspack_plugin_wasm/src/runtime
5656
'readFile(',
5757
'readWasmFile(',

0 commit comments

Comments
 (0)