diff --git a/lib/babel/transformation/transformers/other/react.js b/lib/babel/transformation/transformers/other/react.js index 8473f33270..047490c635 100644 --- a/lib/babel/transformation/transformers/other/react.js +++ b/lib/babel/transformation/transformers/other/react.js @@ -8,7 +8,6 @@ var JSX_ANNOTATION_REGEX = /^\*\s*@jsx\s+([^\s]+)/; exports.Program = function (node, parent, scope, file) { var id = "React.createElement"; - var comment = file.ast.comments[0]; for (var i = 0; i < file.ast.comments.length; i++) { var comment = file.ast.comments[i]; var matches = JSX_ANNOTATION_REGEX.exec(comment.value);