feat(compiler-core): whitespace handling strategy

This commit is contained in:
CodeDaraW
2020-07-16 21:28:09 +08:00
committed by Evan You
parent 7b37f78dc9
commit dee3d6ab8b
3 changed files with 99 additions and 11 deletions

View File

@@ -52,6 +52,10 @@ export interface ParserOptions
* @default ['{{', '}}']
*/
delimiters?: [string, string]
/**
* Whitespace handling strategy
*/
whitespace?: 'preserve' | 'condense'
/**
* Only needed for DOM compilers
*/