File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 2424    "run-sequence" : " ^0.3.6" 
2525    "systemjs" : " ^0.9.1" 
2626    "through2" : " ^0.6.1" 
27-     "traceur" : " 0.0.74 " 
27+     "traceur" : " 0.0.79 " 
2828    "which" : " ~1" 
2929    "zone.js" : " 0.3.0" 
3030  },
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ var SELF_COMPILE_OPTIONS = {
1515} ; 
1616
1717var  needsReload  =  true ; 
18+ var  oldSystemGet  =  System . get ; 
1819
1920exports . reloadSources  =  function ( )  { 
2021  needsReload  =  true ; 
@@ -63,6 +64,16 @@ function reloadCompiler() {
6364  glob . sync ( __dirname  +  '/src/**/*.js' ) . forEach ( function ( fileName )  { 
6465    loadModule ( fileName ,  true ) ; 
6566  } ) ; 
67+ 
68+   // Traceur modules are register with the ".js" extension but we don't want 
69+   // to add it to all the import statements. 
70+   System . get  =  function  get ( normalizedName )  { 
71+     var  m  =  oldSystemGet . call ( this ,  normalizedName ) ; 
72+     if  ( ! m  &&  normalizedName . indexOf ( 'traceur' )  ==  0 )  { 
73+       m  =  oldSystemGet . call ( this ,  normalizedName  +  '.js' ) ; 
74+     } 
75+     return  m ; 
76+   } ; 
6677} 
6778
6879function  loadModule ( filepath ,  transpile )  { 
@@ -94,4 +105,4 @@ function extend(source, props) {
94105    res [ prop ]  =  props [ prop ] ; 
95106  } 
96107  return  res ; 
97- } 
108+ } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments