Skip to content

Conversation

@OEvgeny
Copy link
Contributor

@OEvgeny OEvgeny commented May 21, 2025

Description

This applies sanitization to CSS module class names, so they don't fail build

Linked Issues

#31

Additional context

As discussed in the linked issue the approach similar to the JSON plugin is taken.

We export classes with their original names, but avoid any syntax errors.

In addition the default export was added containing the classes mapping object.

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sxzz sxzz merged commit 2f855ee into unplugin:main May 22, 2025
3 of 9 checks passed
@OEvgeny OEvgeny deleted the fix-css-modules branch May 22, 2025 05:34
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.

2 participants