diff --git a/packages/compiler-core/__tests__/transforms/transformElement.spec.ts b/packages/compiler-core/__tests__/transforms/transformElement.spec.ts
index 33fdb7db..a00cf0c5 100644
--- a/packages/compiler-core/__tests__/transforms/transformElement.spec.ts
+++ b/packages/compiler-core/__tests__/transforms/transformElement.spec.ts
@@ -57,8 +57,9 @@ function parseWithElementTransform(
}
}
-function parseWithBind(template: string) {
+function parseWithBind(template: string, options?: CompilerOptions) {
return parseWithElementTransform(template, {
+ ...options,
directiveTransforms: {
bind: transformBind
}
@@ -914,6 +915,18 @@ describe('compiler: element transform', () => {
directives: undefined
})
})
+
+ // #3934
+ test('normal component with is prop', () => {
+ const { node, root } = parseWithBind(``, {
+ isNativeTag: () => false
+ })
+ expect(root.helpers).toContain(RESOLVE_COMPONENT)
+ expect(root.helpers).not.toContain(RESOLVE_DYNAMIC_COMPONENT)
+ expect(node).toMatchObject({
+ tag: '_component_custom_input'
+ })
+ })
})
test('