anchor.diff:        }
       }
   
  -    var debugMode = options[_argDebugMode];
  -    if (debugMode != null && debugMode is! bool) {
  -      log('Invalid value "$_argDebugMode": $debugMode');
  -      debugMode = null;
  -    }
  -    var profileFor = options[_argProfileFor];
  -    if (profileFor != null && profileFor is! String) {
  -      log('Invalid value "$_argProfileFor": $profileFor');
  -      profileFor = null;
  -    }
  -    var useLegacyStyle = options[_argLegacyStyle];
  -    if (useLegacyStyle != null && useLegacyStyle is! bool) {
  -      log('Invalid value for "$_argLegacyStyle": $useLegacyStyle');
  -      useLegacyStyle = null;
  -    }
  +    final debugMode = options[_argDebugMode];
  +    final profileFor = options[_argProfileFor];
  +    final useLegacyStyle = options[_argLegacyStyle];
  +    final forceMinifyWhitespace = options[_argForceMinifyWhitespace];
  +    final emitComponentFactories = options[_argEmitComponentFactories];
  +    final emitInjectableFactories = options[_argEmitInjectableFactories];
  +
       return new CompilerFlags(
         genDebugInfo: debugMode ?? defaultTo.genDebugInfo,
         i18nEnabled: defaultTo.i18nEnabled,
         profileFor: _toProfile(profileFor, log) ?? defaultTo.profileFor,
         useLegacyStyleEncapsulation:
             useLegacyStyle ?? defaultTo.useLegacyStyleEncapsulation,
  +      forceMinifyWhitespace:
  +          forceMinifyWhitespace ?? defaultTo.forceMinifyWhitespace,
  +      emitComponentFactories:
  +          emitComponentFactories ?? defaultTo.emitComponentFactories,
  +      emitInjectableFactories:
  +          emitInjectableFactories ?? defaultTo.emitInjectableFactories,
       );
     }
   }
  
positive.code:       help: ''
            'Whether to emit additional code that may be used by tooling '
            'in order to profile performance or other runtime information.',
      );
  
    /// Whether to emit extra code suitable for testing and local development.
  
negative.code: const _argDebugMode = 'debug';
  const _argProfileFor = 'profile';
  const _argLegacyStyle = 'use_legacy_style_encapsulation';
  
  // Experimental flags (not published).
  const _argForceMinifyWhitespace = 'force-minify-whitespace';
  const _argEmitComponentFactories = 'emit-component-factories';
  const _argEmitInjectableFactories = 'emit-injectable-factories';
  
  /// Compiler-wide configuration (flags) to allow opting in/out.
  ///
  