chore: fix hoistStatic exhaustive check
This commit is contained in:
parent
96605b79a3
commit
66b5f0b480
@ -597,6 +597,9 @@ function genNode(node: CodegenNode | symbol | string, context: CodegenContext) {
|
||||
break
|
||||
|
||||
/* istanbul ignore next */
|
||||
case NodeTypes.IF_BRANCH:
|
||||
// noop
|
||||
break
|
||||
default:
|
||||
if (__DEV__) {
|
||||
assert(false, `unhandled codegen node type: ${(node as any).type}`)
|
||||
|
@ -143,6 +143,7 @@ export function isStaticNode(
|
||||
return true
|
||||
case NodeTypes.IF:
|
||||
case NodeTypes.FOR:
|
||||
case NodeTypes.IF_BRANCH:
|
||||
return false
|
||||
case NodeTypes.INTERPOLATION:
|
||||
case NodeTypes.TEXT_CALL:
|
||||
|
Loading…
Reference in New Issue
Block a user