diff --git a/.changeset/metal-elephants-worry.md b/.changeset/metal-elephants-worry.md new file mode 100644 index 00000000..d16bec09 --- /dev/null +++ b/.changeset/metal-elephants-worry.md @@ -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`. diff --git a/packages/vinxi/lib/plugins/css.js b/packages/vinxi/lib/plugins/css.js index 7830bb1f..9d01557e 100644 --- a/packages/vinxi/lib/plugins/css.js +++ b/packages/vinxi/lib/plugins/css.js @@ -27,9 +27,6 @@ export function css() { contents: code, }, }); - return file.endsWith(".module.css") - ? undefined - : []; } }, transform(code, id) {