@@ -300,7 +300,7 @@ SystemJSLoader.prototype.config = function(cfg) {
300
300
// object map backwards-compat into packages configuration
301
301
if ( typeof v !== 'string' ) {
302
302
objMaps += ( objMaps . length ? ', ' : '' ) + '"' + p + '"' ;
303
- var normalized = this . normalizeSync ( p ) ;
303
+ var normalized = coreResolve . call ( this , p ) ;
304
304
305
305
// if doing default js extensions, undo to get package name
306
306
if ( this . defaultJSExtensions && p . substr ( p . length - 3 , 3 ) != '.js' )
@@ -333,7 +333,7 @@ SystemJSLoader.prototype.config = function(cfg) {
333
333
for ( var i = 0 ; i < cfg . packageConfigPaths . length ; i ++ ) {
334
334
var path = cfg . packageConfigPaths [ i ] ;
335
335
var packageLength = Math . max ( path . lastIndexOf ( '*' ) + 1 , path . lastIndexOf ( '/' ) ) ;
336
- var normalized = this . normalizeSync ( path . substr ( 0 , packageLength ) + '/' ) ;
336
+ var normalized = coreResolve . call ( this , path . substr ( 0 , packageLength ) + '/' ) ;
337
337
if ( this . defaultJSExtensions && path . substr ( path . length - 3 , 3 ) != '.js' )
338
338
normalized = normalized . substr ( 0 , normalized . length - 3 ) ;
339
339
packageConfigPaths [ i ] = normalized . substr ( 0 , normalized . length - 1 ) + path . substr ( packageLength ) ;
@@ -347,7 +347,7 @@ SystemJSLoader.prototype.config = function(cfg) {
347
347
throw new TypeError ( '"' + p + '" is not a valid package name.' ) ;
348
348
349
349
// request with trailing "/" to get package name exactly
350
- var prop = this . normalizeSync ( p + ( p [ p . length - 1 ] != '/' ? '/' : '' ) ) ;
350
+ var prop = coreResolve . call ( this , p + ( p [ p . length - 1 ] != '/' ? '/' : '' ) ) ;
351
351
prop = prop . substr ( 0 , prop . length - 1 ) ;
352
352
353
353
// if doing default js extensions, undo to get package name
@@ -376,7 +376,7 @@ SystemJSLoader.prototype.config = function(cfg) {
376
376
for ( var p in cfg . bundles ) {
377
377
var bundle = [ ] ;
378
378
for ( var i = 0 ; i < cfg . bundles [ p ] . length ; i ++ )
379
- bundle . push ( this . normalizeSync ( cfg . bundles [ p ] [ i ] ) ) ;
379
+ bundle . push ( coreResolve . call ( this , cfg . bundles [ p ] [ i ] ) ) ;
380
380
this . bundles [ p ] = bundle ;
381
381
}
382
382
}
@@ -401,7 +401,7 @@ SystemJSLoader.prototype.config = function(cfg) {
401
401
if ( c == 'meta' && p [ 0 ] == '*' )
402
402
this [ c ] [ p ] = v [ p ] ;
403
403
else if ( normalizeProp )
404
- this [ c ] [ this . normalizeSync ( p ) ] = v [ p ] ;
404
+ this [ c ] [ coreResolve . call ( this , p ) ] = v [ p ] ;
405
405
else
406
406
this [ c ] [ p ] = v [ p ] ;
407
407
}
0 commit comments