diff --git a/src/messageTransformer.ts b/src/messageTransformer.ts index 789f8dd12d..c45e1bcbcc 100644 --- a/src/messageTransformer.ts +++ b/src/messageTransformer.ts @@ -28,7 +28,7 @@ export const messageTransformer = (): ts.TransformerFactory => { const visitor = (node: ts.Node): ts.VisitResult => { if (ts.isExpressionStatement(node) && node.getText().includes('importMessagesDirectory')) { // importMessagesDirectory now happens at compile, not in runtime - // returning undefined removes the node + // so we can remove it return ts.factory.createEmptyStatement(); } if (