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

[plugin-svelte] disable svelte-hmr conflicting overlay #2022

Merged
merged 1 commit into from
Dec 17, 2020

Conversation

rixo
Copy link
Contributor

@rixo rixo commented Dec 16, 2020

Changes

svelte-hmr implements its own error overlay, and it can conflict (be displayed at the same time) as Snowpack's one. Also, both overlays don't have the same design, so this seems pretty weird to keep both.

This PR opts out of svelte-hmr overlay to only keep Snowpack's one.

Testing

Manual testing: errors that triggered svelte-hmr overlay before the change don't trigger it anymore after the change.

Docs

I think the current double-overlay situation should be considered a bug that this change is fixing.

@vercel
Copy link

vercel bot commented Dec 16, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/15k17012j
✅ Preview: https://snowpack-git-svelte-hmr-no-overlay.pikapkg.vercel.app

@FredKSchott
Copy link
Owner

LGTM! Thanks @rixo

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