{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/584","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/584/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/584/events","html_url":"https://github.com/jspm/jspm-cli/issues/584","id":60708415,"number":584,"title":"import npm:babel within loader plugin throws an error when bundling","user":{"login":"zcregan","id":7724154,"avatar_url":"https://avatars.githubusercontent.com/u/7724154?v=3","gravatar_id":"","url":"https://api.github.com/users/zcregan","html_url":"https://github.com/zcregan","followers_url":"https://api.github.com/users/zcregan/followers","following_url":"https://api.github.com/users/zcregan/following{/other_user}","gists_url":"https://api.github.com/users/zcregan/gists{/gist_id}","starred_url":"https://api.github.com/users/zcregan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcregan/subscriptions","organizations_url":"https://api.github.com/users/zcregan/orgs","repos_url":"https://api.github.com/users/zcregan/repos","events_url":"https://api.github.com/users/zcregan/events{/privacy}","received_events_url":"https://api.github.com/users/zcregan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-11T18:38:18Z","updated_at":"2015-03-17T18:38:33Z","closed_at":null,"body":"I've written a small JSX loader plugin using Babel.js to perform the translation: https://github.com/zcregan/plugin-babeljsx\r\n\r\nInstalling the plugin with `jspm install jsx=github:zcregan/plugin-babeljsx` and then using the plugin with `import myReactComponent from 'myReactComponent.jsx!'` works fine from the browser. But it throws a cryptic error message when trying to use `jspm bundle`."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/82516844","html_url":"https://github.com/jspm/jspm-cli/issues/584#issuecomment-82516844","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/584","id":82516844,"user":{"login":"zcregan","id":7724154,"avatar_url":"https://avatars.githubusercontent.com/u/7724154?v=3","gravatar_id":"","url":"https://api.github.com/users/zcregan","html_url":"https://github.com/zcregan","followers_url":"https://api.github.com/users/zcregan/followers","following_url":"https://api.github.com/users/zcregan/following{/other_user}","gists_url":"https://api.github.com/users/zcregan/gists{/gist_id}","starred_url":"https://api.github.com/users/zcregan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcregan/subscriptions","organizations_url":"https://api.github.com/users/zcregan/orgs","repos_url":"https://api.github.com/users/zcregan/repos","events_url":"https://api.github.com/users/zcregan/events{/privacy}","received_events_url":"https://api.github.com/users/zcregan/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T18:38:33Z","updated_at":"2015-03-17T18:38:33Z","body":"Fixed! Thanks so much!\r\n\r\nBtw, I've noticed a lot of people asking about using Babel for JSX translation with JSPM. Now that my plugin is working feel free to share/fork/whatever-you-want with it. Really appreciate the work you've put into jspm/systemJS so I'm happy to contribute back whatever I can."}}