Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packages/compiler-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,6 @@ export function injectProp(
context: TransformContext
) {
let propsWithInjection: ObjectExpression | CallExpression | undefined
const originalProps =
node.type === NodeTypes.VNODE_CALL ? node.props : node.arguments[2]

/**
* 1. mergeProps(...)
* 2. toHandlers(...)
Expand All @@ -374,7 +371,7 @@ export function injectProp(
*
* we need to get the real props before normalization
*/
let props = originalProps
let props = node.type === NodeTypes.VNODE_CALL ? node.props : node.arguments[2]
let callPath: CallExpression[] = []
let parentCall: CallExpression | undefined
if (
Expand Down