diff --git a/packages/compiler-core/src/parse.ts b/packages/compiler-core/src/parse.ts index 7689850b..54e97801 100644 --- a/packages/compiler-core/src/parse.ts +++ b/packages/compiler-core/src/parse.ts @@ -334,10 +334,7 @@ function parseElement( // Children. ancestors.push(element) - const mode = (context.options.getTextMode( - element.tag, - element.ns - ) as unknown) as TextModes + const mode = context.options.getTextMode(element.tag, element.ns) const children = parseChildren(context, mode, ancestors) ancestors.pop()