(function( global ) { // .... code removed .... System.config({ // .... code removed .... }); // Load "./app/main.ts" (gets full path from package configuration above). // -- // NOTE: We are attaching the resultant promise to the global scope so that other // scripts may listen for the successful loading of the application. global.bootstrapping = System .import( "app" ) .then( function handleResolve() { console.info( "System.js successfully bootstrapped app." ); }, function handleReject( error ) { console.warn( "System.js could not bootstrap the app." ); console.error( error ); return( Promise.reject( error ) ); } ) ; })( window );