source: trip-planner-front/node_modules/@angular/compiler/esm2015/src/config.js@ 6c1585f

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

initial commit

  • Property mode set to 100644
File size: 4.4 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { ViewEncapsulation } from './core';
9import { noUndefined } from './util';
10export class CompilerConfig {
11 constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, useJit = true, jitDevMode = false, missingTranslation = null, preserveWhitespaces, strictInjectionParameters } = {}) {
12 this.defaultEncapsulation = defaultEncapsulation;
13 this.useJit = !!useJit;
14 this.jitDevMode = !!jitDevMode;
15 this.missingTranslation = missingTranslation;
16 this.preserveWhitespaces = preserveWhitespacesDefault(noUndefined(preserveWhitespaces));
17 this.strictInjectionParameters = strictInjectionParameters === true;
18 }
19}
20export function preserveWhitespacesDefault(preserveWhitespacesOption, defaultSetting = false) {
21 return preserveWhitespacesOption === null ? defaultSetting : preserveWhitespacesOption;
22}
23//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcGlsZXIvc3JjL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQTZCLGlCQUFpQixFQUFDLE1BQU0sUUFBUSxDQUFDO0FBQ3JFLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSxRQUFRLENBQUM7QUFFbkMsTUFBTSxPQUFPLGNBQWM7SUFRekIsWUFBWSxFQUNWLG9CQUFvQixHQUFHLGlCQUFpQixDQUFDLFFBQVEsRUFDakQsTUFBTSxHQUFHLElBQUksRUFDYixVQUFVLEdBQUcs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