{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2183","labels_url":"https://api.github.com/repos/babel/babel/issues/2183/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2183/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2183/events","html_url":"https://github.com/babel/babel/issues/2183","id":99825533,"number":2183,"title":"is it possible to run default transformation after an optional transformation in babel/register?","user":{"login":"helios1138","id":7106681,"avatar_url":"https://avatars.githubusercontent.com/u/7106681?v=3","gravatar_id":"","url":"https://api.github.com/users/helios1138","html_url":"https://github.com/helios1138","followers_url":"https://api.github.com/users/helios1138/followers","following_url":"https://api.github.com/users/helios1138/following{/other_user}","gists_url":"https://api.github.com/users/helios1138/gists{/gist_id}","starred_url":"https://api.github.com/users/helios1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helios1138/subscriptions","organizations_url":"https://api.github.com/users/helios1138/orgs","repos_url":"https://api.github.com/users/helios1138/repos","events_url":"https://api.github.com/users/helios1138/events{/privacy}","received_events_url":"https://api.github.com/users/helios1138/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-08T18:26:28Z","updated_at":"2015-08-08T18:35:14Z","closed_at":null,"body":"I've found that the code that uses **async/await** transformed through **bluebird coroutines** + **regenerator** is about 2x times faster then **co** + **regenerator** and about 6x times faster than **regenerator**'s own implementation of **async/await** (that is currently used in babel's **es7.asyncFunctions** transformation).\r\n\r\nBut if I run this code:\r\n```\r\nrequire('babel/register')({ optional: ['bluebirdCoroutines'] });\r\nrequire('./');\r\n```\r\nit runs the transformer but for some reason disables the default transformation of generators so it only works with `node --harmony`, which is not an option for me.\r\n\r\nRight now I was able to do this by first running babel from command line:\r\n```\r\nindex.js --out-file index2.js --optional bluebirdCoroutines\r\n```\r\nand only then using **babel/register**:\r\n```\r\nrequire('babel/register');\r\nrequire('./index2');\r\n```\r\n\r\nSo my question is: is it possible to do this using only **babel/register**? So the code would look like this:\r\n```\r\nrequire('babel/register')({ optional: ['bluebirdCoroutines'] });\r\nrequire('babel/register');\r\nrequire('./index2');\r\n```\r\nor somehow like this:\r\n```\r\nrequire('babel/register')({ optional: ['bluebirdCoroutines', 'default'] });\r\nrequire('./index2');\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/129032702","html_url":"https://github.com/babel/babel/issues/2183#issuecomment-129032702","issue_url":"https://api.github.com/repos/babel/babel/issues/2183","id":129032702,"user":{"login":"helios1138","id":7106681,"avatar_url":"https://avatars.githubusercontent.com/u/7106681?v=3","gravatar_id":"","url":"https://api.github.com/users/helios1138","html_url":"https://github.com/helios1138","followers_url":"https://api.github.com/users/helios1138/followers","following_url":"https://api.github.com/users/helios1138/following{/other_user}","gists_url":"https://api.github.com/users/helios1138/gists{/gist_id}","starred_url":"https://api.github.com/users/helios1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helios1138/subscriptions","organizations_url":"https://api.github.com/users/helios1138/orgs","repos_url":"https://api.github.com/users/helios1138/repos","events_url":"https://api.github.com/users/helios1138/events{/privacy}","received_events_url":"https://api.github.com/users/helios1138/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T18:35:14Z","updated_at":"2015-08-08T18:35:14Z","body":"@sebmck is it a design decision or is it simply yet to be implemented?"}}