{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/1494","repository_url":"https://api.github.com/repos/systemjs/systemjs","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/1494/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/1494/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/1494/events","html_url":"https://github.com/systemjs/systemjs/issues/1494","id":189865272,"number":1494,"title":"Create bundle from ES2015 modules fails with traceur-runtime error","user":{"login":"SamVerschueren","id":1913805,"avatar_url":"https://avatars.githubusercontent.com/u/1913805?v=3","gravatar_id":"","url":"https://api.github.com/users/SamVerschueren","html_url":"https://github.com/SamVerschueren","followers_url":"https://api.github.com/users/SamVerschueren/followers","following_url":"https://api.github.com/users/SamVerschueren/following{/other_user}","gists_url":"https://api.github.com/users/SamVerschueren/gists{/gist_id}","starred_url":"https://api.github.com/users/SamVerschueren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamVerschueren/subscriptions","organizations_url":"https://api.github.com/users/SamVerschueren/orgs","repos_url":"https://api.github.com/users/SamVerschueren/repos","events_url":"https://api.github.com/users/SamVerschueren/events{/privacy}","received_events_url":"https://api.github.com/users/SamVerschueren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-16T22:17:18Z","updated_at":"2016-11-17T08:59:45Z","closed_at":null,"body":"Hi\r\n\r\nFirst of all, I'm not a SystemJS expert at all, so if I say something that doesn't make sense, forgive me :).\r\n\r\nI'm trying to build my Angular2 application with treeshaking. If I understand correctly, rollup is integrated in SystemJS? Does this mean that if build a bundle from ES2015 modules, it should treeshake it automatically? And this way we don't have to run rollup ourselves?\r\n\r\nIf that is correct, this means that I have to transpile my TypeScript project to the `es2015` target because that's how Rollup works. After that, I try to build my bundle but I get this error\r\n\r\n<img width=\"1013\" alt=\"screen shot 2016-11-16 at 22 59 54\" src=\"https://cloud.githubusercontent.com/assets/1913805/20368055/a2f39592-ac52-11e6-90f8-f79bc0ae068d.png\">\r\n\r\n> Note: I receive the same error when I try to build a bundle from an AoT commonjs compiled Angular2 project\r\n\r\nI'm using the `builder.bundle` because I use lazy loading, not sure if this could cause the issue?"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/261191251","html_url":"https://github.com/systemjs/systemjs/issues/1494#issuecomment-261191251","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/1494","id":261191251,"user":{"login":"SamVerschueren","id":1913805,"avatar_url":"https://avatars.githubusercontent.com/u/1913805?v=3","gravatar_id":"","url":"https://api.github.com/users/SamVerschueren","html_url":"https://github.com/SamVerschueren","followers_url":"https://api.github.com/users/SamVerschueren/followers","following_url":"https://api.github.com/users/SamVerschueren/following{/other_user}","gists_url":"https://api.github.com/users/SamVerschueren/gists{/gist_id}","starred_url":"https://api.github.com/users/SamVerschueren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamVerschueren/subscriptions","organizations_url":"https://api.github.com/users/SamVerschueren/orgs","repos_url":"https://api.github.com/users/SamVerschueren/repos","events_url":"https://api.github.com/users/SamVerschueren/events{/privacy}","received_events_url":"https://api.github.com/users/SamVerschueren/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T08:59:45Z","updated_at":"2016-11-17T08:59:45Z","body":"The problem seems to be that in some cases, my bundle references `$traceurRuntime` which is causing this bug. When I simply compile my app with the TypeScript compiler (`tsc`) to the `commonjs` target, I can bundle it without `$traceurRuntime`. When I use the AoT compiler (`ngc`) which also transpiles to the `commonjs` format, I end up with `$traceurRuntime` in my code."}}
{"actor":{"display_login":"SamVerschueren"}}