{"action":"created","issue":{"url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/186","labels_url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/186/comments","events_url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/186/events","html_url":"https://github.com/thlorenz/browserify-shim/issues/186","id":105578631,"number":186,"title":"Having a hard time shimming FontFaceObserver","user":{"login":"silvenon","id":471278,"avatar_url":"https://avatars.githubusercontent.com/u/471278?v=3","gravatar_id":"","url":"https://api.github.com/users/silvenon","html_url":"https://github.com/silvenon","followers_url":"https://api.github.com/users/silvenon/followers","following_url":"https://api.github.com/users/silvenon/following{/other_user}","gists_url":"https://api.github.com/users/silvenon/gists{/gist_id}","starred_url":"https://api.github.com/users/silvenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvenon/subscriptions","organizations_url":"https://api.github.com/users/silvenon/orgs","repos_url":"https://api.github.com/users/silvenon/repos","events_url":"https://api.github.com/users/silvenon/events{/privacy}","received_events_url":"https://api.github.com/users/silvenon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T11:33:04Z","updated_at":"2015-09-10T07:35:37Z","closed_at":null,"body":"I thought [fontfaceobserver](https://github.com/bramstein/fontfaceobserver) is an easy target, because it exports `window.FontFaceObserver`, so I tried the following:\r\n\r\n```json\r\n\"browserify-shim\": {\r\n  \"fontfaceobserver\": \"FontFaceObserver\"\r\n}\r\n```\r\n\r\nUnfortunately it didn't work :( When I tried to instantiate `FontFaceObserver`, this was the error:\r\n\r\n```\r\nUncaught TypeError: _fontfaceobserver2.default is not a function\r\n```\r\n\r\nDo you want a test case?\r\n\r\nBtw, I :heart: browserify-shim, great work!"},"comment":{"url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/comments/139143763","html_url":"https://github.com/thlorenz/browserify-shim/issues/186#issuecomment-139143763","issue_url":"https://api.github.com/repos/thlorenz/browserify-shim/issues/186","id":139143763,"user":{"login":"silvenon","id":471278,"avatar_url":"https://avatars.githubusercontent.com/u/471278?v=3","gravatar_id":"","url":"https://api.github.com/users/silvenon","html_url":"https://github.com/silvenon","followers_url":"https://api.github.com/users/silvenon/followers","following_url":"https://api.github.com/users/silvenon/following{/other_user}","gists_url":"https://api.github.com/users/silvenon/gists{/gist_id}","starred_url":"https://api.github.com/users/silvenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvenon/subscriptions","organizations_url":"https://api.github.com/users/silvenon/orgs","repos_url":"https://api.github.com/users/silvenon/repos","events_url":"https://api.github.com/users/silvenon/events{/privacy}","received_events_url":"https://api.github.com/users/silvenon/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T07:35:37Z","updated_at":"2015-09-10T07:35:37Z","body":"I thought it doesn't matter since it's clear what it exports. Yeah, it's minified with Closure Compiler, but it's not that unreadable when you [beautify it](https://gist.github.com/silvenon/e5ece747e996df20c2f6).\r\n\r\nI'm just really curious what's happening. I guess I should dig into what exactly browser-shim is doing."}}