Fix formatting empty root

This commit is contained in:
Kyle Coburn 2019-04-19 20:32:54 -07:00
parent fb714acfa6
commit 5056363090

View File

@ -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 = ''
}
}