stackblitz / webcontainer-core

Dev environments. In your web app.
https://webcontainers.io
MIT License
3.93k stars 172 forks source link

Preview errors #1561

Open xKevIsDev opened 3 weeks ago

xKevIsDev commented 3 weeks ago

Currently when using webcontainer we use webcontainer.on('preview-message') to capture errors that occur in the preview instance, this catches most errors that occur although doesn't seem to pick up failed to resolve import errors. If we could include a different type of event in preview-listener to catch these this would be ideal and definitely has a use case.