diff --git a/packages/compiler-sfc/__tests__/parse.spec.ts b/packages/compiler-sfc/__tests__/parse.spec.ts index a55e2e6b288..fcb59061aeb 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(`