@@ -571,7 +571,7 @@ var typingsInstallerFile = path.join(builtLocalDirectory, "typingsInstaller.js")
571571compileFile ( typingsInstallerFile , typingsInstallerSources , [ builtLocalDirectory ] . concat ( typingsInstallerSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { outDir : builtLocalDirectory , noOutFile : false } ) ;
572572
573573var serverFile = path . join ( builtLocalDirectory , "tsserver.js" ) ;
574- compileFile ( serverFile , serverSources , [ builtLocalDirectory , copyright , cancellationTokenFile , typingsInstallerFile ] . concat ( serverSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { types : [ "node" ] } ) ;
574+ compileFile ( serverFile , serverSources , [ builtLocalDirectory , copyright , cancellationTokenFile , typingsInstallerFile ] . concat ( serverSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { types : [ "node" ] , preserveConstEnums : true } ) ;
575575var tsserverLibraryFile = path . join ( builtLocalDirectory , "tsserverlibrary.js" ) ;
576576var tsserverLibraryDefinitionFile = path . join ( builtLocalDirectory , "tsserverlibrary.d.ts" ) ;
577577compileFile (
@@ -580,7 +580,7 @@ compileFile(
580580 [ builtLocalDirectory , copyright , builtLocalCompiler ] . concat ( languageServiceLibrarySources ) . concat ( libraryTargets ) ,
581581 /*prefixes*/ [ copyright ] ,
582582 /*useBuiltCompiler*/ true ,
583- { noOutFile : false , generateDeclarations : true , stripInternal : true } ,
583+ { noOutFile : false , generateDeclarations : true , stripInternal : true , preserveConstEnums : true } ,
584584 /*callback*/ function ( ) {
585585 prependFile ( copyright , tsserverLibraryDefinitionFile ) ;
586586
0 commit comments