workflow(sfc-playground): display analyzed bindings in js output

This commit is contained in:
Evan You 2021-03-29 15:26:54 -04:00
parent 555b016dcb
commit 4d2853ef57

View File

@ -147,6 +147,13 @@ async function compileFile({ filename, code, compiled }: File) {
refSugar: true,
inlineTemplate: true
})
if (compiledScript.bindings) {
finalCode += `\n/* Analyzed bindings: ${JSON.stringify(
compiledScript.bindings,
null,
2
)} */`
}
finalCode +=
`\n` + rewriteDefault(compiledScript.content, COMP_IDENTIFIER)
} catch (e) {