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 __VITE_PRELOAD__ regression in vite 5.3 #98

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

cyanzhong
Copy link
Contributor

The "__VITE_PRELOAD__" replacement no longer works in vite 5.3 because of this change: vitejs/vite#16562

The reason is that the produced marker is just __VITE_PRELOAD__, no quotes.

I updated the regex to support both versions, by taking the quote as an optional pattern.

Tested both vite 5.3 and vite 5.2.12, working fine.

@cyanzhong
Copy link
Contributor Author

cyanzhong commented Jun 14, 2024

Hey @richardtallent could you please help review and tag a release? Thank you!

Feel free to make modifications, like just removing the quote, I am fine with that.

@richardtallent richardtallent merged commit b74266e into richardtallent:main Jun 20, 2024
@richardtallent
Copy link
Owner

Done

@cyanzhong
Copy link
Contributor Author

Thank you!

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