source: trip-planner-front/node_modules/@angular/compiler-cli/ngcc/src/packages/entry_point_bundle.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 15.4 KB
Line 
1(function (factory) {
2 if (typeof module === "object" && typeof module.exports === "object") {
3 var v = factory(require, exports);
4 if (v !== undefined) module.exports = v;
5 }
6 else if (typeof define === "function" && define.amd) {
7 define("@angular/compiler-cli/ngcc/src/packages/entry_point_bundle", ["require", "exports", "tslib", "@angular/compiler-cli/ngcc/src/execution/tasks/api", "@angular/compiler-cli/ngcc/src/packages/bundle_program", "@angular/compiler-cli/ngcc/src/packages/ngcc_compiler_host", "@angular/compiler-cli/ngcc/src/packages/source_file_cache"], factory);
8 }
9})(function (require, exports) {
10 "use strict";
11 Object.defineProperty(exports, "__esModule", { value: true });
12 exports.makeEntryPointBundle = void 0;
13 var tslib_1 = require("tslib");
14 var api_1 = require("@angular/compiler-cli/ngcc/src/execution/tasks/api");
15 var bundle_program_1 = require("@angular/compiler-cli/ngcc/src/packages/bundle_program");
16 var ngcc_compiler_host_1 = require("@angular/compiler-cli/ngcc/src/packages/ngcc_compiler_host");
17 var source_file_cache_1 = require("@angular/compiler-cli/ngcc/src/packages/source_file_cache");
18 /**
19 * Get an object that describes a formatted bundle for an entry-point.
20 * @param fs The current file-system being used.
21 * @param entryPoint The entry-point that contains the bundle.
22 * @param sharedFileCache The cache to use for source files that are shared across all entry-points.
23 * @param moduleResolutionCache The module resolution cache to use.
24 * @param formatPath The path to the source files for this bundle.
25 * @param isCore This entry point is the Angular core package.
26 * @param format The underlying format of the bundle.
27 * @param dtsProcessing Whether to transform the typings along with this bundle.
28 * @param pathMappings An optional set of mappings to use when compiling files.
29 * @param mirrorDtsFromSrc If true then the `dts` program will contain additional files that
30 * were guessed by mapping the `src` files to `dts` files.
31 * @param enableI18nLegacyMessageIdFormat Whether to render legacy message ids for i18n messages in
32 * component templates.
33 */
34 function makeEntryPointBundle(fs, entryPoint, sharedFileCache, moduleResolutionCache, formatPath, isCore, format, dtsProcessing, pathMappings, mirrorDtsFromSrc, enableI18nLegacyMessageIdFormat) {
35 if (mirrorDtsFromSrc === void 0) { mirrorDtsFromSrc = false; }
36 if (enableI18nLegacyMessageIdFormat === void 0) { enableI18nLegacyMessageIdFormat = true; }
37 // Create the TS program and necessary helpers.
38 var rootDir = entryPoint.packagePath;
39 var options = tslib_1.__assign({ allowJs: true, maxNodeModuleJsDepth: Infinity, rootDir: rootDir }, pathMappings);
40 var entryPointCache = new source_file_cache_1.EntryPointFileCache(fs, sharedFileCache);
41 var dtsHost = new ngcc_compiler_host_1.NgccDtsCompilerHost(fs, options, entryPointCache, moduleResolutionCache);
42 var srcHost = new ngcc_compiler_host_1.NgccSourcesCompilerHost(fs, options, entryPointCache, moduleResolutionCache, entryPoint.packagePath);
43 // Create the bundle programs, as necessary.
44 var absFormatPath = fs.resolve(entryPoint.path, formatPath);
45 var typingsPath = fs.resolve(entryPoint.path, entryPoint.typings);
46 var src = bundle_program_1.makeBundleProgram(fs, isCore, entryPoint.packagePath, absFormatPath, 'r3_symbols.js', options, srcHost);
47 var additionalDtsFiles = dtsProcessing !== api_1.DtsProcessing.No && mirrorDtsFromSrc ?
48 computePotentialDtsFilesFromJsFiles(fs, src.program, absFormatPath, typingsPath) :
49 [];
50 var dts = dtsProcessing !== api_1.DtsProcessing.No ?
51 bundle_program_1.makeBundleProgram(fs, isCore, entryPoint.packagePath, typingsPath, 'r3_symbols.d.ts', tslib_1.__assign(tslib_1.__assign({}, options), { allowJs: false }), dtsHost, additionalDtsFiles) :
52 null;
53 var isFlatCore = isCore && src.r3SymbolsFile === null;
54 return {
55 entryPoint: entryPoint,
56 format: format,
57 rootDirs: [rootDir],
58 isCore: isCore,
59 isFlatCore: isFlatCore,
60 src: src,
61 dts: dts,
62 dtsProcessing: dtsProcessing,
63 enableI18nLegacyMessageIdFormat: enableI18nLegacyMessageIdFormat
64 };
65 }
66 exports.makeEntryPointBundle = makeEntryPointBundle;
67 function computePotentialDtsFilesFromJsFiles(fs, srcProgram, formatPath, typingsPath) {
68 var e_1, _a;
69 var formatRoot = fs.dirname(formatPath);
70 var typingsRoot = fs.dirname(typingsPath);
71 var additionalFiles = [];
72 try {
73 for (var _b = tslib_1.__values(srcProgram.getSourceFiles()), _c = _b.next(); !_c.done; _c = _b.next()) {
74 var sf = _c.value;
75 if (!sf.fileName.endsWith('.js')) {
76 continue;
77 }
78 // Given a source file at e.g. `esm2015/src/some/nested/index.js`, try to resolve the
79 // declaration file under the typings root in `src/some/nested/index.d.ts`.
80 var mirroredDtsPath = fs.resolve(typingsRoot, fs.relative(formatRoot, sf.fileName.replace(/\.js$/, '.d.ts')));
81 if (fs.exists(mirroredDtsPath)) {
82 additionalFiles.push(mirroredDtsPath);
83 }
84 }
85 }
86 catch (e_1_1) { e_1 = { error: e_1_1 }; }
87 finally {
88 try {
89 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
90 }
91 finally { if (e_1) throw e_1.error; }
92 }
93 return additionalFiles;
94 }
95});
96//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnlfcG9pbnRfYnVuZGxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcGlsZXItY2xpL25nY2Mvc3JjL3BhY2thZ2VzL2VudHJ5X3BvaW50X2J1bmRsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0lBU0EsMEVBQXFEO0lBRXJELHlGQUFrRTtJQUVsRSxpR0FBa0Y7SUFDbEYsK0ZBQXlFO0lBa0J6RTs7Ozs7Ozs7Ozs7Ozs7O09BZUc7SUFDSCxTQUFnQixvQkFBb0IsQ0FDaEMsRUFBYyxFQUFFLFVBQXNCLEVBQUUsZUFBZ0MsRUFDeEUscUJBQStDLEVBQUUsVUFBa0IsRUF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