Skip to content

[heft-sass] Ensure valid d.ts output for non-identifier classnames#5233

Merged
dmichon-msft merged 1 commit intomicrosoft:mainfrom
dmichon-msft:sass-quote-classes
May 14, 2025
Merged

[heft-sass] Ensure valid d.ts output for non-identifier classnames#5233
dmichon-msft merged 1 commit intomicrosoft:mainfrom
dmichon-msft:sass-quote-classes

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Fix an issue where heft-sass-plugin would produce invalid .d.ts outputs for classnames that contain non-identifier characters.

Details

If exportAsDefault: false and a classname contains invalid identifier characters, this will throw. For exportAsDefault: true, the classnames will be quoted and JSON escaped.

How it was tested

Added a classname with - into heft-sass-test.

Impacted documentation

None in particular.

@dmichon-msft dmichon-msft enabled auto-merge (squash) May 14, 2025 20:01
@dmichon-msft dmichon-msft merged commit 5e0aaef into microsoft:main May 14, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage May 14, 2025
@dmichon-msft dmichon-msft deleted the sass-quote-classes branch May 14, 2025 21:02
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.

2 participants