UNPKG

1.86 kBJavaScriptView Raw
1var __defProp = Object.defineProperty;
2var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3var __getOwnPropNames = Object.getOwnPropertyNames;
4var __hasOwnProp = Object.prototype.hasOwnProperty;
5var __export = (target, all) => {
6 for (var name in all)
7 __defProp(target, name, { get: all[name], enumerable: true });
8};
9var __copyProps = (to, from, except, desc) => {
10 if (from && typeof from === "object" || typeof from === "function") {
11 for (let key of __getOwnPropNames(from))
12 if (!__hasOwnProp.call(to, key) && key !== except)
13 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14 }
15 return to;
16};
17var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
19// bazel-out/k8-fastbuild/bin/packages/language-service/plugin-factory.mjs
20var plugin_factory_exports = {};
21__export(plugin_factory_exports, {
22 factory: () => factory
23});
24module.exports = __toCommonJS(plugin_factory_exports);
25var factory = (tsModule) => {
26 let plugin;
27 return {
28 create(info) {
29 plugin = require("./bundles/language-service.js")(tsModule);
30 return plugin.create(info);
31 },
32 getExternalFiles(project) {
33 var _a, _b;
34 return (_b = (_a = plugin == null ? void 0 : plugin.getExternalFiles) == null ? void 0 : _a.call(plugin, project, tsModule.typescript.ProgramUpdateLevel.Full)) != null ? _b : [];
35 },
36 onConfigurationChanged(config) {
37 var _a;
38 (_a = plugin == null ? void 0 : plugin.onConfigurationChanged) == null ? void 0 : _a.call(plugin, config);
39 }
40 };
41};
42/**
43 * @license
44 * Copyright Google LLC All Rights Reserved.
45 *
46 * Use of this source code is governed by an MIT-style license that can be
47 * found in the LICENSE file at https://angular.dev/license
48 */
49//# sourceMappingURL=factory_bundle.js.map