Skip to content

[heft-sass] Ignore SASS partials in module classifier#5225

Merged
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:sass-partials
May 13, 2025
Merged

[heft-sass] Ignore SASS partials in module classifier#5225
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:sass-partials

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Fix an issue where the heft-sass-plugin would throw errors if it encountered a SASS partial that it could not identify as being a global or CSS module.

Details

Overrides the classifier to always treat SASS partials as "not modules" since they cannot be directly imported from script.

How it was tested

Updated heft-sass-test to require files to be marked as .module.scss or .global.scss and omitted the specifier on partials. Verified that the test succeeds despite the partials not specifying a type, since they aren't ambiguous.

Impacted documentation

Possibly the file extension classifier? Doesn't affect the output behavior, only removes irrelevant errors.

@dmichon-msft dmichon-msft enabled auto-merge (squash) May 13, 2025 01:04
@dmichon-msft dmichon-msft merged commit 8c31995 into microsoft:main May 13, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage May 13, 2025
@dmichon-msft dmichon-msft deleted the sass-partials branch May 13, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

4 participants