-
Notifications
You must be signed in to change notification settings - Fork 19
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
Vite updates & invalidation fixes #972
Conversation
- Invalidating a file invalidates all of it's selectors _AND_ values now - When a file is re-walked all selector and value dependencies are removed, so they can be re-added by the walk with the latest information
Handling a few edge cases
🦋 Changeset detectedLatest commit: 811f50b The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 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 |
✅ Deploy Preview for m-css ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #972 +/- ##
=======================================
Coverage 99.72% 99.72%
=======================================
Files 37 37
Lines 1441 1452 +11
Branches 237 240 +3
=======================================
+ Hits 1437 1448 +11
Misses 4 4
☔ View full report in Codecov by Sentry. |
Was previously doing all the files _upstream_ of the changed file, but the correct direction is **downstream**.
It happens when a file is re-walked now, instead of per-selector during addSelector. This approach ensures that a) @value are cleared out and b) removed selectors are also cleared out
Description
Working to make vite reloading more reliable, especially around dependencies. Also fixing an issue that could leave stale compositions around when re-running the processor against invalidated files.
Motivation and Context
vite reload behavior has been extremely annoying at my day job.
How Has This Been Tested?
Manual testing only so far.
Types of changes
Checklist: