Skip to content

Commit

Permalink
fix: jsx attributes not getting source props
Browse files Browse the repository at this point in the history
  • Loading branch information
Atif Afzal committed Jan 28, 2019
1 parent 2283b90 commit df9b04c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-transform-jsx-source",
"version": "1.2.1",
"version": "1.3.1",
"description":
"Adds source file, line number and column number to JSX elements",
"main": "dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const transformer: ts.TransformerFactory<ts.SourceFile> = context => {
ts.createJsxAttributes(attributes),
);

return result;
return ts.visitEachChild(result, visitor, context);
}

case ts.SyntaxKind.JsxSelfClosingElement: {
Expand All @@ -88,7 +88,7 @@ const transformer: ts.TransformerFactory<ts.SourceFile> = context => {
ts.createJsxAttributes(attributes),
);

return result;
return ts.visitEachChild(result, visitor, context);
}
}

Expand Down

0 comments on commit df9b04c

Please sign in to comment.