{"action":"created","issue":{"url":"https://api.github.com/repos/bugsnag/bugsnag-js/issues/350","repository_url":"https://api.github.com/repos/bugsnag/bugsnag-js","labels_url":"https://api.github.com/repos/bugsnag/bugsnag-js/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/bugsnag/bugsnag-js/issues/350/comments","events_url":"https://api.github.com/repos/bugsnag/bugsnag-js/issues/350/events","html_url":"https://github.com/bugsnag/bugsnag-js/issues/350","id":323599638,"number":350,"title":"Compatibility with Rollup","user":{"login":"pieterbeulque","id":144075,"avatar_url":"https://avatars3.githubusercontent.com/u/144075?v=4","gravatar_id":"","url":"https://api.github.com/users/pieterbeulque","html_url":"https://github.com/pieterbeulque","followers_url":"https://api.github.com/users/pieterbeulque/followers","following_url":"https://api.github.com/users/pieterbeulque/following{/other_user}","gists_url":"https://api.github.com/users/pieterbeulque/gists{/gist_id}","starred_url":"https://api.github.com/users/pieterbeulque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pieterbeulque/subscriptions","organizations_url":"https://api.github.com/users/pieterbeulque/orgs","repos_url":"https://api.github.com/users/pieterbeulque/repos","events_url":"https://api.github.com/users/pieterbeulque/events{/privacy}","received_events_url":"https://api.github.com/users/pieterbeulque/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-16T12:31:15Z","updated_at":"2018-05-16T12:41:02Z","closed_at":null,"author_association":"NONE","body":"### Expected behavior\r\nA passing build, as suggested in [the documentation](https://docs.bugsnag.com/platforms/browsers/js/#npm-yarn).\r\n\r\n### Observed behavior\r\nRollup throws an error:\r\n\r\n```Error: 'default' is not exported by node_modules/bugsnag-js/dist/bugsnag.js```\r\n\r\n### Steps to reproduce\r\n1. Create a file, e.g. `bugsnag.js`\r\n2. `import bugsnag from 'bugsnag-js';`\r\n3. Build the file with Rollup\r\n4. Rollup throws the error above\r\n\r\n### Version\r\n4.6.3\r\n\r\n### Additional information\r\nI use rollup-stream with rollup-plugin-node-resolve to work with packages installed through NPM.\r\n\r\n#### Can't comment on Issues?\r\nSome users have been unable to comment on Github issues when an [adblocker extension is enabled](https://docs.bugsnag.com/platforms/browsers/faq/#is-bugsnag-blocked-by-ad-blockers).\r\nWe recommend temporarily disabling the extension, or if that fails, contacting support@bugsnag.com.\r\n"},"comment":{"url":"https://api.github.com/repos/bugsnag/bugsnag-js/issues/comments/389504039","html_url":"https://github.com/bugsnag/bugsnag-js/issues/350#issuecomment-389504039","issue_url":"https://api.github.com/repos/bugsnag/bugsnag-js/issues/350","id":389504039,"user":{"login":"bengourley","id":609579,"avatar_url":"https://avatars1.githubusercontent.com/u/609579?v=4","gravatar_id":"","url":"https://api.github.com/users/bengourley","html_url":"https://github.com/bengourley","followers_url":"https://api.github.com/users/bengourley/followers","following_url":"https://api.github.com/users/bengourley/following{/other_user}","gists_url":"https://api.github.com/users/bengourley/gists{/gist_id}","starred_url":"https://api.github.com/users/bengourley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengourley/subscriptions","organizations_url":"https://api.github.com/users/bengourley/orgs","repos_url":"https://api.github.com/users/bengourley/repos","events_url":"https://api.github.com/users/bengourley/events{/privacy}","received_events_url":"https://api.github.com/users/bengourley/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T12:41:02Z","updated_at":"2018-05-16T12:41:02Z","author_association":"MEMBER","body":"Hi @pieterbeulque, you'll need to add [rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs) to your rollup build. We do [export a default property](https://github.com/bugsnag/bugsnag-js/blob/6f13b49b4e93fb107ebd99adf35e1e674b6ef800/browser/index.js#L145) but I don't know why rollup won't pick it up."}}
{"actor":{"display_login":"bengourley"}}