Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRA 5.xx - HMR/Fast-Refresh for any .js also triggers re-compling of unnecessay style/sass assets. #12726

Closed
meetajhu opened this issue Sep 13, 2022 · 1 comment

Comments

@meetajhu
Copy link

meetajhu commented Sep 13, 2022

This problem never occurred in CRA v4. When i do some changes in .js,.jsx files it is supposed to only use the babel-loader instead its also re-compiling the styles unnecessary every time(observe the image below).

image

Environment

Node v16.16.0
npm v8.xx

Expected behavior

Only a *.css, *.scss should trigger recompiling of styles. And js change should trigger babel.

Note: Using style.modules.scss and tailwind 3.x as well.

@meetajhu
Copy link
Author

meetajhu commented Sep 14, 2022

Please delete this issue. I think its because of tailwind JIT compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant