Skip to content

Instantly share code, notes, and snippets.

@odoe
Created January 4, 2016 16:31
Show Gist options
  • Save odoe/d64caed1422af94dae93 to your computer and use it in GitHub Desktop.
Save odoe/d64caed1422af94dae93 to your computer and use it in GitHub Desktop.
(function () {
var systemnormalize = System.normalize;
var blacklist = ['systemjs-json'];
function shouldReverse(parts) {
return parts.every(function (part) {
return blacklist.indexOf(part) === -1;
});
}
System.normalize = function (name, parentName) {
var parts = name.split('!');
if (parts.length > 1 && shouldReverse(parts)) {
name = parts.reverse().join('!');
}
return systemnormalize.call(this, name, parentName);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment