Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Nov 6, 2025

Summary

fix wasm file not found error
image

TODO: below error should be fixed after bump rspack 1.6.2+ web-infra-dev/rspack#12068
image

Related Links

#676

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 6, 2025 11:51
@netlify
Copy link

netlify bot commented Nov 6, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 9783b6a
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/692004a9ccd093000825863d
😎 Deploy Preview https://deploy-preview-677--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for WebAssembly (WASM) modules in Rstest by implementing a custom WASM file loader and integrating it with the runtime module system.

  • Adds readWasmFile function to load WASM files from asset files
  • Modifies the async_wasm_loading runtime module to use the custom WASM loader
  • Prevents WASM files from being externalized during bundling
  • Adds an E2E test for WASM factorial function

Reviewed Changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/core/src/runtime/worker/loadModule.ts Implements readWasmFile function to load WASM files from asset files
packages/core/src/core/plugins/mockRuntime.ts Patches async_wasm_loading runtime module to use custom WASM loader
packages/core/src/core/plugins/external.ts Excludes WASM files from externalization
packages/core/src/utils/error.ts Adds type guard for error.stack
e2e/wasm/index.test.ts E2E test for WASM module loading
e2e/wasm/src/factorial.wasm.d.ts TypeScript declaration for WASM module
e2e/wasm/src/factorial.wasm Binary WASM file for testing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@9aoy 9aoy changed the title fix: wasm load error fix: wasm file not found error Nov 21, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@9aoy 9aoy merged commit 2b4662b into main Nov 21, 2025
17 checks passed
@9aoy 9aoy deleted the load-wasm branch November 21, 2025 06:27
@9aoy 9aoy mentioned this pull request Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants