Skip to content

Commit

Permalink
Merge pull request #299 from katywings/fix-hot-url
Browse files Browse the repository at this point in the history
fix: always run vanilla vite hot css updates after vinxis custom updates
  • Loading branch information
nksaraf authored Jun 17, 2024
2 parents 00cb3d3 + 7b590e0 commit 00fcee4
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 00fcee4

Please sign in to comment.