From: Jason Date: Tue, 4 Feb 2020 15:03:32 +0000 (+0800) Subject: fix(compiler-sfc): handle empty nodes with src attribute (#695) X-Git-Tag: v3.0.0-alpha.5~119 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d56dfdc4fcf824bba4c0166ca5471258c4f883b;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-sfc): handle empty nodes with src attribute (#695) --- diff --git a/packages/compiler-sfc/__tests__/parse.spec.ts b/packages/compiler-sfc/__tests__/parse.spec.ts index a55e2e6b28..fcb59061ae 100644 --- a/packages/compiler-sfc/__tests__/parse.spec.ts +++ b/packages/compiler-sfc/__tests__/parse.spec.ts @@ -73,6 +73,13 @@ h1 { color: red } expect(parse(``).descriptor.customBlocks.length).toBe(0) }) + test('handle empty nodes with src attribute', () => { + const { descriptor } = parse(`