From: meteorlxy Date: Fri, 4 Dec 2020 23:23:01 +0000 (+0800) Subject: fix(compiler-sfc): should keep template nodes with no content (#2468) X-Git-Tag: v3.0.5~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b9b37fc9b363be2989c1e9d76ab6e950cdfe2ad;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-sfc): should keep template nodes with no content (#2468) close #2463 --- diff --git a/packages/compiler-sfc/__tests__/parse.spec.ts b/packages/compiler-sfc/__tests__/parse.spec.ts index dd16251e22..dc25c848c4 100644 --- a/packages/compiler-sfc/__tests__/parse.spec.ts +++ b/packages/compiler-sfc/__tests__/parse.spec.ts @@ -111,8 +111,13 @@ h1 { color: red } ) }) - test('should ignore nodes with no content', () => { - expect(parse(`