Skip to content

Commit

Permalink
format (prettier)
Browse files Browse the repository at this point in the history
  • Loading branch information
xeho91 committed Sep 5, 2024
1 parent c2c49d2 commit 4a5fe10
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/compiler/pre-transform/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,15 @@ export async function codemodLegacyNodes(params: Params): Promise<Root> {
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);
Expand Down

0 comments on commit 4a5fe10

Please sign in to comment.