Skip to content

Commit

Permalink
fix missing null check on css exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Jul 10, 2024
1 parent 2dd0c5f commit c745546
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sour-suits-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vinxi": patch
---

fix missing null check on css exclusion
2 changes: 1 addition & 1 deletion packages/vinxi/lib/manifest/collect-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function findDeps(vite, node, deps, ssr) {

if (
node.url.endsWith(".css") ||
node.transformResult?.map?.sourcesContent.some((code) => code.match(IGNORE_COMMENT_REGEXP))
node.transformResult?.map?.sourcesContent?.some((code) => code.match(IGNORE_COMMENT_REGEXP))
) {
return;
}
Expand Down

0 comments on commit c745546

Please sign in to comment.