fix: use the proper url to walk through modules during dev style coll… #312
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Is
We get flashes of unstyled content for any included css in dev.
Should
There should be no foucs.
Background
The happenings actually are much more complicated than the fix might suggest 🥴. We had a series of unfortunate events with the changes from the last release:
staticImportedUrls
on the parent node, instead of the current node of the for-loopSince the logic for detecting dynamically imported modules was flawed from the beginning, I removed it which fixed 2a. Secondly I fixed the line that resulted in 2b.
Follow ups
Since this undoes the changes from #310 we need to discuss a better way to identify and exclude dynamically imported modules in the style collection - (..personally I am not a fan of excluding them and the resulting foucs, but if thats really the goal, then we should atleast do it properly 😅🙈)
Videos
Before fix
2024-06-19-08.47.25.144410757-c.mp4
After fix
2024-06-19-16.17.16.662965647-c.mp4