{"action":"opened","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/1943","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/1943/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1943/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/1943/events","html_url":"https://github.com/mochajs/mocha/issues/1943","id":112804763,"number":1943,"title":"Allow providing config to compiler hooks ","user":{"login":"Swaagie","id":670951,"avatar_url":"https://avatars.githubusercontent.com/u/670951?v=3","gravatar_id":"","url":"https://api.github.com/users/Swaagie","html_url":"https://github.com/Swaagie","followers_url":"https://api.github.com/users/Swaagie/followers","following_url":"https://api.github.com/users/Swaagie/following{/other_user}","gists_url":"https://api.github.com/users/Swaagie/gists{/gist_id}","starred_url":"https://api.github.com/users/Swaagie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swaagie/subscriptions","organizations_url":"https://api.github.com/users/Swaagie/orgs","repos_url":"https://api.github.com/users/Swaagie/repos","events_url":"https://api.github.com/users/Swaagie/events{/privacy}","received_events_url":"https://api.github.com/users/Swaagie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-22T13:36:22Z","updated_at":"2015-10-22T13:36:22Z","closed_at":null,"body":"Wondering what the best approach is to tackling this issue. For instance, the Babel compiler can be supplied with additional config https://github.com/babel/babel/blob/master/packages/babel/src/api/register/node.js#L213-L227. \r\n\r\nHowever mocha is currently not taking this into account, https://github.com/mochajs/mocha/blob/master/bin/_mocha#L296. \r\n\r\nConfig provided with either `.babelrc` or elsewhere are not supplied to the compiler. Could this be made possible, I'm unsure of implications for other hooks (if any). "}}