Skip to content

Commit

Permalink
fix: always run vanilla vite hot css updates after vinxis custom updates
Browse files Browse the repository at this point in the history
  • Loading branch information
katywings committed May 25, 2024
1 parent dbf6e86 commit 7b590e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-elephants-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vinxi": patch
---

Vinxi now always runs Vite vanilla css hot updates, after Vinxis custom update logic. In particular this fixes hot updates for css files imported via `?url`.
3 changes: 0 additions & 3 deletions packages/vinxi/lib/plugins/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export function css() {
contents: code,
},
});
return file.endsWith(".module.css")
? undefined
: [];
}
},
transform(code, id) {
Expand Down

0 comments on commit 7b590e0

Please sign in to comment.