{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/626","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/626/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/626/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/626/events","html_url":"https://github.com/jspm/jspm-cli/issues/626","id":64691191,"number":626,"title":"npm packages with `\"format\": \"es6\"` get wrong annotations on node transforms ","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-03-27T04:29:42Z","updated_at":"2015-09-14T10:22:10Z","closed_at":"2015-04-19T23:50:35Z","body":"We have an npm package that is all es6. We've added `\"format\": \"es6\"`to our package.json. Our package directory structure has a bunch of directories containing index.js files.\r\n```\r\npackage/\r\n--components/\r\n----component1/\r\n------index.js\r\n----component2/\r\n------index.js\r\n```\r\nJSPM correctly identifies this structure and generates `component1.js` and `component2.js` which look like this:\r\n```\r\n\"format es6\";\r\nmodule.exports = require('./component1/index');\r\n```\r\nI assume `\"format es6\";` was added because of the package.json, but obviously this won't work now because SystemJS doesn't apply the cjs transforms."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/140029497","html_url":"https://github.com/jspm/jspm-cli/issues/626#issuecomment-140029497","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/626","id":140029497,"user":{"login":"hmalphettes","id":55289,"avatar_url":"https://avatars.githubusercontent.com/u/55289?v=3","gravatar_id":"","url":"https://api.github.com/users/hmalphettes","html_url":"https://github.com/hmalphettes","followers_url":"https://api.github.com/users/hmalphettes/followers","following_url":"https://api.github.com/users/hmalphettes/following{/other_user}","gists_url":"https://api.github.com/users/hmalphettes/gists{/gist_id}","starred_url":"https://api.github.com/users/hmalphettes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmalphettes/subscriptions","organizations_url":"https://api.github.com/users/hmalphettes/orgs","repos_url":"https://api.github.com/users/hmalphettes/repos","events_url":"https://api.github.com/users/hmalphettes/events{/privacy}","received_events_url":"https://api.github.com/users/hmalphettes/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T10:22:10Z","updated_at":"2015-09-14T10:22:10Z","body":"Now that nodejs-v4 is out I have been using a lot of 'ES6 scripting' along with CommonJS requires.\r\n\r\njspm/systemjs has been a fantastic for running this code in the latest Goog Chrome.\r\nI was hoping that the bundle builder and systemjs could be instructed to transpile ES6 into ES5 along with the CJS requires.\r\n\r\nWould it be a good idea to revisit this issue now that CJS-require combined with ES6 scripting is the mainstream style for nodejs developers?\r\n\r\nOtherwise I'll settle on transpiling to ES5 before I call jspm to bundle the files."}}