mirror of https://github.com/vuejs/core.git
chore(compile-core): removed the optional tag parameter from condenseWhitespace's signature (#13437)
ci / test (push) Has been cancelled
Details
ci / continuous-release (push) Has been cancelled
Details
size data / upload (push) Has been cancelled
Details
Lock Closed Issues / action (push) Has been cancelled
Details
Auto close issues with "can't reproduce" label / close-issues (push) Has been cancelled
Details
canary release / canary (push) Has been cancelled
Details
canary minor release / canary (push) Has been cancelled
Details
ci / test (push) Has been cancelled
Details
ci / continuous-release (push) Has been cancelled
Details
size data / upload (push) Has been cancelled
Details
Lock Closed Issues / action (push) Has been cancelled
Details
Auto close issues with "can't reproduce" label / close-issues (push) Has been cancelled
Details
canary release / canary (push) Has been cancelled
Details
canary minor release / canary (push) Has been cancelled
Details
This commit is contained in:
parent
a47832e75e
commit
cdffaf6b9e
|
@ -647,7 +647,7 @@ function onCloseTag(el: ElementNode, end: number, isImplied = false) {
|
|||
|
||||
// whitespace management
|
||||
if (!tokenizer.inRCDATA) {
|
||||
el.children = condenseWhitespace(children, tag)
|
||||
el.children = condenseWhitespace(children)
|
||||
}
|
||||
|
||||
if (ns === Namespaces.HTML && currentOptions.isIgnoreNewlineTag(tag)) {
|
||||
|
@ -832,10 +832,7 @@ function isUpperCase(c: number) {
|
|||
}
|
||||
|
||||
const windowsNewlineRE = /\r\n/g
|
||||
function condenseWhitespace(
|
||||
nodes: TemplateChildNode[],
|
||||
tag?: string,
|
||||
): TemplateChildNode[] {
|
||||
function condenseWhitespace(nodes: TemplateChildNode[]): TemplateChildNode[] {
|
||||
const shouldCondense = currentOptions.whitespace !== 'preserve'
|
||||
let removedWhitespace = false
|
||||
for (let i = 0; i < nodes.length; i++) {
|
||||
|
|
|
@ -263,7 +263,7 @@ export function processFor(
|
|||
dir: DirectiveNode,
|
||||
context: TransformContext,
|
||||
processCodegen?: (forNode: ForNode) => (() => void) | undefined,
|
||||
) {
|
||||
): (() => void) | undefined {
|
||||
if (!dir.exp) {
|
||||
context.onError(
|
||||
createCompilerError(ErrorCodes.X_V_FOR_NO_EXPRESSION, dir.loc),
|
||||
|
|
Loading…
Reference in New Issue