{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1289","labels_url":"https://api.github.com/repos/babel/babel/issues/1289/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1289/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1289/events","html_url":"https://github.com/babel/babel/issues/1289","id":69150112,"number":1289,"title":"bluebirdCoroutines – _interopRequireWildcard used before it's defined","user":{"login":"nthtran","id":1214699,"avatar_url":"https://avatars.githubusercontent.com/u/1214699?v=3","gravatar_id":"","url":"https://api.github.com/users/nthtran","html_url":"https://github.com/nthtran","followers_url":"https://api.github.com/users/nthtran/followers","following_url":"https://api.github.com/users/nthtran/following{/other_user}","gists_url":"https://api.github.com/users/nthtran/gists{/gist_id}","starred_url":"https://api.github.com/users/nthtran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nthtran/subscriptions","organizations_url":"https://api.github.com/users/nthtran/orgs","repos_url":"https://api.github.com/users/nthtran/repos","events_url":"https://api.github.com/users/nthtran/events{/privacy}","received_events_url":"https://api.github.com/users/nthtran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-17T14:30:37Z","updated_at":"2015-04-18T17:04:08Z","closed_at":null,"body":"When using `bluebirdCoroutines` `babel` generates the following code:\r\n\r\n```js\r\n'use strict';\r\n\r\nvar _bluebird2 = require('bluebird');\r\n\r\nvar _bluebird3 = _interopRequireWildcard(_bluebird2);\r\n\r\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\r\n\r\nvar _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };\r\n\r\n...\r\n```\r\n\r\nWhich results in an `undefined is not a function` error."},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/94183005","html_url":"https://github.com/babel/babel/issues/1289#issuecomment-94183005","issue_url":"https://api.github.com/repos/babel/babel/issues/1289","id":94183005,"user":{"login":"calebboyd","id":5818726,"avatar_url":"https://avatars.githubusercontent.com/u/5818726?v=3","gravatar_id":"","url":"https://api.github.com/users/calebboyd","html_url":"https://github.com/calebboyd","followers_url":"https://api.github.com/users/calebboyd/followers","following_url":"https://api.github.com/users/calebboyd/following{/other_user}","gists_url":"https://api.github.com/users/calebboyd/gists{/gist_id}","starred_url":"https://api.github.com/users/calebboyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebboyd/subscriptions","organizations_url":"https://api.github.com/users/calebboyd/orgs","repos_url":"https://api.github.com/users/calebboyd/repos","events_url":"https://api.github.com/users/calebboyd/events{/privacy}","received_events_url":"https://api.github.com/users/calebboyd/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T17:04:08Z","updated_at":"2015-04-18T17:04:08Z","body":"+1\r\n"}}