Respect preserveComments option in tempate.ast() (#11112)

This commit is contained in:
Martin Forsgren
2020-02-11 10:34:21 +01:00
committed by GitHub
parent 3907396bd8
commit bc308a1b15
2 changed files with 13 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ export function validate(opts: mixed): TemplateOpts {
placeholderWhitelist: placeholderWhitelist || undefined,
placeholderPattern:
placeholderPattern == null ? undefined : placeholderPattern,
preserveComments: preserveComments == null ? false : preserveComments,
preserveComments: preserveComments == null ? undefined : preserveComments,
syntacticPlaceholders:
syntacticPlaceholders == null ? undefined : syntacticPlaceholders,
};