{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1335","labels_url":"https://api.github.com/repos/babel/babel/issues/1335/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1335/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1335/events","html_url":"https://github.com/babel/babel/pull/1335","id":70491125,"number":1335,"title":"Fix resolve rc loading options twice","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-23T19:22:35Z","updated_at":"2015-04-24T14:21:23Z","closed_at":"2015-04-24T14:21:18Z","pull_request":{"url":"https://api.github.com/repos/babel/babel/pulls/1335","html_url":"https://github.com/babel/babel/pull/1335","diff_url":"https://github.com/babel/babel/pull/1335.diff","patch_url":"https://github.com/babel/babel/pull/1335.patch"},"body":"Two different changes here:\r\n\r\n1 - Replaces a.concat(b) with something that only adds an option if it doesn't already exist. I looked over the options and there don't seem to be any that would need the same value twice.\r\n\r\n2 - Added an internal `babelrc` option to the options object to track which `.babelrc` files have been already loaded to prevent the same file from being loaded twice. I think it's different than breakConfig because line 44, `if (json.breakConfig) return;`, prevents the loaded `.babelrc` from being merged.\r\n\r\nBoth solve different issues. The first prevents plugins from being loaded twice. The second allows you to call resolveRc as many times as you wish without consequence. It will prevent future bugs from occurring where resolveRc is called 2 or more times on the same file w/ the same options object. No need to inject a `breakConfig` into babel/register."},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/95946708","html_url":"https://github.com/babel/babel/pull/1335#issuecomment-95946708","issue_url":"https://api.github.com/repos/babel/babel/issues/1335","id":95946708,"user":{"login":"sebmck","id":853712,"avatar_url":"https://avatars.githubusercontent.com/u/853712?v=3","gravatar_id":"","url":"https://api.github.com/users/sebmck","html_url":"https://github.com/sebmck","followers_url":"https://api.github.com/users/sebmck/followers","following_url":"https://api.github.com/users/sebmck/following{/other_user}","gists_url":"https://api.github.com/users/sebmck/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmck/subscriptions","organizations_url":"https://api.github.com/users/sebmck/orgs","repos_url":"https://api.github.com/users/sebmck/repos","events_url":"https://api.github.com/users/sebmck/events{/privacy}","received_events_url":"https://api.github.com/users/sebmck/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T14:21:23Z","updated_at":"2015-04-24T14:21:23Z","body":"Thanks!"}}