{"action":"created","issue":{"url":"https://api.github.com/repos/greim/await.js/issues/3","repository_url":"https://api.github.com/repos/greim/await.js","labels_url":"https://api.github.com/repos/greim/await.js/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/greim/await.js/issues/3/comments","events_url":"https://api.github.com/repos/greim/await.js/issues/3/events","html_url":"https://github.com/greim/await.js/issues/3","id":131035057,"number":3,"title":"Cannot use project with transitive dependency `await.js` with Rollup","user":{"login":"mitchhentges","id":7784737,"avatar_url":"https://avatars.githubusercontent.com/u/7784737?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchhentges","html_url":"https://github.com/mitchhentges","followers_url":"https://api.github.com/users/mitchhentges/followers","following_url":"https://api.github.com/users/mitchhentges/following{/other_user}","gists_url":"https://api.github.com/users/mitchhentges/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchhentges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchhentges/subscriptions","organizations_url":"https://api.github.com/users/mitchhentges/orgs","repos_url":"https://api.github.com/users/mitchhentges/repos","events_url":"https://api.github.com/users/mitchhentges/events{/privacy}","received_events_url":"https://api.github.com/users/mitchhentges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-03T14:03:17Z","updated_at":"2016-02-03T16:39:49Z","closed_at":null,"body":"Rollup is a module bundler that converts ES2015 code into a single bundle, and also removes unused libraries. In order for it to put `node_modules` dependencies into that final bundle, the dependencies need to be converted to ES2015 (redundant, yeah, 'cause Rollup converts it right back). https://github.com/rollup/rollup-plugin-commonjs is the plugin used to convert the dependencies.\r\n\r\nWhen the forwards-transpiler runs into `await.js`, it chokes, because `await` is a reserved word.\r\n```\r\nThe keyword 'await' is reserved (354:13) in {...}node_modules/await/await.js\r\n```\r\n\r\nI'm going to personally solve this by doing something else _rather than_ forwards-transpiling, then backwards-transpiling, but other people might have the same issue without the flexibility to use another solution"},"comment":{"url":"https://api.github.com/repos/greim/await.js/issues/comments/179332507","html_url":"https://github.com/greim/await.js/issues/3#issuecomment-179332507","issue_url":"https://api.github.com/repos/greim/await.js/issues/3","id":179332507,"user":{"login":"mitchhentges","id":7784737,"avatar_url":"https://avatars.githubusercontent.com/u/7784737?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchhentges","html_url":"https://github.com/mitchhentges","followers_url":"https://api.github.com/users/mitchhentges/followers","following_url":"https://api.github.com/users/mitchhentges/following{/other_user}","gists_url":"https://api.github.com/users/mitchhentges/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchhentges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchhentges/subscriptions","organizations_url":"https://api.github.com/users/mitchhentges/orgs","repos_url":"https://api.github.com/users/mitchhentges/repos","events_url":"https://api.github.com/users/mitchhentges/events{/privacy}","received_events_url":"https://api.github.com/users/mitchhentges/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T16:39:48Z","updated_at":"2016-02-03T16:39:48Z","body":"Sweet, yeah, that would fix it. I'll purpose a pr in two days, tops.\nOn Feb 3, 2016 17:33, \"Greg Reimer\" <notifications@github.com> wrote:\n\n> Thanks for the report. To make sure I understand, would it solve it if the\n> internal await variable was simply renamed to _await or something? If so,\n> I'd like to re-title this issue:\n>\n> Variable \"await\" is a reserved word in ES6 module code, breaking\n> transpilation in some contexts\n>\n> Also if so, I'm happy to accept a PR, otherwise I'll get around to this\n> eventually :)\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/greim/await.js/issues/3#issuecomment-179326742>.\n>\n"}}