perf(core): add option to remove blank text nodes from compiled templates
This commit is contained in:
@ -219,7 +219,8 @@ export class CompileMetadataResolver {
|
||||
styles: template.styles,
|
||||
styleUrls: template.styleUrls,
|
||||
animations: template.animations,
|
||||
interpolation: template.interpolation
|
||||
interpolation: template.interpolation,
|
||||
preserveWhitespaces: template.preserveWhitespaces
|
||||
});
|
||||
if (isPromise(templateMeta) && isSync) {
|
||||
this._reportError(componentStillLoadingError(directiveType), directiveType);
|
||||
@ -267,7 +268,8 @@ export class CompileMetadataResolver {
|
||||
interpolation: noUndefined(dirMeta.interpolation),
|
||||
isInline: !!dirMeta.template,
|
||||
externalStylesheets: [],
|
||||
ngContentSelectors: []
|
||||
ngContentSelectors: [],
|
||||
preserveWhitespaces: noUndefined(dirMeta.preserveWhitespaces),
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user