@@ -571,7 +571,7 @@ var typingsInstallerFile = path.join(builtLocalDirectory, "typingsInstaller.js")
571
571
compileFile ( typingsInstallerFile , typingsInstallerSources , [ builtLocalDirectory ] . concat ( typingsInstallerSources ) , /*prefixes*/ [ copyright ] , /*useBuiltCompiler*/ true , { outDir : builtLocalDirectory , noOutFile : false } ) ;
572
572
573
573
var 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 } ) ;
575
575
var tsserverLibraryFile = path . join ( builtLocalDirectory , "tsserverlibrary.js" ) ;
576
576
var tsserverLibraryDefinitionFile = path . join ( builtLocalDirectory , "tsserverlibrary.d.ts" ) ;
577
577
compileFile (
@@ -580,7 +580,7 @@ compileFile(
580
580
[ builtLocalDirectory , copyright , builtLocalCompiler ] . concat ( languageServiceLibrarySources ) . concat ( libraryTargets ) ,
581
581
/*prefixes*/ [ copyright ] ,
582
582
/*useBuiltCompiler*/ true ,
583
- { noOutFile : false , generateDeclarations : true , stripInternal : true } ,
583
+ { noOutFile : false , generateDeclarations : true , stripInternal : true , preserveConstEnums : true } ,
584
584
/*callback*/ function ( ) {
585
585
prependFile ( copyright , tsserverLibraryDefinitionFile ) ;
586
586
0 commit comments