Skip to content

Commit

Permalink
fix: address spec comments
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyexeption committed Jan 24, 2024
1 parent 0949f36 commit 70ceeb9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Creates a class transformer function that maps matches from a module object
* @param styles Object map of classes and their scoped name, normally from a CSS Module import
*/
export default function createClassTransformer(styles: any) {
return (classes: string) => {
return classes
.split(' ')
.map(className => styles[className] || className)
.join(' ');
}
}

This file was deleted.

0 comments on commit 70ceeb9

Please sign in to comment.