From d142489560b3aa1752b9cf5eaf8519ebc4df0771 Mon Sep 17 00:00:00 2001 From: void_malex Date: Fri, 16 Aug 2024 17:53:22 +0100 Subject: [PATCH] pass filename option to avoid build error on component rules lookup --- packages/compat/src/template-tag-codemod.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/compat/src/template-tag-codemod.ts b/packages/compat/src/template-tag-codemod.ts index c930a1792..77a6e280d 100644 --- a/packages/compat/src/template-tag-codemod.ts +++ b/packages/compat/src/template-tag-codemod.ts @@ -98,6 +98,7 @@ class TemplateTagCodemodPlugin extends Plugin { }, ], ], + filename: current_file, })?.code ?? ''; const import_bucket: NodePath[] = []; let transformed_template_value = '';