diff --git a/src/parsers/typescript.ts b/src/parsers/typescript.ts index 37c76cb..40e723a 100644 --- a/src/parsers/typescript.ts +++ b/src/parsers/typescript.ts @@ -16,7 +16,7 @@ export default (twClassesSorter: TWClassesSorter) => ({ options ) - if (!twClassesSorter) { + if (!twClassesSorter || typeof options === 'undefined') { return ast }