Skip to content

Commit

Permalink
fix(node-swc): Fix definition of JSXOpeningElement (#1608)
Browse files Browse the repository at this point in the history
Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
  • Loading branch information
vemoo and kdy1 authored May 6, 2021
1 parent 82ef06a commit 304b57c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node-swc/src/Visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ export default class Visitor {
visitJSXOpeningElement(n: JSXOpeningElement): JSXOpeningElement {
n.name = this.visitJSXElementName(n.name);
n.typeArguments = this.visitTsTypeParameterInstantiation(n.typeArguments);
n.attrs = this.visitJSXAttributes(n.attrs);
n.attributes = this.visitJSXAttributes(n.attributes);
return n;
}

Expand Down
2 changes: 1 addition & 1 deletion node-swc/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ export interface JSXOpeningElement extends Node, HasSpan {

name: JSXElementName;

attrs?: JSXAttributeOrSpread[];
attributes?: JSXAttributeOrSpread[];

selfClosing: boolean;

Expand Down

0 comments on commit 304b57c

Please sign in to comment.