From: Evan You Date: Mon, 29 Mar 2021 19:26:54 +0000 (-0400) Subject: workflow(sfc-playground): display analyzed bindings in js output X-Git-Tag: v3.0.10~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d2853ef57d28b5f0f7c395b1319076e0534cc2f;p=thirdparty%2Fvuejs%2Fcore.git workflow(sfc-playground): display analyzed bindings in js output --- diff --git a/packages/sfc-playground/src/store.ts b/packages/sfc-playground/src/store.ts index 5a0a5d0502..7e5cdcb1bf 100644 --- a/packages/sfc-playground/src/store.ts +++ b/packages/sfc-playground/src/store.ts @@ -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) {