Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
visit(tree, 'jsx', node => {
if (isComment(node.value)) {
node.type = 'comment'
node.value = getCommentContents(node.value)
}
})