{"action":"created","issue":{"url":"https://api.github.com/repos/wnr/element-resize-detector/issues/71","repository_url":"https://api.github.com/repos/wnr/element-resize-detector","labels_url":"https://api.github.com/repos/wnr/element-resize-detector/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/wnr/element-resize-detector/issues/71/comments","events_url":"https://api.github.com/repos/wnr/element-resize-detector/issues/71/events","html_url":"https://github.com/wnr/element-resize-detector/issues/71","id":208512712,"number":71,"title":"dist file cannot be minified with babili","user":{"login":"rosskevin","id":136564,"avatar_url":"https://avatars2.githubusercontent.com/u/136564?v=3","gravatar_id":"","url":"https://api.github.com/users/rosskevin","html_url":"https://github.com/rosskevin","followers_url":"https://api.github.com/users/rosskevin/followers","following_url":"https://api.github.com/users/rosskevin/following{/other_user}","gists_url":"https://api.github.com/users/rosskevin/gists{/gist_id}","starred_url":"https://api.github.com/users/rosskevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosskevin/subscriptions","organizations_url":"https://api.github.com/users/rosskevin/orgs","repos_url":"https://api.github.com/users/rosskevin/repos","events_url":"https://api.github.com/users/rosskevin/events{/privacy}","received_events_url":"https://api.github.com/users/rosskevin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-02-17T17:55:44Z","updated_at":"2017-03-28T18:50:22Z","closed_at":"2017-03-28T18:50:22Z","body":"In the `dist/element-resize-detector.js`, it runs [`var browserDetector = require(\"../browser-detector\");`](https://github.com/wnr/element-resize-detector/blob/master/dist/element-resize-detector.js#L235).\r\n\r\nI tracked this down because when minifying with `babili`, it fails here with something like `Uncaught ReferenceError: G is not defined`. \r\n\r\nThis correlates to source in `detection-strategy/object.js`.\r\n\r\nI'm unfamiliar with browserify, otherwise I would submit a PR.  It's certainly possible I'm wrong here, but I have tracked it to this package via obfuscated code:\r\n\r\n```javascript\r\n        , function(V) {\r\n            \"use strict\";\r\n            var Y = V.exports = {};\r\n            Y.getOption = G            // Uncaught ReferenceError: G is not defined\r\n        }\r\n        , function(V, Q, G) {\r\n            \"use strict\";\r\n            var Y = G(1);\r\n            V.exports = function(X) {\r\n                function ee(le) {\r\n                    return ne(le).object\r\n                }\r\n                X = X || {};\r\n                var oe = X.reporter\r\n                  , ae = X.batchProcessor\r\n                  , ne = X.stateHandler.getState;\r\n                if (!oe)\r\n                    throw Error(\"Missing required dependency: reporter.\");\r\n                return {\r\n                    makeDetectable: Z,\r\n                    addListener: J,\r\n                    uninstall: function(le) {\r\n                        Y.isIE(8) ? le.detachEvent(\"onresize\", ne(le).object.proxy) : le.removeChild(ee(le)),\r\n                        delete ne(le).object\r\n                    }\r\n                }\r\n            }\r\n        }\r\n```\r\n\r\nThis is a show-stopper for my production code, I hope someone can look at this soon.  If not, please let me know."},"comment":{"url":"https://api.github.com/repos/wnr/element-resize-detector/issues/comments/289868059","html_url":"https://github.com/wnr/element-resize-detector/issues/71#issuecomment-289868059","issue_url":"https://api.github.com/repos/wnr/element-resize-detector/issues/71","id":289868059,"user":{"login":"wnr","id":719555,"avatar_url":"https://avatars1.githubusercontent.com/u/719555?v=3","gravatar_id":"","url":"https://api.github.com/users/wnr","html_url":"https://github.com/wnr","followers_url":"https://api.github.com/users/wnr/followers","following_url":"https://api.github.com/users/wnr/following{/other_user}","gists_url":"https://api.github.com/users/wnr/gists{/gist_id}","starred_url":"https://api.github.com/users/wnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wnr/subscriptions","organizations_url":"https://api.github.com/users/wnr/orgs","repos_url":"https://api.github.com/users/wnr/repos","events_url":"https://api.github.com/users/wnr/events{/privacy}","received_events_url":"https://api.github.com/users/wnr/received_events","type":"User","site_admin":false},"created_at":"2017-03-28T18:50:22Z","updated_at":"2017-03-28T18:50:22Z","body":"I'm going to close this. Please reopen if your the conclusion is that there's something wrong at this end."}}
{"actor":{"display_login":"wnr"}}