astroturfcss / astroturf

Better Styling through Compiling: CSS-in-JS for those that want it all.
https://astroturfcss.github.io/astroturf/
MIT License
2.28k stars 60 forks source link

prevents js updates with mini-css-extract-plugin and HMR #677

Open cahnory opened 3 years ago

cahnory commented 3 years ago

First, I'm not sure that astroturf is the root of the issue or just a trigger as both Astroturf and mini-css-extract-plugin seem to work independently. I can make a repro repos but as I know not all known issue with v1 are listed, I didn't want to make it before I'm sure it's a new one.

Actual Behavior

My React component is not always updated by HMR when the file contains astroturf css.

Expected behavior

My React component should always be updated by HMR.

Observations