File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/vite-plugin-angular/src/lib Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export function angular(options?: PluginOptions): Plugin[] {
151151 isLib : boolean ;
152152 } | null = null ;
153153
154+ const ts = require ( 'typescript' ) ;
154155 let builder : ts . BuilderProgram | ts . EmitAndSemanticDiagnosticsBuilderProgram ;
155156 let nextProgram : NgtscProgram | undefined ;
156157 // Caches (always rebuild Angular program per user request)
@@ -990,7 +991,7 @@ export function angular(options?: PluginOptions): Plugin[] {
990991 } else {
991992 host = ts . createIncrementalCompilerHost ( tsCompilerOptions , {
992993 ...ts . sys ,
993- readFile ( path , encoding ) {
994+ readFile ( path : string , encoding : string ) {
994995 if ( fileTransformMap . has ( path ) ) {
995996 return fileTransformMap . get ( path ) ;
996997 }
You can’t perform that action at this time.
0 commit comments