diff --git a/.changeset/sour-suits-fail.md b/.changeset/sour-suits-fail.md new file mode 100644 index 00000000..deca0e65 --- /dev/null +++ b/.changeset/sour-suits-fail.md @@ -0,0 +1,5 @@ +--- +"vinxi": patch +--- + +fix missing null check on css exclusion diff --git a/packages/vinxi/lib/manifest/collect-styles.js b/packages/vinxi/lib/manifest/collect-styles.js index d86f74c8..64efce59 100644 --- a/packages/vinxi/lib/manifest/collect-styles.js +++ b/packages/vinxi/lib/manifest/collect-styles.js @@ -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; }