{"action":"created","issue":{"url":"https://api.github.com/repos/depcheck/depcheck/issues/44","labels_url":"https://api.github.com/repos/depcheck/depcheck/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/depcheck/depcheck/issues/44/comments","events_url":"https://api.github.com/repos/depcheck/depcheck/issues/44/events","html_url":"https://github.com/depcheck/depcheck/issues/44","id":116249665,"number":44,"title":"Babel plugin support","user":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/depcheck/depcheck/labels/feature","name":"feature","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-11T02:30:35Z","updated_at":"2015-11-11T03:04:57Z","closed_at":"2015-11-11T03:04:57Z","body":"_From @lijunle on October 26, 2015 19:29_\n\nIn `.babelrc`:\r\n\r\n```json\r\n{\r\n  \"stage\": 2,\r\n  \"env\": {\r\n    \"development\": {\r\n      \"plugins\": [\r\n        \"react-transform\"\r\n      ],\r\n      \"extra\": {\r\n        \"react-transform\": {\r\n          \"transforms\": [{\r\n            \"transform\": \"react-transform-hmr\",\r\n            \"imports\": [\"react\"],\r\n            \"locals\":  [\"module\"]\r\n          }]\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nExpected packages:\r\n\r\n- babel-plugin-react-transform\r\n- react-transform-hmr\r\n\r\n---\r\n\r\nWork items:\r\n\r\n- [x] The configs in `.babelrc` file.\r\n- [x] Configs with options ([example](https://babeljs.io/docs/plugins/#options)).\r\n- [x] The configs in envionment ([example](https://babeljs.io/docs/usage/babelrc/#env-option)).\r\n- [x] The configs in `package.json` ([example](https://babeljs.io/docs/usage/babelrc/#use-via-package-json)).\r\n- [ ] ~~The configs in Babel CLI.~~ (see note below)\r\n- [ ] ~~The configs in API calls.~~ (see note below)\r\n\r\n*Note:* It need more affect to support Babel plugins in CLI and API calls. They are not recommended by Babel. Please open an issue and let me know the reason if anybody think they are necessary.\n\n_Copied from original issue: lijunle/depcheck-es6#97_"},"comment":{"url":"https://api.github.com/repos/depcheck/depcheck/issues/comments/155645789","html_url":"https://github.com/depcheck/depcheck/issues/44#issuecomment-155645789","issue_url":"https://api.github.com/repos/depcheck/depcheck/issues/44","id":155645789,"user":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T03:04:56Z","updated_at":"2015-11-11T03:04:56Z","body":"Babel support is basically there - #39 \r\n\r\nbabel-plugin-react-transform transformers is tracked by another issue - #45\r\n\r\nClose this issue.\r\n"}}