/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/language-service/plugin-factory.ts
18 строк
559 B
Charles Lyding
refactor(language-service): delegate plugin initialization to bundle
02 фев 2026, 22:07
02 фев 2026, 22:07
1fa7879
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // Note: use a type-only import to prevent TypeScript from being bundled in. import type ts from 'typescript'; export const factory: ts.server.PluginModuleFactory = (mod) => { const {initialize}: {initialize: ts.server.PluginModuleFactory} = require( `@angular/language-service/bundles/language-service.js`, )(mod); return initialize(mod); };