{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/5665","labels_url":"https://api.github.com/repos/angular/angular/issues/5665/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/5665/comments","events_url":"https://api.github.com/repos/angular/angular/issues/5665/events","html_url":"https://github.com/angular/angular/issues/5665","id":120786399,"number":5665,"title":"Changes to the SFX bundle","user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20build/pipeline","name":"comp: build/pipeline","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/effort2:%20medium%20(day)","name":"effort2: medium (day)","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular/labels/P1:%20urgent","name":"P1: urgent","color":"eb6420"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20chore","name":"type: chore","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/49","html_url":"https://github.com/angular/angular/milestones/beta.0","labels_url":"https://api.github.com/repos/angular/angular/milestones/49/labels","id":1339148,"number":49,"title":"beta.0","description":"Issues which must close before we declare beta.","creator":{"login":"naomiblack","id":2286589,"avatar_url":"https://avatars.githubusercontent.com/u/2286589?v=3","gravatar_id":"","url":"https://api.github.com/users/naomiblack","html_url":"https://github.com/naomiblack","followers_url":"https://api.github.com/users/naomiblack/followers","following_url":"https://api.github.com/users/naomiblack/following{/other_user}","gists_url":"https://api.github.com/users/naomiblack/gists{/gist_id}","starred_url":"https://api.github.com/users/naomiblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naomiblack/subscriptions","organizations_url":"https://api.github.com/users/naomiblack/orgs","repos_url":"https://api.github.com/users/naomiblack/repos","events_url":"https://api.github.com/users/naomiblack/events{/privacy}","received_events_url":"https://api.github.com/users/naomiblack/received_events","type":"User","site_admin":false},"open_issues":61,"closed_issues":143,"state":"open","created_at":"2015-10-05T21:32:20Z","updated_at":"2015-12-07T18:47:19Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-12-07T14:33:41Z","updated_at":"2015-12-07T20:51:52Z","closed_at":null,"body":"To start with the current SFX bundle (`angular2.sfx.dev`):\r\n* contains the following barrels: zone, reflect-metadata, common, core, instrumentation, platform/browser, upgrade, http, router:\r\n    * common, core, instrumentation, platform/browser are exported on the `ng` namespace\r\n    * http is exported on the `ngHttp` namespace\r\n    * router is exported on the `ngRouter` namespace\r\n* is using `dev` output\r\n* isn't minified\r\n* doesn't have source maps\r\n* provides support for [noConflict mode](https://github.com/angular/angular/blob/c6d6b756910b793a58c27bd219a54cf34eea090a/modules/angular2/angular2_sfx.ts#L19-L22) -> although it is broken now since it doesn't restore `ngHttp` and `ngRouter` namespaces\r\n\r\nAs part of our bundling discussion(s) we've been several times touching upon role, content and setup of the SFX bundle. More specifically the open questions were / are:\r\n* who is the main consumer of the SFX bundle (ES5, ngUpgrade?). AFAIK @rkirov is aware of another use-case\r\n* shell we use the same bundle for ES5 and ngUpgrade scenarios?\r\n* what should be the content? Some barrels are non-controversial (common, core, instrumentation, platform/browser) other are disputable\r\n* what exact namespaces shell be used to export different barrels?\r\n* should we keep the non-conflict mode?\r\n\r\nFrom the list above we can see that there are number of small decisions that we need to take."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/162658182","html_url":"https://github.com/angular/angular/issues/5665#issuecomment-162658182","issue_url":"https://api.github.com/repos/angular/angular/issues/5665","id":162658182,"user":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T20:51:52Z","updated_at":"2015-12-07T20:51:52Z","body":"+1 to @pkozlowski-opensource's  proposal except for the namespaces.\r\n\r\nI think we should preserve the namespaces as they are in es6/typescript, but reexport via the `ng` namespace the most commonly needed stuff used for defining components, directives, pipes and services via chained DSL. This should be just a handful of symbols and we should document that they are being reexported in ES5 bundles for convenience."}}