We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3f53f5 commit 66c0de6Copy full SHA for 66c0de6
src/requireCssModule.js
@@ -32,7 +32,7 @@ const getFiletypeOptions = (cssSourceFilePath: string, filetypes: {[key: string]
32
};
33
34
const getSyntax = (filetypeOptions: FileTypeOptions): ?(Function|Object) => {
35
- if (!filetypeOptions) {
+ if (!filetypeOptions || !filetypeOptions.syntax) {
36
return null;
37
}
38
0 commit comments