fix(compiler-core): warn when slot used on non-root template #12139
Annotations
2 errors
Run compiler unit tests:
packages/compiler-core/__tests__/transform.spec.ts#L437
AssertionError: expected [ [ …(1) ], [ …(1) ] ] to deeply equal []
- Expected
+ Received
- Array []
+ Array [
+ Array [
+ [SyntaxError: <template v-slot> can only appear at the root level inside the receiving component],
+ ],
+ Array [
+ [SyntaxError: <template v-slot> can only appear at the root level inside the receiving component],
+ ],
+ ]
❯ packages/compiler-core/__tests__/transform.spec.ts:437:34
|
Run compiler unit tests
Process completed with exit code 1.
|
Loading