Skip to content

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

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

Merged
merged 1 commit into from
May 14, 2025

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