Created
January 4, 2016 16:31
-
-
Save odoe/d64caed1422af94dae93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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