Closed dariocravero closed 2 years ago
Only the new JS asset generated by the CSS module is sent over to the browser, not the actual CSS change. (There should be an update message with both the JS and CSS asset)
Regression of https://github.com/parcel-bundler/parcel/pull/6986
I'm facing the same issue. Here is my repo: https://github.com/salatielq/reactts-starter
run npm install
then npm run dev
to start
Hello, any news on this ? Can i help in some way ?
Running into the same issue with a vanilla CSS file and a vanilla web app (not React or any other framework).
Experiencing this issue for both CSS and SCSS modules. Also need to refresh the browser. Only styles are affected. Changes to the JSX are immediately visible as expected.
+1 still experiencing this issue unfortunately. Using Parcel 2.0.1
@isjackwild Try parcel@2.0.0-nightly.961
, it is working there
Parcel 2.0.1 was released 2 months ago
@esfxra thank you so much for your quick response, i will try this — I was just using the latest NPM release
For everyone waiting the version 2.1.0 was released yesterday with this fix. I've tested on my project and is working properly 🚀
Thanks ! 👏
🐛 bug report
CSS changes made into a
.module.css
file aren't hot reloaded into the browser. CSS changes in a.css
file are reloaded fine.🎛 Configuration (.babelrc, package.json, cli command)
Nothing special. The code is in https://github.com/dariocravero/viewstestparcel.
🤔 Expected Behavior
When I change a CSS property's value in
src/App/view.module.css
, e.g.,.Text's
classcolor
it should update in the browser.😯 Current Behavior
It doesn't update. If I refresh the page it works.
No error.
💁 Possible Solution
🔦 Context
Get CSS changes to show in the app without having to reload.
💻 Code Sample
https://github.com/dariocravero/viewstestparcel
yarn start
starts parcel. The entrypoint issrc/index.html
that loadssrc/index.js
. The view loading the CSS issrc/App/view.js
and the CSS modules file issrc/App/view.module.css
.🌍 Your Environment
Thanks!