Skip to content
Permalink
Browse files

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
  • Loading branch information...
ocombe authored and mhevery committed Aug 18, 2017
1 parent b8a3736 commit 499d05ddeedc3db797509e44405df5e77b10df13
@@ -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[],
@@ -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(
@@ -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,
@@ -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;

@@ -195,7 +195,6 @@ export declare abstract class CompilerFactory {

/** @experimental */
export declare type CompilerOptions = {
/** @deprecated */ useDebug?: boolean;
useJit?: boolean;
defaultEncapsulation?: ViewEncapsulation;
providers?: StaticProvider[];

0 comments on commit 499d05d

Please sign in to comment.
You can’t perform that action at this time.