{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/403","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/403/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/403/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/403/events","html_url":"https://github.com/systemjs/systemjs/issues/403","id":68930562,"number":403,"title":"Overlapping bundles results in extraneous HTTP request","user":{"login":"OliverJAsh","id":921609,"avatar_url":"https://avatars.githubusercontent.com/u/921609?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverJAsh","html_url":"https://github.com/OliverJAsh","followers_url":"https://api.github.com/users/OliverJAsh/followers","following_url":"https://api.github.com/users/OliverJAsh/following{/other_user}","gists_url":"https://api.github.com/users/OliverJAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverJAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverJAsh/subscriptions","organizations_url":"https://api.github.com/users/OliverJAsh/orgs","repos_url":"https://api.github.com/users/OliverJAsh/repos","events_url":"https://api.github.com/users/OliverJAsh/events{/privacy}","received_events_url":"https://api.github.com/users/OliverJAsh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemjs/systemjs/labels/current%20release","name":"current release","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-16T14:01:30Z","updated_at":"2015-04-23T11:36:15Z","closed_at":null,"body":"``` js\r\n// config.js\r\n{\r\n    \"bundles\": {\r\n        \"bar\": [\"a\", \"c\"],\r\n        \"foo\": [\"a\", \"b\"]\r\n    }\r\n}\r\n```\r\n\r\n``` js\r\n// b.js\r\nimport a from 'a';\r\n```\r\n\r\n``` js\r\n// c.js\r\nimport a from 'a';\r\n```\r\n\r\n``` js\r\n// app\r\nSystem.import('b')\r\n```\r\n\r\nI have two bundles that have overlap in their transitive dependencies.\r\n\r\nWhen I import `b`, SystemJS appears to retrieve the dependency `a` from the `bar` bundle, even though it was already downloaded from the bundle `foo`. This means we have an extraneous HTTP request for a bundle that shouldn't be needed."},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/95555146","html_url":"https://github.com/systemjs/systemjs/issues/403#issuecomment-95555146","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/403","id":95555146,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T11:36:15Z","updated_at":"2015-04-23T11:36:15Z","body":"Just tested it out in full and the fix above has definitely resolved this!"}}