Fix formatting empty root
This commit is contained in:
parent
fb714acfa6
commit
5056363090
1 changed files with 3 additions and 1 deletions
|
|
@ -11,5 +11,7 @@ function indentRecursive(node, indent = 0) {
|
|||
|
||||
export default function formatNodes(root) {
|
||||
indentRecursive(root)
|
||||
root.first.raws.before = ''
|
||||
if (root.first) {
|
||||
root.first.raws.before = ''
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue