We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8ce86b commit c6841bdCopy full SHA for c6841bd
packages/compiler-sfc/__tests__/parse.spec.ts
@@ -425,5 +425,15 @@ h1 { color: red }
425
`At least one <template> or <script> is required in a single file component`,
426
)
427
})
428
+
429
+ test('should throw error if template functional is given', () => {
430
+ assertWarning(
431
+ parse(`<template functional></template>`).errors,
432
+ `<template functional> is no longer supported in Vue 3, since ` +
433
+ `functional components no longer have significant performance ` +
434
+ `difference from stateful ones. Just use a normal <template> ` +
435
+ `instead.`,
436
+ )
437
+ })
438
439
0 commit comments