From 4a5fe107b8ec669d79b22540dbc8ba588f2f02b3 Mon Sep 17 00:00:00 2001 From: Mateusz Kadlubowski Date: Thu, 5 Sep 2024 11:54:42 +0800 Subject: [PATCH] format (prettier) --- src/compiler/pre-transform/index.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/compiler/pre-transform/index.ts b/src/compiler/pre-transform/index.ts index a41add6..ec23fd7 100644 --- a/src/compiler/pre-transform/index.ts +++ b/src/compiler/pre-transform/index.ts @@ -104,13 +104,15 @@ export async function codemodLegacyNodes(params: Params): Promise { const { declaration } = node; const { state } = context; - if (!( - declaration && - declaration.type === 'VariableDeclaration' && - declaration.declarations[0].type === 'VariableDeclarator' && - declaration.declarations[0].id.type === 'Identifier' && - declaration.declarations[0].id.name === 'meta' - )) { + if ( + !( + declaration && + declaration.type === 'VariableDeclaration' && + declaration.declarations[0].type === 'VariableDeclarator' && + declaration.declarations[0].id.type === 'Identifier' && + declaration.declarations[0].id.name === 'meta' + ) + ) { return; } const transformed = transformExportMetaToDefineMeta(node);