{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/plugin-babel/issues/57","repository_url":"https://api.github.com/repos/systemjs/plugin-babel","labels_url":"https://api.github.com/repos/systemjs/plugin-babel/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/plugin-babel/issues/57/comments","events_url":"https://api.github.com/repos/systemjs/plugin-babel/issues/57/events","html_url":"https://github.com/systemjs/plugin-babel/issues/57","id":171482609,"number":57,"title":"Unable to use it - Uncaught ReferenceError: require is not defined in plugin-babel.js","user":{"login":"dragonflypl","id":5444220,"avatar_url":"https://avatars.githubusercontent.com/u/5444220?v=3","gravatar_id":"","url":"https://api.github.com/users/dragonflypl","html_url":"https://github.com/dragonflypl","followers_url":"https://api.github.com/users/dragonflypl/followers","following_url":"https://api.github.com/users/dragonflypl/following{/other_user}","gists_url":"https://api.github.com/users/dragonflypl/gists{/gist_id}","starred_url":"https://api.github.com/users/dragonflypl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragonflypl/subscriptions","organizations_url":"https://api.github.com/users/dragonflypl/orgs","repos_url":"https://api.github.com/users/dragonflypl/repos","events_url":"https://api.github.com/users/dragonflypl/events{/privacy}","received_events_url":"https://api.github.com/users/dragonflypl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-16T18:16:14Z","updated_at":"2016-08-21T13:30:21Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to use this plugin in order to use Babel 6 with SystemJs (without jspm). Probably I'm doing something terribly wrong, because even though I follow docs, I cannot make it work. This is what I have in my index.html:\r\n- reference to SystemJS v0.19.3\r\n\r\n`<script src=\"bower_components/system.js/dist/system.js\"></script>`\r\n\r\n- script block that configures SystemJS:\r\n\r\n```\r\n<script>\r\n  System.config({\r\n    map: {\r\n      'plugin-babel': '../node_modules/systemjs-plugin-babel/plugin-babel.js',\r\n      'systemjs-babel-build': '../node_modules/systemjs-plugin-babel/systemjs-babel-browser.js'\r\n    },\r\n    transpiler: 'plugin-babel'\r\n  });\r\n  System.import('app.js');\r\n</script>\r\n```\r\n\r\nPaths are OK. When I enter the page, ```/node_modules/systemjs-plugin-babel/plugin-babel.js``` is downloaded, but I crashes on first line (require is undefined):\r\n\r\n```var babel = require('systemjs-babel-build').babel;```\r\n\r\nThanks for help.\r\nPawel\r\n"},"comment":{"url":"https://api.github.com/repos/systemjs/plugin-babel/issues/comments/241257408","html_url":"https://github.com/systemjs/plugin-babel/issues/57#issuecomment-241257408","issue_url":"https://api.github.com/repos/systemjs/plugin-babel/issues/57","id":241257408,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T13:30:20Z","updated_at":"2016-08-21T13:30:20Z","body":"Thanks for posting, I just included a manual test to double-check this in https://github.com/systemjs/plugin-babel/blob/master/test/manual.html and it's definitely working fine for me. Perhaps you're using the CSP version of SystemJS or have custom meta configuration present that is conflicting with loading plugin-babel as CommonJS?"}}
{"actor":{"display_login":"guybedford"}}