{"action":"closed","issue":{"url":"https://api.github.com/repos/liferay/liferay-amd-loader/issues/46","labels_url":"https://api.github.com/repos/liferay/liferay-amd-loader/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/liferay/liferay-amd-loader/issues/46/comments","events_url":"https://api.github.com/repos/liferay/liferay-amd-loader/issues/46/events","html_url":"https://github.com/liferay/liferay-amd-loader/issues/46","id":126908616,"number":46,"title":"Feature request: specifing a function to transform module names, similar to map","user":{"login":"willywongi","id":115992,"avatar_url":"https://avatars.githubusercontent.com/u/115992?v=3","gravatar_id":"","url":"https://api.github.com/users/willywongi","html_url":"https://github.com/willywongi","followers_url":"https://api.github.com/users/willywongi/followers","following_url":"https://api.github.com/users/willywongi/following{/other_user}","gists_url":"https://api.github.com/users/willywongi/gists{/gist_id}","starred_url":"https://api.github.com/users/willywongi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willywongi/subscriptions","organizations_url":"https://api.github.com/users/willywongi/orgs","repos_url":"https://api.github.com/users/willywongi/repos","events_url":"https://api.github.com/users/willywongi/events{/privacy}","received_events_url":"https://api.github.com/users/willywongi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/liferay/liferay-amd-loader/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"ipeychev","id":78014,"avatar_url":"https://avatars.githubusercontent.com/u/78014?v=3","gravatar_id":"","url":"https://api.github.com/users/ipeychev","html_url":"https://github.com/ipeychev","followers_url":"https://api.github.com/users/ipeychev/followers","following_url":"https://api.github.com/users/ipeychev/following{/other_user}","gists_url":"https://api.github.com/users/ipeychev/gists{/gist_id}","starred_url":"https://api.github.com/users/ipeychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipeychev/subscriptions","organizations_url":"https://api.github.com/users/ipeychev/orgs","repos_url":"https://api.github.com/users/ipeychev/repos","events_url":"https://api.github.com/users/ipeychev/events{/privacy}","received_events_url":"https://api.github.com/users/ipeychev/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/liferay/liferay-amd-loader/milestones/13","html_url":"https://github.com/liferay/liferay-amd-loader/milestones/1.4.0","labels_url":"https://api.github.com/repos/liferay/liferay-amd-loader/milestones/13/labels","id":1538635,"number":13,"title":"1.4.0","description":"","creator":{"login":"ipeychev","id":78014,"avatar_url":"https://avatars.githubusercontent.com/u/78014?v=3","gravatar_id":"","url":"https://api.github.com/users/ipeychev","html_url":"https://github.com/ipeychev","followers_url":"https://api.github.com/users/ipeychev/followers","following_url":"https://api.github.com/users/ipeychev/following{/other_user}","gists_url":"https://api.github.com/users/ipeychev/gists{/gist_id}","starred_url":"https://api.github.com/users/ipeychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipeychev/subscriptions","organizations_url":"https://api.github.com/users/ipeychev/orgs","repos_url":"https://api.github.com/users/ipeychev/repos","events_url":"https://api.github.com/users/ipeychev/events{/privacy}","received_events_url":"https://api.github.com/users/ipeychev/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2016-01-23T14:23:41Z","updated_at":"2016-01-23T14:29:35Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-01-15T16:38:47Z","updated_at":"2016-01-23T14:29:35Z","closed_at":"2016-01-23T14:29:35Z","body":"I would like to configure the loader in order to translate module names with a custom function, eg.:\r\n```javascript\r\n__CONFIG__.replacements = {\r\n    \"^vendor\\.\": function(name) {\r\n        return name + \".min\";\r\n    }\r\n}\r\n```\r\nAs you can see from this example, it would be nice to have a mapping between names/regexps and functions, so that I could only translate some of the module names."}}