{"action":"closed","issue":{"url":"https://api.github.com/repos/stealjs/steal/issues/392","labels_url":"https://api.github.com/repos/stealjs/steal/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/stealjs/steal/issues/392/comments","events_url":"https://api.github.com/repos/stealjs/steal/issues/392/events","html_url":"https://github.com/stealjs/steal/issues/392","id":68215867,"number":392,"title":"configDependencies can overwrite package.json data","user":{"login":"justinbmeyer","id":78602,"avatar_url":"https://avatars.githubusercontent.com/u/78602?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stealjs/steal/labels/feature","name":"feature","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/stealjs/steal/milestones/13","html_url":"https://github.com/stealjs/steal/milestones/0.9.0","labels_url":"https://api.github.com/repos/stealjs/steal/milestones/13/labels","id":1058202,"number":13,"title":"0.9.0","description":"","creator":{"login":"matthewp","id":361671,"avatar_url":"https://avatars.githubusercontent.com/u/361671?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewp","html_url":"https://github.com/matthewp","followers_url":"https://api.github.com/users/matthewp/followers","following_url":"https://api.github.com/users/matthewp/following{/other_user}","gists_url":"https://api.github.com/users/matthewp/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewp/subscriptions","organizations_url":"https://api.github.com/users/matthewp/orgs","repos_url":"https://api.github.com/users/matthewp/repos","events_url":"https://api.github.com/users/matthewp/events{/privacy}","received_events_url":"https://api.github.com/users/matthewp/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":8,"state":"open","created_at":"2015-04-08T12:57:44Z","updated_at":"2015-04-17T19:38:31Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-13T23:11:45Z","updated_at":"2015-04-17T19:38:31Z","closed_at":"2015-04-17T19:38:31Z","body":"Ideally, I would like to be able to do:\r\n\r\n```js\r\n// package.json\r\nsystem: {\r\n  configDependencies: [\"system-config\"]\r\n}\r\n```\r\n\r\n```js\r\n// system-config.js\r\nvar MySystem = require('@loader');\r\nvar toBeExported = {};\r\nif(MySystem.env === \"development\" && typeof window === \"undefined\") {\r\n    toBeExported = {\r\n\t\tmeta: {\r\n\t\t\t'jquery': {\r\n\t\t\t\t\"format\": \"global\",\r\n\t\t\t\t\"exports\": \"jQuery\",\r\n\t\t\t\t\"deps\": [\"can/util/vdom/vdom\"]\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}\r\nmodule.exports = toBeExported;\r\n```\r\n\r\nThis would make \"vdom\" a dependency of \"jquery\" when there is no dom.\r\n\r\nAlso, I would like this to be run through the normal \"converter\" logic that changes \"jquery\" to 'jquery@1.11.2#dist/jquery'.\r\n\r\nEventually, conditional loading can do away with this for modules that we have control over, but this will still be needed for things like jQuery.\r\n\r\n\r\n"}}