Skip to content

Commit

Permalink
feat: Successfully support CSS Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh95 committed Apr 13, 2022
1 parent c0305ec commit cf4f0b1
Show file tree
Hide file tree
Showing 4 changed files with 289 additions and 115 deletions.
2 changes: 1 addition & 1 deletion config/jest/cssTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { processCss, processCSSModules } = require('../../dist/index');
module.exports = {
process(src, filename) {
if (filename.endsWith('.module.css')) {
return await processCSSModules(src, filename);
return processCSSModules(src, filename);
}
return processCss(src, filename);
},
Expand Down
Loading

0 comments on commit cf4f0b1

Please sign in to comment.