Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jan 12, 2024
1 parent e40e6b2 commit 207fa1c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/babel-plugin-jsx/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export const transformJSXMemberExpression = (
path.get('object') as NodePath<t.JSXMemberExpression>
)
: t.isJSXIdentifier(objectPath)
? t.identifier(objectPath.name)
: t.nullLiteral();
? t.identifier(objectPath.name)
: t.nullLiteral();
const transformedProperty = t.identifier(propertyPath.name);
return t.memberExpression(transformedObject, transformedProperty);
};
Expand All @@ -106,12 +106,12 @@ export const getTag = (
return name === FRAGMENT
? createIdentifier(state, FRAGMENT)
: path.scope.hasBinding(name)
? t.identifier(name)
: state.opts.isCustomElement?.(name)
? t.stringLiteral(name)
: t.callExpression(createIdentifier(state, 'resolveComponent'), [
t.stringLiteral(name),
]);
? t.identifier(name)
: state.opts.isCustomElement?.(name)
? t.stringLiteral(name)
: t.callExpression(createIdentifier(state, 'resolveComponent'), [
t.stringLiteral(name),
]);
}

return t.stringLiteral(name);
Expand Down

0 comments on commit 207fa1c

Please sign in to comment.