diff --git a/src/messageTransformer.ts b/src/messageTransformer.ts index dcc2563f6..8e055cee4 100644 --- a/src/messageTransformer.ts +++ b/src/messageTransformer.ts @@ -19,7 +19,7 @@ export const messageTransformer = (): ts.TransformerFactory => { const transformerFactory: ts.TransformerFactory = (context) => (sourceFile) => { if ( // if there are no messages, no transformation is needed - // dummy comment + // dummy comment 2 !sourceFile.statements.some((i) => ts.isImportDeclaration(i) && i.importClause?.getText().includes('Messages')) || // don't transform the transformer itself sourceFile.fileName.includes('messageTransformer.ts')