{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/1758","repository_url":"https://api.github.com/repos/jspm/jspm-cli","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1758/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1758/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1758/events","html_url":"https://github.com/jspm/jspm-cli/issues/1758","id":151389868,"number":1758,"title":"Move the injected \"bundles\" property outside of jspm.browser.js","user":{"login":"Palid","id":3636685,"avatar_url":"https://avatars.githubusercontent.com/u/3636685?v=3","gravatar_id":"","url":"https://api.github.com/users/Palid","html_url":"https://github.com/Palid","followers_url":"https://api.github.com/users/Palid/followers","following_url":"https://api.github.com/users/Palid/following{/other_user}","gists_url":"https://api.github.com/users/Palid/gists{/gist_id}","starred_url":"https://api.github.com/users/Palid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palid/subscriptions","organizations_url":"https://api.github.com/users/Palid/orgs","repos_url":"https://api.github.com/users/Palid/repos","events_url":"https://api.github.com/users/Palid/events{/privacy}","received_events_url":"https://api.github.com/users/Palid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-27T13:46:18Z","updated_at":"2016-04-29T11:42:20Z","closed_at":null,"body":"Please move the injected properties outside of the `jspm.browser.js`. Our team is overriding the file all the time in such a way that automerging is really hard due to usage of `jspm bundle -wid`. We have recently switched to injecting from builder, but that doesn't change a thing to the huge array. \r\nIMHO The simplest fix would be to provide a flag for both builder and CI that would allow to give destination/path to the object with only `bundles` property. This would allow to just have the file in .gitignore and forget about stupid merges."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/215690522","html_url":"https://github.com/jspm/jspm-cli/issues/1758#issuecomment-215690522","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1758","id":215690522,"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":"2016-04-29T11:42:20Z","updated_at":"2016-04-29T11:42:20Z","body":"@Palid I'm not suggesting overriding any hooks, but simply writing a custom build script looking like:\r\n\r\n```javascript\r\nvar Builder = require('jspm').Builder;\r\nvar builder = new Builder();\r\n\r\nbuilder.build('app/main.js').then(function(output) {\r\n  var customProductionConfig = { bundles: {} };\r\n  customProductionConfig.bundles['my-custom-bundle'] = output.modules;\r\n  injectIntoProduction(customProductionConfig);\r\n});\r\n```"}}