{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1329","labels_url":"https://api.github.com/repos/babel/babel/issues/1329/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1329/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1329/events","html_url":"https://github.com/babel/babel/issues/1329","id":70439235,"number":1329,"title":"Require hook doesn't load plugins properly","user":{"login":"lukescott","id":486224,"avatar_url":"https://avatars.githubusercontent.com/u/486224?v=3","gravatar_id":"","url":"https://api.github.com/users/lukescott","html_url":"https://github.com/lukescott","followers_url":"https://api.github.com/users/lukescott/followers","following_url":"https://api.github.com/users/lukescott/following{/other_user}","gists_url":"https://api.github.com/users/lukescott/gists{/gist_id}","starred_url":"https://api.github.com/users/lukescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukescott/subscriptions","organizations_url":"https://api.github.com/users/lukescott/orgs","repos_url":"https://api.github.com/users/lukescott/repos","events_url":"https://api.github.com/users/lukescott/events{/privacy}","received_events_url":"https://api.github.com/users/lukescott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-23T15:21:04Z","updated_at":"2015-04-23T19:25:33Z","closed_at":null,"body":"It seems that when the require hook is used babel tries to load plugins for every plugin loaded.\r\n\r\nCode: https://dl.dropboxusercontent.com/u/6619505/repo.zip\r\n\r\nRun:\r\n\r\n```bash\r\nnpm install\r\n./node_modules/.bin/mocha\r\n```\r\n\r\nI get:\r\n\r\n```\r\n/Users/lukescott/Desktop/repo/node_modules/babel-core/lib/babel/transformation/file/index.js:285\r\n      throw new ReferenceError(\"The key for plugin \" + JSON.stringify(name) +\r\n            ^\r\nReferenceError: The key for plugin \"class-name\" of addClassName collides with an existing plugin\r\n```\r\n\r\nIf I convert the code in ./node_modules/babe-plugin-class-name to ES6 (w/ import and export) I get:\r\n\r\n```\r\n(function (exports, require, module, __filename, __dirname) { import {Transfor\r\n                                                              ^^^^^^\r\nUnexpected reserved word\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/95692199","html_url":"https://github.com/babel/babel/issues/1329#issuecomment-95692199","issue_url":"https://api.github.com/repos/babel/babel/issues/1329","id":95692199,"user":{"login":"lukescott","id":486224,"avatar_url":"https://avatars.githubusercontent.com/u/486224?v=3","gravatar_id":"","url":"https://api.github.com/users/lukescott","html_url":"https://github.com/lukescott","followers_url":"https://api.github.com/users/lukescott/followers","following_url":"https://api.github.com/users/lukescott/following{/other_user}","gists_url":"https://api.github.com/users/lukescott/gists{/gist_id}","starred_url":"https://api.github.com/users/lukescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukescott/subscriptions","organizations_url":"https://api.github.com/users/lukescott/orgs","repos_url":"https://api.github.com/users/lukescott/repos","events_url":"https://api.github.com/users/lukescott/events{/privacy}","received_events_url":"https://api.github.com/users/lukescott/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T19:25:33Z","updated_at":"2015-04-23T19:25:33Z","body":"@sebmck I've prepared PR #1335 that fixes this issue and possibly any future problems with `.babelrc`."}}