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 linked Astro library style HMR #5460

Merged
merged 6 commits into from
Nov 30, 2022
Merged

Fix linked Astro library style HMR #5460

merged 6 commits into from
Nov 30, 2022

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Nov 23, 2022

Changes

Fix #5343

Remove /@fs when resolving third-party Astro component style virtual module. Ideally we can pass it through for Vite's resolver to resolve itself, but I found that still causes other HMR problems. So sticking with this simple fix for now.

We could revisit this again and fix as a whole, but this bug alone took quite a while to figure out that I almost considerd retiring so putting it aside for now.

Testing

Added new test in astro-component

Docs

N/A. bug fix

@changeset-bot
Copy link

changeset-bot bot commented Nov 23, 2022

🦋 Changeset detected

Latest commit: 5cd7b93

The changes in this PR will be included in the next version bump.

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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Nov 23, 2022
@bluwy bluwy marked this pull request as draft November 23, 2022 13:56
@bluwy
Copy link
Member Author

bluwy commented Nov 23, 2022

Windows strikes again. Marking as draft.

@bluwy bluwy marked this pull request as ready for review November 28, 2022 16:54
@matthewp matthewp merged commit 57888e0 into main Nov 30, 2022
@matthewp matthewp deleted the fix-astro-hmr-lib branch November 30, 2022 15:58
@astrobot-houston astrobot-houston mentioned this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stale CSS is displayed after modifying .astro files located outside of the project root
2 participants