You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom identifier function throws an error, when trying to use css class with hyphens inside.
constwithVanillaExtract=createVanillaExtractPlugin({identifiers: ({ hash })=>`prefix-${hash}`//will throw an Error});
It seems the regex detects the false negative result.
// packages\css\src\identifier.tsif(!identifier.match(/^[A-Z_][0-9A-Z_]+$/i)){thrownewError(`Identifier function returned invalid indentifier: "${identifier}"`,);}
Describe the bug
Custom identifier function throws an error, when trying to use css class with hyphens inside.
It seems the regex detects the false negative result.
Reproduction
https://github.com/EvgenNoskov/vanilla-css-issue
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: