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

fix: reject preload promise if link fails to load #2027

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

Rich-Harris
Copy link
Contributor

Addresses part of #2009 — if a <link> fails to load (likely because of a network error, or because the developer misconfigured base), __vitePreload promises will reject.

Wasn't sure where or how to add tests for something like this, so I didn't — hope that's okay.

@yyx990803 yyx990803 merged commit f74d65d into vitejs:main Feb 15, 2021
@Rich-Harris Rich-Harris deleted the reject-preload-on-link-error branch February 15, 2021 19:58
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