feat(compiler-core): add comments parser option (#1858)

This commit is contained in:
Barthélémy Ledoux
2020-08-17 10:20:28 -05:00
committed by GitHub
parent 823a2bc563
commit 62b9d02f6f
3 changed files with 22 additions and 3 deletions

View File

@@ -49,6 +49,10 @@ export interface ParserOptions {
*/
decodeEntities?: (rawText: string, asAttr: boolean) => string
onError?: (error: CompilerError) => void
/**
* Keep comments in the templates AST, even in production
*/
comments?: boolean
}
export type HoistTransform = (