Skip to content

Commit

Permalink
Fix empty CSS files
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles committed May 1, 2022
1 parent 5c17c89 commit 340dc28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function vanillaExtractPlugin({ identifiers }: Options = {}): Plugin {
const cssFileId = id.slice(config.root.length + 1);
const css = cssMap.get(cssFileId);

if (!css) {
if (typeof css !== 'string') {
return;
}

Expand Down

0 comments on commit 340dc28

Please sign in to comment.