From: Thorsten Lünborg Date: Thu, 16 Sep 2021 17:47:11 +0000 (+0200) Subject: fix(compiler-sfc): handle empty strings during template usage analysis of setup bindi... X-Git-Tag: v3.2.12~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdb1a7958ba091bb3166f0938e91ebd52facbf03;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-sfc): handle empty strings during template usage analysis of setup bindings (#4608) fix #4599 --- diff --git a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap index e7ffb34450..c613cf5021 100644 --- a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap +++ b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap @@ -202,6 +202,22 @@ return { props, a, emit } }" `; +exports[`SFC compile + + `) + expect(content).toMatch(`return { cond, bar, baz }`) + assertCode(content) + }) + test('vue interpolations', () => { const { content } = compile(`