From: Evan You Date: Thu, 6 May 2021 20:18:00 +0000 (-0400) Subject: wip: fix v3 render fn detection regex X-Git-Tag: v3.1.0-beta.1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa487224414874c1d26ee0ad79a82eb0dda56335;p=thirdparty%2Fvuejs%2Fcore.git wip: fix v3 render fn detection regex --- diff --git a/packages/runtime-core/src/compat/renderFn.ts b/packages/runtime-core/src/compat/renderFn.ts index 44df5cbe84..c65cc8d79d 100644 --- a/packages/runtime-core/src/compat/renderFn.ts +++ b/packages/runtime-core/src/compat/renderFn.ts @@ -39,7 +39,7 @@ import { } from './compatConfig' import { compatModelEventPrefix } from './componentVModel' -const v3CompiledRenderFnRE = /^(?:function \w+)?\(_ctx, _cache/ +const v3CompiledRenderFnRE = /^(?:function \w*)?\(_ctx, _cache/ export function convertLegacyRenderFn(instance: ComponentInternalInstance) { const Component = instance.type as ComponentOptions