{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/596","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/596/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/596/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/596/events","html_url":"https://github.com/systemjs/systemjs/issues/596","id":95555158,"number":596,"title":"Compose mapped module IDs","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-16T23:55:07Z","updated_at":"2015-07-24T17:54:26Z","closed_at":"2015-07-24T13:13:07Z","body":"I have installed `when`. I want to alias `Promise` to `when/es6-shim/Promise`.\r\n\r\nUnfortunately you cannot do:\r\n\r\n``` js\r\nSystem.config({\r\n  map: {\r\n    \"when\": \"github:cujojs/when@3.7.3\",\r\n    \"Promise\": \"when/es6-shim/Promise\"\r\n  }\r\n});\r\n```\r\n\r\nIs there any other way of achieving this?"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/124599087","html_url":"https://github.com/systemjs/systemjs/issues/596#issuecomment-124599087","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/596","id":124599087,"user":{"login":"unional","id":3254987,"avatar_url":"https://avatars.githubusercontent.com/u/3254987?v=3","gravatar_id":"","url":"https://api.github.com/users/unional","html_url":"https://github.com/unional","followers_url":"https://api.github.com/users/unional/followers","following_url":"https://api.github.com/users/unional/following{/other_user}","gists_url":"https://api.github.com/users/unional/gists{/gist_id}","starred_url":"https://api.github.com/users/unional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unional/subscriptions","organizations_url":"https://api.github.com/users/unional/orgs","repos_url":"https://api.github.com/users/unional/repos","events_url":"https://api.github.com/users/unional/events{/privacy}","received_events_url":"https://api.github.com/users/unional/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T17:54:26Z","updated_at":"2015-07-24T17:54:26Z","body":"@guybedford , the global map way is not working:\r\n\r\nIn development console:\r\n> Promise.toString()\r\n< \"function Promise() { [native code] }\"\r\n> System.import(\"when/es6-shim/Promise\").then(function(Promise) { console.log(Promise.toString())})\r\n< Promise {[[PromiseStatus]]: \"pending\", [[PromiseValue]]: undefined}\r\nThe global Promise is still native promise."}}