Skip to content

Commit 3053201

Browse files
ci: apply automated fixes
1 parent 02e3d81 commit 3053201

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

packages/router-plugin/src/core/code-splitter/compilers.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,10 @@ export function compileCodeSplitVirtualRoute(
586586
if (t.isIdentifier(splitNode.id)) {
587587
splitMeta.localExporterIdent = splitNode.id.name
588588
splitMeta.shouldRemoveNode = false
589-
}
590-
else {
591-
throw new Error(`Unexpected splitNode type ☝️: ${splitNode.type}`)
589+
} else {
590+
throw new Error(
591+
`Unexpected splitNode type ☝️: ${splitNode.type}`,
592+
)
592593
}
593594
} else if (t.isCallExpression(splitNode)) {
594595
const outputSplitNodeCode = generateFromAst(splitNode).code

packages/router-plugin/tests/code-splitter/test-files/react/circular-reference-arrow-function.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ function OtherComponent() {
2020
return <div>App component name is {componentName}</div>
2121
}
2222

23-
2423
export const Route = createFileRoute('/')({
2524
component: App,
2625
})
27-
28-
29-

packages/router-plugin/tests/code-splitter/test-files/react/circular-reference-function.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ function OtherComponent() {
2020
return <div>App component name is {componentName}</div>
2121
}
2222

23-
2423
export const Route = createFileRoute('/')({
2524
component: App,
2625
})
27-

0 commit comments

Comments
 (0)