Support exporting YAML + minified

This commit is contained in:
Misode
2021-11-05 02:47:53 +01:00
parent fba80da273
commit a24c5d4c79
8 changed files with 92 additions and 25 deletions

View File

@@ -43,7 +43,10 @@ export const transformOutput: Hook<[any, OutputProps], any> = {
Object.keys(activeFields)
.filter(k => activeFields[k].enabled(path))
.forEach(f => {
res[f] = activeFields[f].hook(this, path.push(f), value[f], props)
const out = activeFields[f].hook(this, path.push(f), value[f], props)
if (out !== undefined && out !== null) {
res[f] = out
}
})
return res
},