{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/9359","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/9359/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/9359/comments","events_url":"https://api.github.com/repos/angular/angular/issues/9359/events","html_url":"https://github.com/angular/angular/issues/9359","id":161123266,"number":9359,"title":"UMD bundle cannot be used for RxJS","user":{"login":"arpit-agarwal","id":13412230,"avatar_url":"https://avatars.githubusercontent.com/u/13412230?v=3","gravatar_id":"","url":"https://api.github.com/users/arpit-agarwal","html_url":"https://github.com/arpit-agarwal","followers_url":"https://api.github.com/users/arpit-agarwal/followers","following_url":"https://api.github.com/users/arpit-agarwal/following{/other_user}","gists_url":"https://api.github.com/users/arpit-agarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/arpit-agarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arpit-agarwal/subscriptions","organizations_url":"https://api.github.com/users/arpit-agarwal/orgs","repos_url":"https://api.github.com/users/arpit-agarwal/repos","events_url":"https://api.github.com/users/arpit-agarwal/events{/privacy}","received_events_url":"https://api.github.com/users/arpit-agarwal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20packaging","name":"comp: packaging","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/flag:%20can%20be%20closed?","name":"flag: can be closed?","color":"bfdadc"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug","name":"type: bug","color":"EEEEEE"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20RFC%20/%20discussion%20/%20question","name":"type: RFC / discussion / question","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":65,"created_at":"2016-06-20T06:10:25Z","updated_at":"2016-10-25T13:45:01Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nI updated system-config.ts file to download umd file for rxjs I.e rxjs\\bundles\\Rx.umd.js. This worked. But I still see in dev tools a lot of individual JS being load like rxjs\\observer.js\r\n\r\n**Expected/desired behavior**\r\nWhen using UMD for rxjs it should not download individual files \r\n\r\n**Reproduction of the problem**\r\nSee this plunker  when you riun in full screen mode observe the files being loaded in dev tools. http://plnkr.co/edit/TvjW2YK3NVJ7sDb7cHV4?p=preview\r\n\r\nNo community response on question: http://stackoverflow.com/questions/37881825/using-rxjs-umd-bundles \r\n\r\n\r\n**What is the expected behavior?**\r\nWhen using UMD for rxjs it should not download individual files \r\n\r\n\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nTo reduce load request when angular app starting up\r\n\r\n\r\n**Please tell us about your environment:**\r\n\r\n* **Angular version:** 2.0.0-rc.2\r\n \r\n* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] \r\n Tested only on chrome\r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5 | Dart] \r\nTested with Typescript only\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/256038625","html_url":"https://github.com/angular/angular/issues/9359#issuecomment-256038625","issue_url":"https://api.github.com/repos/angular/angular/issues/9359","id":256038625,"user":{"login":"AlexanderLeonov","id":7725399,"avatar_url":"https://avatars.githubusercontent.com/u/7725399?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderLeonov","html_url":"https://github.com/AlexanderLeonov","followers_url":"https://api.github.com/users/AlexanderLeonov/followers","following_url":"https://api.github.com/users/AlexanderLeonov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderLeonov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderLeonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderLeonov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderLeonov/orgs","repos_url":"https://api.github.com/users/AlexanderLeonov/repos","events_url":"https://api.github.com/users/AlexanderLeonov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderLeonov/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T13:45:01Z","updated_at":"2016-10-25T13:45:01Z","body":"I have another issue directly related to this thread. I'm using only bundles in my app, beginning from dev. Particularly, I'm using http-testing bundle together with rxjs bundle for my unit tests. The issue is that http-testing directly imports 'rxjs/operators/take' which is not exported from rxjs bundle, so I ended up with the following error:\r\n```\r\nTypeError: undefined is not an object (evaluating 'rxjs_operator_take.take.call') (line 20)\r\nMockConnection\r\ncreateConnection\r\nhttpRequest\r\nrequest\r\nquery\r\n```\r\nI fixed it like this:\r\n- 're-export' it back myself in the one of my source files:\r\n```\r\nimport {Observable} from 'rxjs';\r\nexport const take = Observable.prototype.take;\r\n```\r\n- map this export in the system.js config:\r\n```\r\nmap: {\r\n    ......\r\n    'rxjs/operator/take': 'testing/ng2-http-testing-import-fix'\r\n}\r\n```\r\nIt worked well, but still I believe that this import should be fixed in the `/modules/@angular/http/testing/mock_backend.ts` code."}}
{"actor":{"display_login":"AlexanderLeonov"}}