@@ -10,6 +10,7 @@ const CUSTOM_ANNOTATIONS_PARAM = 'custom_annotations';
1010const ENTRY_POINT_PARAM = 'entry_points' ;
1111const GENERATE_CHANGE_DETECTORS_PARAM = 'generate_change_detectors' ;
1212const INIT_REFLECTOR_PARAM = 'init_reflector' ;
13+ const INLINE_VIEWS_PARAM = 'inline_views' ;
1314const MIRROR_MODE_PARAM = 'mirror_mode' ;
1415const OPTIMIZATION_PHASES_PARAM = 'optimization_phases' ;
1516const REFLECTION_ENTRY_POINT_PARAM = 'reflection_entry_points' ;
@@ -32,6 +33,9 @@ class TransformerOptions {
3233 /// Whether to generate calls to our generated `initReflector` code
3334 final bool initReflector;
3435
36+ /// Whether to inline html/css urls into the View directive
37+ final bool inlineViews;
38+
3539 /// The [AnnotationMatcher] which is used to identify angular annotations.
3640 final AnnotationMatcher annotationMatcher;
3741
@@ -50,13 +54,14 @@ class TransformerOptions {
5054 TransformerOptions ._internal (this .entryPoints, this .reflectionEntryPoints,
5155 this .modeName, this .mirrorMode, this .initReflector,
5256 this .annotationMatcher, this .optimizationPhases,
53- this .generateChangeDetectors);
57+ this .generateChangeDetectors, this .inlineViews );
5458
5559 factory TransformerOptions (List <String > entryPoints,
5660 {List <String > reflectionEntryPoints, String modeName: 'release' ,
5761 MirrorMode mirrorMode: MirrorMode .none, bool initReflector: true ,
5862 List <AnnotationDescriptor > customAnnotationDescriptors: const [],
5963 int optimizationPhases: DEFAULT_OPTIMIZATION_PHASES ,
64+ bool inlineViews: true ,
6065 bool generateChangeDetectors: true }) {
6166 if (reflectionEntryPoints == null || reflectionEntryPoints.isEmpty) {
6267 reflectionEntryPoints = entryPoints;
@@ -66,6 +71,6 @@ class TransformerOptions {
6671 optimizationPhases = optimizationPhases.isNegative ? 0 : optimizationPhases;
6772 return new TransformerOptions ._internal (entryPoints, reflectionEntryPoints,
6873 modeName, mirrorMode, initReflector, annotationMatcher,
69- optimizationPhases, generateChangeDetectors);
74+ optimizationPhases, generateChangeDetectors, inlineViews );
7075 }
7176}
0 commit comments