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

Restore import tracking from Sprockets::SassProcessor so that edits to secondary imports are tracked #29

Merged

Conversation

botandrose
Copy link
Contributor

Hi folks! Thanks for dartsass-sprockets!

We ran into the issue of secondary imports not being tracked after converting our stylesheets to @use. Restoring the import tracking from the SassProcessor superclass resolved the issue, and perhaps closes #26 too. @nimmolo can you try this branch and verify?

@johnnyshields
Copy link
Contributor

johnnyshields commented Dec 29, 2024

@botandrose can you please add some tests for this?

@botandrose
Copy link
Contributor Author

@johnnyshields Sure, I'll see what I can do. It'll be a bit tricky, because I think I'm going to have to mutate files on the filesystem to verify the behavior from the outside, like the existing tests are doing. But, I'm sure I can come up with something.

@botandrose
Copy link
Contributor Author

@johnnyshields Taking a look at this now, but FYI master is red.

@botandrose botandrose force-pushed the fix-secondary-import-tracking branch from a7ec979 to 700c840 Compare December 30, 2024 17:10
@nimmolo
Copy link

nimmolo commented Dec 30, 2024

@botandrose THANK YOU!!! This restores import tracking for me.

WOW. I totally forgot what live reloading with CSS changes was like!
Sorry that took me awhile to respond.

@botandrose
Copy link
Contributor Author

@nimmolo That's great to hear!

@johnnyshields Okay, I force pushed so that the first commit is a failing test, and the second commit makes it green. At least on my machine. CI isn't running on the PR anymore for some reason, and master is red anyways, but hopefully this is enough for you to merge.

@johnnyshields johnnyshields merged commit dc8e3b2 into tablecheck:master Jan 2, 2025
2 of 51 checks passed
@johnnyshields
Copy link
Contributor

Awesome, thanks!

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.

dartsass-sprockets not noticing changes in secondary @import .scss files, with deprecation warnings
4 participants