{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/951","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/951/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/951/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/951/events","html_url":"https://github.com/jspm/jspm-cli/issues/951","id":96038728,"number":951,"title":"Removing duplication automatically","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-20T10:50:32Z","updated_at":"2015-07-20T18:18:06Z","closed_at":null,"body":"I have three files which I load in the following order:\r\n\r\n```\r\ncore -> app -> article\r\n```\r\n\r\nAt the moment I bundle these like so, to remove duplication:\r\n\r\n```\r\ncore.js = core\r\napp.js = app - core\r\narticle.js = article - app - core\r\n```\r\n\r\nThis means that I have to manually instruct my bundle task which parts of the dependency graph to dedupe. Ideally this would be automatic.\r\n\r\nHave you thought about the ideal workflow around this?"},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/122972800","html_url":"https://github.com/jspm/jspm-cli/issues/951#issuecomment-122972800","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/951","id":122972800,"user":{"login":"Munter","id":331790,"avatar_url":"https://avatars.githubusercontent.com/u/331790?v=3","gravatar_id":"","url":"https://api.github.com/users/Munter","html_url":"https://github.com/Munter","followers_url":"https://api.github.com/users/Munter/followers","following_url":"https://api.github.com/users/Munter/following{/other_user}","gists_url":"https://api.github.com/users/Munter/gists{/gist_id}","starred_url":"https://api.github.com/users/Munter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Munter/subscriptions","organizations_url":"https://api.github.com/users/Munter/orgs","repos_url":"https://api.github.com/users/Munter/repos","events_url":"https://api.github.com/users/Munter/events{/privacy}","received_events_url":"https://api.github.com/users/Munter/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T18:18:06Z","updated_at":"2015-07-20T18:18:06Z","body":"I assetgraph we implemented a \"shared bundles\" strategy for the bundling transform, which will take all the given entry points into account and create optimal bundles based on shared and unique static requirements per entrypoint https://github.com/assetgraph/assetgraph/blob/master/lib/transforms/bundleRelations.js#L268-L270"}}