fix(vue): properly cache runtime compilation

This commit is contained in:
Evan You
2019-12-11 09:46:42 -05:00
parent 559fa27185
commit d3d4fe84cd
4 changed files with 68 additions and 22 deletions

View File

@@ -55,7 +55,7 @@ export interface ComponentOptionsBase<
ctx: SetupContext
) => RawBindings | RenderFunction | void
name?: string
template?: string
template?: string | object // can be a direct DOM node
// Note: we are intentionally using the signature-less `Function` type here
// since any type with signature will cause the whole inference to fail when
// the return expression contains reference to `this`.