Skip to content

Vite does not revalidate inline scripts on page reloads #18685

Answered by hi-ogawa
Kapelianovych asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the concise repro. From a quick look, this could be a bug. I see plugin's transformIndexHtml hook is called for each html request but corresponding js proxy module isn't always invalidated (though it looks like they are invalidated after editing html?).
Probably it's worth raising an issue if you don't see one already.

EDIT: maybe this will fix it #18696

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Kapelianovych
Comment options

@hi-ogawa
Comment options

Answer selected by Kapelianovych
@Kapelianovych
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants