We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import.meta.x
1 parent 45ccef2 commit 8b73a15Copy full SHA for 8b73a15
packages/utils/src/isStyleFile.ts
@@ -16,5 +16,5 @@ export const isStyleFile = ({
16
filename?: string;
17
ext?: string;
18
}) => {
19
- return AUTO_CSS_MODULE_EXTS.includes(ext || extname(filename!));
+ return filename && AUTO_CSS_MODULE_EXTS.includes(ext || extname(filename));
20
};
0 commit comments