Skip to content

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

Closed
@meetajhu

Description

@meetajhu

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions