Skip to content

Commit cdffaf6

Browse files
authored
chore(compile-core): removed the optional tag parameter from condenseWhitespace's signature (#13437)
1 parent a47832e commit cdffaf6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/compiler-core/src/parser.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ function onCloseTag(el: ElementNode, end: number, isImplied = false) {
647647

648648
// whitespace management
649649
if (!tokenizer.inRCDATA) {
650-
el.children = condenseWhitespace(children, tag)
650+
el.children = condenseWhitespace(children)
651651
}
652652

653653
if (ns === Namespaces.HTML && currentOptions.isIgnoreNewlineTag(tag)) {
@@ -832,10 +832,7 @@ function isUpperCase(c: number) {
832832
}
833833

834834
const windowsNewlineRE = /\r\n/g
835-
function condenseWhitespace(
836-
nodes: TemplateChildNode[],
837-
tag?: string,
838-
): TemplateChildNode[] {
835+
function condenseWhitespace(nodes: TemplateChildNode[]): TemplateChildNode[] {
839836
const shouldCondense = currentOptions.whitespace !== 'preserve'
840837
let removedWhitespace = false
841838
for (let i = 0; i < nodes.length; i++) {

packages/compiler-core/src/transforms/vFor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export function processFor(
263263
dir: DirectiveNode,
264264
context: TransformContext,
265265
processCodegen?: (forNode: ForNode) => (() => void) | undefined,
266-
) {
266+
): (() => void) | undefined {
267267
if (!dir.exp) {
268268
context.onError(
269269
createCompilerError(ErrorCodes.X_V_FOR_NO_EXPRESSION, dir.loc),

0 commit comments

Comments
 (0)