Skip to content

feat: listen to napi-rs-worker-error and display it#44

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/add-napi-rs-worker-error-listener
Draft

feat: listen to napi-rs-worker-error and display it#44
Copilot wants to merge 1 commit intomainfrom
copilot/add-napi-rs-worker-error-listener

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Summary

Adds a listener for the napi-rs-worker-error custom event dispatched on window by the napi-rs WASM worker, and shows the error in the output panel.

Changes

  • app/components/OutputContainer.vue:
    • Added a napiWorkerError ref to store the worker error detail
    • Used useEventListener(globalThis, 'napi-rs-worker-error', ...) to capture the event
    • Clears the error whenever a new build starts (status → 'pending')
    • Added a new error block in the template that displays the error message and stack trace using the same error-output styling as bundler errors

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for rolldown-repl ready!

Name Link
🔨 Latest commit 480a0bd
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-repl/deploys/69cb3e882338540008d705f2
😎 Deploy Preview https://deploy-preview-44--rolldown-repl.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants