@@ -312,10 +312,7 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, opts
312312 }
313313
314314 if ( useDebugMode ) {
315- options += " -sourcemap" ;
316- if ( ! opts . noMapRoot ) {
317- options += " -mapRoot file:///" + path . resolve ( path . dirname ( outFile ) ) ;
318- }
315+ options += " --inlineSourceMap --inlineSources" ;
319316 } else {
320317 options += " --newLine LF" ;
321318 }
@@ -485,7 +482,6 @@ var tscFile = path.join(builtLocalDirectory, compilerFilename);
485482compileFile ( tscFile , compilerSources , [ builtLocalDirectory , copyright ] . concat ( compilerSources ) , [ copyright ] , /*useBuiltCompiler:*/ false ) ;
486483
487484var servicesFile = path . join ( builtLocalDirectory , "typescriptServices.js" ) ;
488- var servicesFileInBrowserTest = path . join ( builtLocalDirectory , "typescriptServicesInBrowserTest.js" ) ;
489485var standaloneDefinitionsFile = path . join ( builtLocalDirectory , "typescriptServices.d.ts" ) ;
490486var nodePackageFile = path . join ( builtLocalDirectory , "typescript.js" ) ;
491487var nodeDefinitionsFile = path . join ( builtLocalDirectory , "typescript.d.ts" ) ;
@@ -517,16 +513,6 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca
517513 fs . writeFileSync ( nodeStandaloneDefinitionsFile , nodeStandaloneDefinitionsFileContents ) ;
518514 } ) ;
519515
520- compileFile ( servicesFileInBrowserTest , servicesSources , [ builtLocalDirectory , copyright ] . concat ( servicesSources ) ,
521- /*prefixes*/ [ copyright ] ,
522- /*useBuiltCompiler*/ true ,
523- { noOutFile : false , generateDeclarations : true , preserveConstEnums : true , keepComments : true , noResolve : false , stripInternal : true , noMapRoot : true } ,
524- /*callback*/ function ( ) {
525- var content = fs . readFileSync ( servicesFileInBrowserTest ) . toString ( ) ;
526- var i = content . lastIndexOf ( "\n" ) ;
527- fs . writeFileSync ( servicesFileInBrowserTest , content . substring ( 0 , i ) + "\r\n//# sourceURL=../built/local/typeScriptServices.js" + content . substring ( i ) ) ;
528- } ) ;
529-
530516
531517var serverFile = path . join ( builtLocalDirectory , "tsserver.js" ) ;
532518compileFile ( serverFile , serverSources , [ builtLocalDirectory , copyright ] . concat ( serverSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true ) ;
@@ -839,12 +825,12 @@ compileFile(nodeServerOutFile, [nodeServerInFile], [builtLocalDirectory, tscFile
839825
840826desc ( "Runs browserify on run.js to produce a file suitable for running tests in the browser" ) ;
841827task ( "browserify" , [ "tests" , builtLocalDirectory , nodeServerOutFile ] , function ( ) {
842- var cmd = 'browserify built/local/run.js -o built/local/bundle.js' ;
828+ var cmd = 'browserify built/local/run.js -d - o built/local/bundle.js' ;
843829 exec ( cmd ) ;
844830} , { async : true } ) ;
845831
846832desc ( "Runs the tests using the built run.js file like 'jake runtests'. Syntax is jake runtests-browser. Additional optional parameters tests=[regex], port=, browser=[chrome|IE]" ) ;
847- task ( "runtests-browser" , [ "tests" , "browserify" , builtLocalDirectory , servicesFileInBrowserTest ] , function ( ) {
833+ task ( "runtests-browser" , [ "tests" , "browserify" , builtLocalDirectory , servicesFile ] , function ( ) {
848834 cleanTestDirs ( ) ;
849835 host = "node" ;
850836 port = process . env . port || process . env . p || '8888' ;
0 commit comments