ensure defaultJSExtensions config applies first

This commit is contained in:
guybedford 2015-08-06 00:45:13 +02:00
parent ce1c89ac30
commit b08abf1a2c

View File

@ -137,6 +137,9 @@ SystemJSLoader.prototype.config = function(cfg) {
getBaseURLObj.call(this);
}
if (cfg.defaultJSExtensions)
this.defaultJSExtensions = cfg.defaultJSExtensions;
if (cfg.paths) {
for (var p in cfg.paths)
this.paths[p] = cfg.paths[p];