(options)
| 1 | export function shouldCssModules(options) { |
| 2 | const passedInOption = processCssmodulesArgument(options); |
| 3 | |
| 4 | // We should module when my-file.module.css or my-file.css |
| 5 | const moduleAllCss = passedInOption === true; |
| 6 | |
| 7 | // We should module when my-file.module.css |
| 8 | const allowOnlySuffixModule = passedInOption === null; |
| 9 | |
| 10 | return moduleAllCss || allowOnlySuffixModule; |
| 11 | } |
| 12 | |
| 13 | export function cssModulesConfig(options) { |
| 14 | const passedInOption = processCssmodulesArgument(options); |
no test coverage detected
searching dependent graphs…