From: Evan You Date: Mon, 19 Jul 2021 21:05:37 +0000 (-0400) Subject: fix(compiler-sfc): expose correct range for empty blocks X-Git-Tag: v3.2.0-beta.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b274b08f5ff56d153d3dd46fa740dd6b156bf26f;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-sfc): expose correct range for empty blocks --- diff --git a/packages/compiler-sfc/__tests__/parse.spec.ts b/packages/compiler-sfc/__tests__/parse.spec.ts index 2c640853b1..fff6cf3c29 100644 --- a/packages/compiler-sfc/__tests__/parse.spec.ts +++ b/packages/compiler-sfc/__tests__/parse.spec.ts @@ -111,10 +111,26 @@ h1 { color: red } ) }) - test('should keep template nodes with no content', () => { + test('should parse correct range for blocks with no content (self closing)', () => { const { descriptor } = parse(`