diff --git a/node-swc/src/Visitor.ts b/node-swc/src/Visitor.ts index cd4ff79b69a5..245fdfdfe4ad 100644 --- a/node-swc/src/Visitor.ts +++ b/node-swc/src/Visitor.ts @@ -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; } diff --git a/node-swc/src/types.ts b/node-swc/src/types.ts index 618f0d3fb179..06019c397b04 100644 --- a/node-swc/src/types.ts +++ b/node-swc/src/types.ts @@ -1067,7 +1067,7 @@ export interface JSXOpeningElement extends Node, HasSpan { name: JSXElementName; - attrs?: JSXAttributeOrSpread[]; + attributes?: JSXAttributeOrSpread[]; selfClosing: boolean;