mirror of https://github.com/vuejs/core.git
Merge 6771a20fc8
into 56be3dd4db
This commit is contained in:
commit
9c73e4f170
|
@ -92,7 +92,11 @@ function compileToFunction(
|
||||||
// In the global build we know `Vue` is available globally so we can avoid
|
// In the global build we know `Vue` is available globally so we can avoid
|
||||||
// the wildcard object.
|
// the wildcard object.
|
||||||
const render = (
|
const render = (
|
||||||
__GLOBAL__ ? new Function(code)() : new Function('Vue', code)(runtimeDom)
|
__GLOBAL__
|
||||||
|
// https://github.com/vuejs/vue-next/issues/5196
|
||||||
|
// @ts-ignore
|
||||||
|
? new Function('Vue', code)(Vue)
|
||||||
|
: new Function('Vue', code)(runtimeDom)
|
||||||
) as RenderFunction
|
) as RenderFunction
|
||||||
|
|
||||||
// mark the function as runtime compiled
|
// mark the function as runtime compiled
|
||||||
|
|
Loading…
Reference in New Issue