{"action":"opened","issue":{"url":"https://api.github.com/repos/rollup/rollup/issues/475","labels_url":"https://api.github.com/repos/rollup/rollup/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup/issues/475/comments","events_url":"https://api.github.com/repos/rollup/rollup/issues/475/events","html_url":"https://github.com/rollup/rollup/issues/475","id":129296328,"number":475,"title":"Uncaught ReferenceError: require is not defined","user":{"login":"iam-peekay","id":5421194,"avatar_url":"https://avatars.githubusercontent.com/u/5421194?v=3","gravatar_id":"","url":"https://api.github.com/users/iam-peekay","html_url":"https://github.com/iam-peekay","followers_url":"https://api.github.com/users/iam-peekay/followers","following_url":"https://api.github.com/users/iam-peekay/following{/other_user}","gists_url":"https://api.github.com/users/iam-peekay/gists{/gist_id}","starred_url":"https://api.github.com/users/iam-peekay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iam-peekay/subscriptions","organizations_url":"https://api.github.com/users/iam-peekay/orgs","repos_url":"https://api.github.com/users/iam-peekay/repos","events_url":"https://api.github.com/users/iam-peekay/events{/privacy}","received_events_url":"https://api.github.com/users/iam-peekay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-27T22:56:57Z","updated_at":"2016-01-27T22:56:57Z","closed_at":null,"body":"Hi. I keep getting this error, despite bundling using cjs format. My rollup config file looks like this: \r\n```\r\nimport babel from 'rollup-plugin-babel';\r\n\r\nexport default {\r\n  entry: 'client/src/app.js',\r\n  dest: 'dist/bundle.js',\r\n  plugins: [ babel() ],\r\n  format: 'cjs'\r\n};\r\n```\r\n\r\nand I'm bundling by running ```rollup -c``` in root directory. I've also set my .babelrc file to have the es2015-rollup preset. But for some reason, i keep getting this error and can't figure out what's going on.\r\n\r\nAny help would be really appreciated."}}