{"action":"created","issue":{"url":"https://api.github.com/repos/Jam3/devtool/issues/29","labels_url":"https://api.github.com/repos/Jam3/devtool/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Jam3/devtool/issues/29/comments","events_url":"https://api.github.com/repos/Jam3/devtool/issues/29/events","html_url":"https://github.com/Jam3/devtool/issues/29","id":128979600,"number":29,"title":"Improving --no-browser-globals","user":{"login":"mattdesl","id":1383811,"avatar_url":"https://avatars.githubusercontent.com/u/1383811?v=3","gravatar_id":"","url":"https://api.github.com/users/mattdesl","html_url":"https://github.com/mattdesl","followers_url":"https://api.github.com/users/mattdesl/followers","following_url":"https://api.github.com/users/mattdesl/following{/other_user}","gists_url":"https://api.github.com/users/mattdesl/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdesl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdesl/subscriptions","organizations_url":"https://api.github.com/users/mattdesl/orgs","repos_url":"https://api.github.com/users/mattdesl/repos","events_url":"https://api.github.com/users/mattdesl/events{/privacy}","received_events_url":"https://api.github.com/users/mattdesl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Jam3/devtool/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-26T23:48:47Z","updated_at":"2016-01-27T20:51:29Z","closed_at":"2016-01-27T20:51:28Z","body":"Since #23 I have added `--no-browser-globals` which was a first attempt at solving some issues with node modules that rely on `window` / `document` / etc (i.e. doing some node-type code if `window` is undefined).\r\n\r\nThis causes some new issues in some cases:\r\nhttps://twitter.com/yaypie/status/692127048773550080\r\n\r\nThe problem is basically here:\r\nhttps://github.com/zloirock/core-js/blob/270fabccd38e0210caf1a4ffc44ca328880fba69/modules/_global.js\r\n\r\n```js\r\nconsole.log(Function('return this')())\r\n```\r\n\r\nWhere `this` in that context evaluates to `window`..."},"comment":{"url":"https://api.github.com/repos/Jam3/devtool/issues/comments/175847402","html_url":"https://github.com/Jam3/devtool/issues/29#issuecomment-175847402","issue_url":"https://api.github.com/repos/Jam3/devtool/issues/29","id":175847402,"user":{"login":"mattdesl","id":1383811,"avatar_url":"https://avatars.githubusercontent.com/u/1383811?v=3","gravatar_id":"","url":"https://api.github.com/users/mattdesl","html_url":"https://github.com/mattdesl","followers_url":"https://api.github.com/users/mattdesl/followers","following_url":"https://api.github.com/users/mattdesl/following{/other_user}","gists_url":"https://api.github.com/users/mattdesl/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdesl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdesl/subscriptions","organizations_url":"https://api.github.com/users/mattdesl/orgs","repos_url":"https://api.github.com/users/mattdesl/repos","events_url":"https://api.github.com/users/mattdesl/events{/privacy}","received_events_url":"https://api.github.com/users/mattdesl/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T20:51:28Z","updated_at":"2016-01-27T20:51:28Z","body":"Awesome! I am going to close this. I'm sure something else will come up eventually, feel free to post a new issue when/if it breaks. :smile:"}}