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
Is your feature request related to a problem? Please describe. #40 supports CSS Modules through Code transformation. However, if users have some CSS Modules files and want to configure them through jestPreviewConfigure, it is not possible.
Describe the solution you'd like
Support CSS Modules though jestPreviewConfigure, externalCss option
Describe how should jest-preview implements this feature
Apply logic to transform CSS Modules from processCSSModules (
Since the logic to transform code and process externalCss are similar (Sass, CSS Modules). Can we extract to reuse the logic? (Likely Sass can, not sure if it's possible with CSS Modules)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
#40 supports CSS Modules through Code transformation. However, if users have some CSS Modules files and want to configure them through
jestPreviewConfigure
, it is not possible.Describe the solution you'd like
Support CSS Modules though
jestPreviewConfigure
,externalCss
optionDescribe how should jest-preview implements this feature
Apply logic to transform CSS Modules from
processCSSModules
(jest-preview/src/transform.ts
Lines 89 to 120 in 4761899
jestPreviewConfigure
.Since the logic to transform code and process
externalCss
are similar (Sass, CSS Modules). Can we extract to reuse the logic? (Likely Sass can, not sure if it's possible with CSS Modules)The text was updated successfully, but these errors were encountered: