{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/plugin-babel/issues/18","repository_url":"https://api.github.com/repos/systemjs/plugin-babel","labels_url":"https://api.github.com/repos/systemjs/plugin-babel/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/plugin-babel/issues/18/comments","events_url":"https://api.github.com/repos/systemjs/plugin-babel/issues/18/events","html_url":"https://github.com/systemjs/plugin-babel/issues/18","id":134565174,"number":18,"title":"jspm bundle issue after upgrading to 0.0.4","user":{"login":"bhavinkamani","id":120816,"avatar_url":"https://avatars.githubusercontent.com/u/120816?v=3","gravatar_id":"","url":"https://api.github.com/users/bhavinkamani","html_url":"https://github.com/bhavinkamani","followers_url":"https://api.github.com/users/bhavinkamani/followers","following_url":"https://api.github.com/users/bhavinkamani/following{/other_user}","gists_url":"https://api.github.com/users/bhavinkamani/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavinkamani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavinkamani/subscriptions","organizations_url":"https://api.github.com/users/bhavinkamani/orgs","repos_url":"https://api.github.com/users/bhavinkamani/repos","events_url":"https://api.github.com/users/bhavinkamani/events{/privacy}","received_events_url":"https://api.github.com/users/bhavinkamani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-18T12:14:29Z","updated_at":"2016-02-19T16:17:29Z","closed_at":"2016-02-19T14:26:30Z","body":"I am trying to bundle couple of libraries in my dev environment to speed up loading time. After I have upgraded to 0.0.4, I am getting following errors for libraries written in `es6` code. Following command \r\n```\r\njspm bundle systemjs-hot-reloader src/vendor/systemjs-hot-reloader.js --inject\r\n```\r\nthrows an error\r\n```\r\nBuilding the bundle tree for systemjs-hot-reloader...\r\n\r\nerr  MultipleErrors: Error on instantiate for npm:systemjs-plugin-babel@0.0.4/babel-helpers/createClass.js at file:///Volumes/DATA/Bhavin/Projects/lab/gembatech/src/jspm_packages/npm/systemjs-plugin-babel@0.0.4/babel-helpers/createClass.js\r\n  Loading github:capaj/systemjs-hot-reloader@0.5.6/hot-reloader.js\r\n  <compiler-parse-input>:17:2: Unexpected token )\r\n```\r\nupdating the module to `0.0.3` throws similar error. However, it goes away when I roll it back to `0.0.2`. "},"comment":{"url":"https://api.github.com/repos/systemjs/plugin-babel/issues/comments/186283650","html_url":"https://github.com/systemjs/plugin-babel/issues/18#issuecomment-186283650","issue_url":"https://api.github.com/repos/systemjs/plugin-babel/issues/18","id":186283650,"user":{"login":"bhavinkamani","id":120816,"avatar_url":"https://avatars.githubusercontent.com/u/120816?v=3","gravatar_id":"","url":"https://api.github.com/users/bhavinkamani","html_url":"https://github.com/bhavinkamani","followers_url":"https://api.github.com/users/bhavinkamani/followers","following_url":"https://api.github.com/users/bhavinkamani/following{/other_user}","gists_url":"https://api.github.com/users/bhavinkamani/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavinkamani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavinkamani/subscriptions","organizations_url":"https://api.github.com/users/bhavinkamani/orgs","repos_url":"https://api.github.com/users/bhavinkamani/repos","events_url":"https://api.github.com/users/bhavinkamani/events{/privacy}","received_events_url":"https://api.github.com/users/bhavinkamani/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T16:17:29Z","updated_at":"2016-02-19T16:17:29Z","body":"Thank you @guybedford.\r\n\r\nAfter upgrading to `0.0.5` I am now receiving following error for the same command. Command works with `0.0.2`. Seems like its conflicting with babel-runtime found within my node_modules. My `baseURL` is `src`. Do I need to change anything in my configuration?\r\n\r\n```\r\nError: Error on translate for github:capaj/systemjs-hot-reloader@0.5.6/hot-reloader.js at file:///Volumes/DATA/Bhavin/Projects/lab/gembatech/src/jspm_packages/github/capaj/systemjs-hot-reloader@0.5.6/hot-reloader.js\r\n  Unable to calculate canonical name to bundle file:///Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/babel-runtime/. Ensure that this module sits within the baseURL or a wildcard path config.\r\n  Evaluating file:///Volumes/DATA/Bhavin/Projects/lab/gembatech/src/jspm_packages/npm/systemjs-plugin-babel@0.0.4/plugin-babel.js\r\n  Error loading file:///Volumes/DATA/Bhavin/Projects/lab/gembatech/src/jspm_packages/npm/systemjs-plugin-babel@0.0.4/plugin-babel.js\r\n    at getCanonicalNamePlain (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs-builder/lib/utils.js:203:13)\r\n    at getCanonicalName (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs-builder/lib/utils.js:130:19)\r\n    at Object.eval (file:///Volumes/DATA/Bhavin/Projects/lab/gembatech/src/jspm_packages/npm/systemjs-plugin-babel@0.0.4/plugin-babel.js:25:29)\r\n    at eval (file:///Volumes/DATA/Bhavin/Projects/lab/gembatech/src/jspm_packages/npm/systemjs-plugin-babel@0.0.4/plugin-babel.js:186:4)\r\n    at eval (native)\r\n    at SystemJSNodeLoader.__exec (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:1395:16)\r\n    at entry.execute (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:3767:18)\r\n    at linkDynamicModule (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:3126:32)\r\n    at link (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:2969:11)\r\n    at Object.execute (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:3301:13)\r\n    at doDynamicExecute (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:703:25)\r\n    at link (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:905:20)\r\n    at doLink (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:557:7)\r\n    at updateLinkSetOnLoad (/Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:605:18)\r\n    at /Volumes/DATA/Bhavin/Projects/lab/gembatech/node_modules/systemjs/dist/system.src.js:417:11\r\n```"}}