wip: fix v3 render fn detection regex
This commit is contained in:
parent
5a0bab0bd2
commit
fa48722441
@ -39,7 +39,7 @@ import {
|
|||||||
} from './compatConfig'
|
} from './compatConfig'
|
||||||
import { compatModelEventPrefix } from './componentVModel'
|
import { compatModelEventPrefix } from './componentVModel'
|
||||||
|
|
||||||
const v3CompiledRenderFnRE = /^(?:function \w+)?\(_ctx, _cache/
|
const v3CompiledRenderFnRE = /^(?:function \w*)?\(_ctx, _cache/
|
||||||
|
|
||||||
export function convertLegacyRenderFn(instance: ComponentInternalInstance) {
|
export function convertLegacyRenderFn(instance: ComponentInternalInstance) {
|
||||||
const Component = instance.type as ComponentOptions
|
const Component = instance.type as ComponentOptions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user