File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/language-service Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 66 * found in the LICENSE file at https://angular.io/license
77 */
88
9- import ts from 'typescript' ;
9+ // Note: use a type-only import to prevent TypeScript from being bundled in.
10+ import type ts from 'typescript' ;
1011
1112import { NgLanguageService , PluginConfig } from './api' ;
1213
@@ -24,7 +25,7 @@ export const factory: ts.server.PluginModuleFactory = (tsModule): PluginModule =
2425 return plugin . create ( info ) ;
2526 } ,
2627 getExternalFiles ( project : ts . server . Project ) : string [ ] {
27- return plugin ?. getExternalFiles ?.( project , ts . ProgramUpdateLevel . Full ) ?? [ ] ;
28+ return plugin ?. getExternalFiles ?.( project , tsModule . typescript . ProgramUpdateLevel . Full ) ?? [ ] ;
2829 } ,
2930 onConfigurationChanged ( config : PluginConfig ) : void {
3031 plugin ?. onConfigurationChanged ?.( config ) ;
You can’t perform that action at this time.
0 commit comments