We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc18f4 commit b7a9c25Copy full SHA for b7a9c25
packages/vue/src/index.ts
@@ -1,6 +1,7 @@
1
// This package is the "full-build" that includes both the runtime
2
// and the compiler, and supports on-the-fly compilation of the template option.
3
import { compile, CompilerOptions } from '@vue/compiler-dom'
4
+import * as runtimeDom from '@vue/runtime-dom'
5
import { registerRuntimeCompiler, RenderFunction } from '@vue/runtime-dom'
6
7
function compileToFunction(
@@ -11,7 +12,7 @@ function compileToFunction(
11
12
hoistStatic: true,
13
...options
14
})
- return new Function(code)() as RenderFunction
15
+ return new Function('Vue', code)(runtimeDom) as RenderFunction
16
}
17
18
registerRuntimeCompiler(compileToFunction)
0 commit comments