@vuedx/template-ast-types
Advanced tools
Comparing version 0.7.1 to 0.7.2-insiders-1623387961.0
@@ -379,3 +379,20 @@ 'use strict'; | ||
const selfClosingTag = ['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']; | ||
const selfClosingTag = [ | ||
'area', | ||
'base', | ||
'br', | ||
'col', | ||
'command', | ||
'embed', | ||
'hr', | ||
'img', | ||
'input', | ||
'keygen', | ||
'link', | ||
'meta', | ||
'param', | ||
'source', | ||
'track', | ||
'wbr', | ||
]; | ||
const defaults = { | ||
@@ -428,3 +445,6 @@ indent: 2, | ||
else if (isCommentNode(node)) { | ||
return ' '.repeat(indent) + '<!--' + genMultilineText(node.content, indent, options) + '-->'; | ||
return (' '.repeat(indent) + | ||
'<!--' + | ||
genMultilineText(node.content, indent, options) + | ||
'-->'); | ||
} | ||
@@ -486,4 +506,4 @@ else { | ||
else { | ||
if (selfClosingTag.find(k => k === node.tag) != null) { | ||
code.push(" ", "/>"); | ||
if (selfClosingTag.find((k) => k === node.tag) != null) { | ||
code.push(' ', '/>'); | ||
} | ||
@@ -490,0 +510,0 @@ else { |
{ | ||
"name": "@vuedx/template-ast-types", | ||
"version": "0.7.1", | ||
"version": "0.7.2-insiders-1623387961.0", | ||
"description": "Helper functions for Vue template AST", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
90167
1362