{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/7800","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/7800/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/7800/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/7800/events","html_url":"https://github.com/mrdoob/three.js/issues/7800","id":122427641,"number":7800,"title":"(Critical?) npm build broken","user":{"login":"DelvarWorld","id":79215,"avatar_url":"https://avatars.githubusercontent.com/u/79215?v=3","gravatar_id":"","url":"https://api.github.com/users/DelvarWorld","html_url":"https://github.com/DelvarWorld","followers_url":"https://api.github.com/users/DelvarWorld/followers","following_url":"https://api.github.com/users/DelvarWorld/following{/other_user}","gists_url":"https://api.github.com/users/DelvarWorld/gists{/gist_id}","starred_url":"https://api.github.com/users/DelvarWorld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DelvarWorld/subscriptions","organizations_url":"https://api.github.com/users/DelvarWorld/orgs","repos_url":"https://api.github.com/users/DelvarWorld/repos","events_url":"https://api.github.com/users/DelvarWorld/events{/privacy}","received_events_url":"https://api.github.com/users/DelvarWorld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-12-16T04:39:42Z","updated_at":"2016-01-06T01:13:41Z","closed_at":null,"body":"https://github.com/mrdoob/three.js/blob/master/build/three.js#L24\r\n\r\nLine 24 has this:\r\n\r\n    if ( self.requestAnimationFrame === undefined || self.cancelAnimationFrame === undefined ) {\r\n\r\nHowever, `self` is not defined, causing builds to fail with things like:\r\n\r\n    error given was: ReferenceError: self is not defined\r\n        at Object.<anonymous> (node_modules/three.js/build/three.js:24:6)\r\n\r\nAn older version of three I have installed has this line at the top of the file:\r\n\r\n    var self = self || {};// File:src/Three.js\r\n\r\nHowever it's not present in this build. "},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/169186806","html_url":"https://github.com/mrdoob/three.js/issues/7800#issuecomment-169186806","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/7800","id":169186806,"user":{"login":"toxicFork","id":860717,"avatar_url":"https://avatars.githubusercontent.com/u/860717?v=3","gravatar_id":"","url":"https://api.github.com/users/toxicFork","html_url":"https://github.com/toxicFork","followers_url":"https://api.github.com/users/toxicFork/followers","following_url":"https://api.github.com/users/toxicFork/following{/other_user}","gists_url":"https://api.github.com/users/toxicFork/gists{/gist_id}","starred_url":"https://api.github.com/users/toxicFork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toxicFork/subscriptions","organizations_url":"https://api.github.com/users/toxicFork/orgs","repos_url":"https://api.github.com/users/toxicFork/repos","events_url":"https://api.github.com/users/toxicFork/events{/privacy}","received_events_url":"https://api.github.com/users/toxicFork/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T01:13:41Z","updated_at":"2016-01-06T01:13:41Z","body":"Regarding this I think it may be best if the `three` package was handed over to you, and in `three.js` npm package, you place a deprecation message and require('three')."}}