Closed edivados closed 2 months ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
Someone is attempting to deploy a commit to a Personal Account owned by @nksaraf on Vercel.
@nksaraf first needs to authorize it.
Latest commit: 3b0e0d51e50cdd3f50e6ffe59be395342cc1fd8c
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
There is an issue with hmr not working as expected for css modules. https://github.com/solidjs/solid-start/issues/1400
Problem
CSS Module
Edit the css module and the styling on the counter button will disappear.
This Vite plugin sends custom hmr events to update inlined css. When updating a css module the generated classes change and don't match anymore with already rendered components.
https://github.com/nksaraf/vinxi/blob/4bddafe1b7e873ef691392ebaf7ea4f4875e39d4/packages/vinxi/lib/plugins/css.js#L22-L30
Solution
Currently I see two ways to handle css modules.