{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/912","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/912/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/912/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/912/events","html_url":"https://github.com/jspm/jspm-cli/issues/912","id":93302201,"number":912,"title":"Bundled TypeScript is still fetched.","user":{"login":"Zoltu","id":886059,"avatar_url":"https://avatars.githubusercontent.com/u/886059?v=3","gravatar_id":"","url":"https://api.github.com/users/Zoltu","html_url":"https://github.com/Zoltu","followers_url":"https://api.github.com/users/Zoltu/followers","following_url":"https://api.github.com/users/Zoltu/following{/other_user}","gists_url":"https://api.github.com/users/Zoltu/gists{/gist_id}","starred_url":"https://api.github.com/users/Zoltu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zoltu/subscriptions","organizations_url":"https://api.github.com/users/Zoltu/orgs","repos_url":"https://api.github.com/users/Zoltu/repos","events_url":"https://api.github.com/users/Zoltu/events{/privacy}","received_events_url":"https://api.github.com/users/Zoltu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-06T15:10:05Z","updated_at":"2015-07-18T04:00:10Z","closed_at":null,"body":"I have a TypeScript application (Aurelia framework).  I bundle using the following command:\r\n```\r\nnode_modules/.bin/jspm bundle source/main + source/app + source/about dist/bundle.js --minify --skip-source-maps\r\n```\r\n\r\nHowever, when I navigate to my application, I can see chrome fetching `source/main.ts` as well as the TypeScript compiler.  The primary reason I am bundling is so that I am not doing runtime transpilation since that appears to be a substantial portion of my load time, plus the TypeScript compiler is 2.3MB.\r\n\r\nWhy is `source/main.ts` still being fetched when I have bundled it in?  Is this a bug specific to bundling TypeScript or am I using jspm bundle wrong?\r\n\r\nNote: many other TS files are also being fetched, I just used main as an example because it is the first in my case.  I am also seeing my CSS and HTML files fetched, as well as a handful of dependencies (though not nearly as many as without bundling).  My expectation was that if I bundled, there would only be ~4 files downloaded.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/886059/8525543/5639c382-23b6-11e5-8959-69fccdf9da1f.png)\r\n"},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/122480172","html_url":"https://github.com/jspm/jspm-cli/issues/912#issuecomment-122480172","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/912","id":122480172,"user":{"login":"WorldMaker","id":129777,"avatar_url":"https://avatars.githubusercontent.com/u/129777?v=3","gravatar_id":"","url":"https://api.github.com/users/WorldMaker","html_url":"https://github.com/WorldMaker","followers_url":"https://api.github.com/users/WorldMaker/followers","following_url":"https://api.github.com/users/WorldMaker/following{/other_user}","gists_url":"https://api.github.com/users/WorldMaker/gists{/gist_id}","starred_url":"https://api.github.com/users/WorldMaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorldMaker/subscriptions","organizations_url":"https://api.github.com/users/WorldMaker/orgs","repos_url":"https://api.github.com/users/WorldMaker/repos","events_url":"https://api.github.com/users/WorldMaker/events{/privacy}","received_events_url":"https://api.github.com/users/WorldMaker/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T04:00:10Z","updated_at":"2015-07-18T04:00:10Z","body":"Ah, I think I see now. That does seem to be an issue. I'm more familiar with [plugin-typescript](https://github.com/frankwallis/plugin-typescript) and using TypeScript as transpiler option is new to me (and seems rather recent to SystemJS as well). (I've mostly preferred to do my own tsc compilation step to date. That said, TypeScript as transpiler is a compelling option moving forward to skip the Babel/Traceur step; I'll definitely look to consider it when bundle support happens... Neat.)\r\n\r\nAnyway, I just did a brief code walk about the issue: JSPM just rehosts the [systemjs-builder](https://github.com/systemjs/builder) and there are a bunch of TypeScript issues posted over there, especially systemjs/builder#236 which is acting as an overall progress tracker for TypeScript support in the bundler.\r\n\r\nSo yes, it looks like the TypeScript transpilation option is new enough/bleeding edge enough that it doesn't bundle correctly yet. You might want to repost your particular findings in one of the issues over at systemjs/builder.\r\n"}}