We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c4b7b commit 2398d85Copy full SHA for 2398d85
packages/router-plugin/src/core/code-splitter/compilers.ts
@@ -620,7 +620,8 @@ export function compileCodeSplitVirtualRoute(
620
console.info('Unexpected splitNode type:', splitNode)
621
throw new Error(`Unexpected splitNode type ☝️: ${splitNode.type}`)
622
}
623
- } else if (splitNode === undefined) {
+ } else {
624
+ // handle the case where splitNode === undefined
625
programPath.pushContainer(
626
'body',
627
t.variableDeclaration('const', [
0 commit comments