unstable_vanillaExtract
does not update via HMR when using unstable_dev
#5642
Labels
unstable_vanillaExtract
does not update via HMR when using unstable_dev
#5642
What version of Remix are you using?
1.14.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
We're already using
unstable_dev
andunstable_vanillaExtract
for our project. When we attempted to upgrade to Remix v1.14.0, we found the new HMR behaviour applies to React components but not to CSS generated through Vanilla Extract. I don't know if this applies to@remix-run/css-bundle
in general or is specific to Vanilla Extract.I've created a minimal reproduction.
npm run dev
app/routes/index.tsx
fromHello
toGoodbye
app/routes/index.css.ts
fromblue
tored
Log messages are visible in the browser window. The app has seen the
.css.ts
file has changed but it doesn't apply the update.Expected Behavior
New styles should apply without a browser refresh.
Actual Behavior
New styles do not apply until a browser refresh.
The text was updated successfully, but these errors were encountered: