{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/3728","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/3728/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/3728/comments","events_url":"https://api.github.com/repos/babel/babel/issues/3728/events","html_url":"https://github.com/babel/babel/issues/3728","id":175596594,"number":3728,"title":"Unable to use transform-react-inline-elements with JSXMemberExpression (T6662)","user":{"login":"babel-bot","id":21250019,"avatar_url":"https://avatars.githubusercontent.com/u/21250019?v=3","gravatar_id":"","url":"https://api.github.com/users/babel-bot","html_url":"https://github.com/babel-bot","followers_url":"https://api.github.com/users/babel-bot/followers","following_url":"https://api.github.com/users/babel-bot/following{/other_user}","gists_url":"https://api.github.com/users/babel-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/babel-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel-bot/subscriptions","organizations_url":"https://api.github.com/users/babel-bot/orgs","repos_url":"https://api.github.com/users/babel-bot/repos","events_url":"https://api.github.com/users/babel-bot/events{/privacy}","received_events_url":"https://api.github.com/users/babel-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/babel/babel/labels/react","name":"react","color":"0e8a16"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-11-19T06:50:59Z","updated_at":"2016-10-17T07:03:27Z","closed_at":null,"body":"> Issue originally made by @tsing\n\n### Bug information\n\n* **Babel version:** 6.2.0\n* **Node version:** 5.1.0\n* **npm version:** 3.3.12\n\n### Options\n\n```\n{\n  \"presets\": [\n    \"react\",\n    \"es2015\",\n    \"stage-2\"\n  ],\n  \"env\": {\n    \"production\": {\n      \"plugins\": [\n        \"transform-react-inline-elements\"\n      ]\n    }\n  }\n}\n```\n\n### Input code\n\n```\n/* @flow */\n\nimport React from 'react';\nimport {Modal} from 'react-bootstrap';\n\nexport default CustomModal = (props) => (\n  <Modal show backdrop={props.backdrop}>\n    <Modal.Header>{props.title}</Modal.Header>\n    {props.children}\n  </Modal>\n);\n```\n\n### Description\n\nUse the command below to transpile the code\n`NODE_ENV=production babel xxx.js`\n\nwill got error:\n\n```\nTypeError: xxx.js: Property object of JSXMemberExpression expected node to be of a type [\"JSXIdentifier\"] but instead got \"MemberExpression\"\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/254128152","html_url":"https://github.com/babel/babel/issues/3728#issuecomment-254128152","issue_url":"https://api.github.com/repos/babel/babel/issues/3728","id":254128152,"user":{"login":"faceyspacey","id":154732,"avatar_url":"https://avatars.githubusercontent.com/u/154732?v=3","gravatar_id":"","url":"https://api.github.com/users/faceyspacey","html_url":"https://github.com/faceyspacey","followers_url":"https://api.github.com/users/faceyspacey/followers","following_url":"https://api.github.com/users/faceyspacey/following{/other_user}","gists_url":"https://api.github.com/users/faceyspacey/gists{/gist_id}","starred_url":"https://api.github.com/users/faceyspacey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faceyspacey/subscriptions","organizations_url":"https://api.github.com/users/faceyspacey/orgs","repos_url":"https://api.github.com/users/faceyspacey/repos","events_url":"https://api.github.com/users/faceyspacey/events{/privacy}","received_events_url":"https://api.github.com/users/faceyspacey/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T07:03:27Z","updated_at":"2016-10-17T07:03:27Z","body":"I don't think having to rewrite your imports is a sufficient solution, since external dependencies would also have to be rewritten, and since the standard way some components are expected to be used is `<Animated.View>`. "}}
{"actor":{"display_login":"faceyspacey"}}