-
-
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
feat!: upgrade vite to v6 #4504
Conversation
} | ||
return null | ||
}, | ||
hotUpdate(ctx) { |
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.
hotUpdate
function is called for create
/update
/delete
events.
for (const id in idToLoaderModulesMap) { | ||
const { watch } = idToLoaderModulesMap[id]! | ||
if (watch && isMatch(file, watch)) { | ||
ctx.modules.push(server.moduleGraph.getModuleById(id)!) | ||
modules.push(this.environment.moduleGraph.getModuleById(id)!) | ||
} | ||
} |
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.
The whole _importGlobMap
part existed in transform
hook is handled here. The affirmed
/ negated
part is replaced with a simple isMatch
because that's more aligned with the glob
call.
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.
Thanks a lot! 💚
Description
Upgrade Vite to v6
I added a fix for data loader hmr mentioned in #4467 (comment) as well.
Linked Issues
closes #4494
closes #4467
Additional Context
Tip
The author of this PR can publish a preview release by commenting
/publish
below.