diff --git a/packages/compiler-sfc/__tests__/parse.spec.ts b/packages/compiler-sfc/__tests__/parse.spec.ts index 14cb9dcc916..0a3cc457706 100644 --- a/packages/compiler-sfc/__tests__/parse.spec.ts +++ b/packages/compiler-sfc/__tests__/parse.spec.ts @@ -3,6 +3,14 @@ import { mockWarn } from '@vue/runtime-test' describe('compiler:sfc', () => { mockWarn() + + test('should ignore nodes with no content', () => { + expect(parse(`