-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: Windows client-side script reloads on dev server #4645
Conversation
🦋 Changeset detectedLatest commit: 5329097 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
de2f862
to
6788cf3
Compare
Well, it looks like the hotfix @natemoo-re and I discovered doesn't work outside our local test setup. I was already confused why our fix would work anyways, so I'm tabling this effort for now until @bluwy (or another Vite maintainer) is free. Pretty stumped on this one! |
Alright, tossing over to @matthewp to see what happens! Here's everything I tried (that didn't work):
I also have some miscellaneous "woah really?" moments:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll pretend to understand why this solves the problem with... a comment approval ✅
@bholmesdev It's because Vite determines which modules to invalidate based on which files they belong to. It determines this because it expects resolveId to return the file path. In this case we have to make sure that it begins with |
Changes
/
. Before you ask: no,/@fs/
and/@id
/ don't work 😓ctx.modules
Testing
TODO: e2e test
Docs
N/A