Skip to content

fix: resolve path matching in hmr by using relative paths #564

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

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

ilyaliao
Copy link
Contributor

@ilyaliao ilyaliao commented Mar 25, 2025

Description

This PR fixes the Vite HMR path matching issue by converting absolute file paths to project-relative paths before comparing with glob patterns.

Before:

image

After:

SCR-20250325-ujqi

Linked Issues

fix #551, fix #553

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@antfu antfu merged commit 902d273 into unplugin:main Mar 26, 2025
2 checks passed
@ilyaliao ilyaliao deleted the fix/issue-551 branch March 26, 2025 15:56
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.

Regression in v0.19.0 Create a new file. The auto-imports.d.ts file not update
2 participants