[FIX][BREAKING] t-esc on component is not supported anymore

This commit is contained in:
Lucas Perais (lpe)
2021-11-15 15:00:46 +01:00
committed by Aaron Bohy
parent db93ef08ff
commit 1761af9c24
4 changed files with 4 additions and 62 deletions
+3 -6
View File
@@ -405,18 +405,15 @@ function parseTEscNode(node: Element, ctx: ParsingContext): AST | null {
if (!ast) {
return tesc;
}
if (ast && ast.type === ASTType.DomNode) {
if (ast.type === ASTType.DomNode) {
return {
...ast,
ref,
content: [tesc],
};
}
if (ast && ast.type === ASTType.TComponent) {
return {
...ast,
slots: { default: tesc },
};
if (ast.type === ASTType.TComponent) {
throw new Error("t-esc is not supported on Component nodes");
}
return tesc;
}