Skip to content

Commit 8b73a15

Browse files
authored
fix(esbuild): import.meta.x parsed name undefined (#10149)
1 parent 45ccef2 commit 8b73a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/src/isStyleFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ export const isStyleFile = ({
1616
filename?: string;
1717
ext?: string;
1818
}) => {
19-
return AUTO_CSS_MODULE_EXTS.includes(ext || extname(filename!));
19+
return filename && AUTO_CSS_MODULE_EXTS.includes(ext || extname(filename));
2020
};

0 commit comments

Comments
 (0)