Skip to content

Commit 66c0de6

Browse files
kamuigajus
authored andcommitted
fix: don't require the syntax config in filetypes, so plugins can be run without requiring a syntax (#110)
1 parent b3f53f5 commit 66c0de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/requireCssModule.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const getFiletypeOptions = (cssSourceFilePath: string, filetypes: {[key: string]
3232
};
3333

3434
const getSyntax = (filetypeOptions: FileTypeOptions): ?(Function|Object) => {
35-
if (!filetypeOptions) {
35+
if (!filetypeOptions || !filetypeOptions.syntax) {
3636
return null;
3737
}
3838

0 commit comments

Comments
 (0)