Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More resilient preview script injection and postMessage communication #12

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

Andarist
Copy link
Member

@Andarist Andarist commented Feb 4, 2025

This PR:

  • switches to webcontainer.setPreviewScript API
  • improves type-safety of the postMessage communication with the preview's iframe

@Andarist Andarist requested a review from bhackett1024 February 4, 2025 14:52
Copy link

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@webcontainer/[email protected] 🔁 npm/@webcontainer/[email protected] None 0 173 kB stackblitz-devops
npm/[email protected] 🔁 npm/[email protected] None 0 22.9 MB typescript-bot

View full report↗︎

@Andarist Andarist merged commit aec72dd into main Feb 4, 2025
4 checks passed
@Andarist Andarist deleted the fix/preview-script-injection branch February 4, 2025 22:00
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