@@ -33,15 +33,8 @@ export interface MultiCompilerHost {
33
33
}
34
34
35
35
export function createMultiCompilerHost ( fs : Package ) : MultiCompilerHost {
36
- const useCaseSensitiveFileNames = ( ) => false ;
37
36
const getCanonicalFileName = ts . createGetCanonicalFileName ( false ) ;
38
- const getCurrentDirectory = ( ) => "/" ;
39
- const getNewLine = ( ) => "\n" ;
40
- const getDefaultLibFileName = ( ) => "/node_modules/typescript/lib/lib.d.ts" ;
41
37
const toPath = ( fileName : string ) => ts . toPath ( fileName , "/" , getCanonicalFileName ) ;
42
- const writeFile = ( ) => {
43
- throw new Error ( "Not implemented" ) ;
44
- } ;
45
38
const languageVersion = ts . ScriptTarget . Latest ;
46
39
const traceCollector = createTraceCollector ( ) ;
47
40
const compilerOptions : Record < ResolutionOption , ts . CompilerOptions > = {
@@ -231,12 +224,14 @@ export function createMultiCompilerHost(fs: Package): MultiCompilerHost {
231
224
sourceFileCache . set ( path , sourceFile ) ;
232
225
return sourceFile ;
233
226
} ,
234
- getDefaultLibFileName,
235
- getCurrentDirectory,
236
- writeFile,
227
+ getDefaultLibFileName : ( ) => "/node_modules/typescript/lib/lib.d.ts" ,
228
+ getCurrentDirectory : ( ) => "/" ,
229
+ writeFile : ( ) => {
230
+ throw new Error ( "Not implemented" ) ;
231
+ } ,
237
232
getCanonicalFileName,
238
- useCaseSensitiveFileNames,
239
- getNewLine,
233
+ useCaseSensitiveFileNames : ( ) => false ,
234
+ getNewLine : ( ) => "\n" ,
240
235
trace : traceCollector . trace ,
241
236
resolveModuleNameLiterals ( moduleLiterals , containingFile , _redirectedReference , options , containingSourceFile ) {
242
237
return moduleLiterals . map (
0 commit comments