Skip to content

Commit 4d2853e

Browse files
committed
workflow(sfc-playground): display analyzed bindings in js output
1 parent 555b016 commit 4d2853e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/sfc-playground/src/store.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ async function compileFile({ filename, code, compiled }: File) {
147147
refSugar: true,
148148
inlineTemplate: true
149149
})
150+
if (compiledScript.bindings) {
151+
finalCode += `\n/* Analyzed bindings: ${JSON.stringify(
152+
compiledScript.bindings,
153+
null,
154+
2
155+
)} */`
156+
}
150157
finalCode +=
151158
`\n` + rewriteDefault(compiledScript.content, COMP_IDENTIFIER)
152159
} catch (e) {

0 commit comments

Comments
 (0)