refactor(compiler): remove option `useDebug` (#18778)

BREAKING CHANGE: the option `useDebug` for the compiler has been removed as it had no effect and was deprecated since v4.

PR Close #18778
This commit is contained in:
Olivier Combe 2017-08-18 15:31:32 +02:00 committed by Miško Hevery
parent b8a3736275
commit 499d05ddee
5 changed files with 1 additions and 11 deletions

View File

@ -96,10 +96,6 @@ export class Compiler {
* @experimental
*/
export type CompilerOptions = {
/**
* @deprecated since v4 this option has no effect anymore.
*/
useDebug?: boolean,
useJit?: boolean,
defaultEncapsulation?: ViewEncapsulation,
providers?: StaticProvider[],

View File

@ -330,8 +330,7 @@ export class TestBed implements Injector {
const compilerFactory: TestingCompilerFactory =
this.platform.injector.get(TestingCompilerFactory);
this._compiler =
compilerFactory.createTestingCompiler(this._compilerOptions.concat([{useDebug: true}]));
this._compiler = compilerFactory.createTestingCompiler(this._compilerOptions);
this._compiler.loadAotSummaries(this._aotSummaries);
this._moduleOverrides.forEach((entry) => this._compiler.overrideModule(entry[0], entry[1]));
this._componentOverrides.forEach(

View File

@ -157,7 +157,6 @@ export class JitCompilerFactory implements CompilerFactory {
private _defaultOptions: CompilerOptions[];
constructor(defaultOptions: CompilerOptions[]) {
const compilerOptions: CompilerOptions = {
useDebug: isDevMode(),
useJit: true,
defaultEncapsulation: ViewEncapsulation.Emulated,
missingTranslation: MissingTranslationStrategy.Warning,

View File

@ -76,9 +76,6 @@ interface Options extends ts.CompilerOptions {
// Print extra information while running the compiler
trace?: boolean;
/** @deprecated since v4 this option has no effect anymore. */
debug?: boolean;
// Whether to enable support for <template> and the template attribute (true by default)
enableLegacyTemplate?: boolean;

View File

@ -195,7 +195,6 @@ export declare abstract class CompilerFactory {
/** @experimental */
export declare type CompilerOptions = {
/** @deprecated */ useDebug?: boolean;
useJit?: boolean;
defaultEncapsulation?: ViewEncapsulation;
providers?: StaticProvider[];