module.exports = function (babel) {
  var t = babel.types
  var regex = new RegExp('^(.*)\\.jsx$')

  const sourceVisitor = {
    Literal (path) {
      if (regex.test(path.node.value)) {
        var replacement = path.node.value.replace(regex, '$1')
        path.replaceWith(t.stringLiteral(replacement))
      }
    }
  }

  return {
    visitor: {
      ImportDeclaration: function (path) {
        path.traverse(sourceVisitor)
      }
    }
  }
}

module.exports = function (babel) {
  var t = babel.types
  var regex = new RegExp('^(.*)\\.jsx$')

  const sourceVisitor = {
    Literal (path) {
      if (regex.test(path.node.value)) {
        var replacement = path.node.value.replace(regex, '$1')
        path.replaceWith(t.stringLiteral(replacement))
      }
    }
  }

  return {
    visitor: {
      'ImportDeclaration|ExportNamedDeclaration': function (path) {
        path.traverse(sourceVisitor)
      }
    }
  }
}

Add ExportNamedDeclaration to node identifier.
fix: Add ExportNamedDeclaration to node identifier.

Adding ExportNamedDeclaration covers the case:
`export { default as Foo } from './Foo.jsx';`
