UNPKG

@taiga-ui/cdk

Version:

Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance

14 lines 814 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStandaloneBootstrapFunction = void 0; const ng_morph_1 = require("ng-morph"); const get_named_import_references_1 = require("./get-named-import-references"); function getStandaloneBootstrapFunction(path) { const standaloneBootstrapIdentifier = (0, get_named_import_references_1.getNamedImportReferences)('bootstrapApplication', '@angular/platform-browser', path) .map((ref) => ref.getParent()) .find((node) => ng_morph_1.Node.isCallExpression(node)); const standaloneBootstrapFunction = standaloneBootstrapIdentifier; return standaloneBootstrapFunction || null; } exports.getStandaloneBootstrapFunction = getStandaloneBootstrapFunction; //# sourceMappingURL=get-standalone-bootstrap-function.js.map