feat: log on the fly template compilation error
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// This package is the "full-build" that includes both the runtime
|
||||
// and the compiler, and supports on-the-fly compilation of the template option.
|
||||
import { compile, CompilerOptions } from '@vue/compiler-dom'
|
||||
import * as runtimeDom from '@vue/runtime-dom'
|
||||
import { registerRuntimeCompiler, RenderFunction } from '@vue/runtime-dom'
|
||||
import * as runtimeDom from '@vue/runtime-dom'
|
||||
|
||||
function compileToFunction(
|
||||
template: string,
|
||||
@@ -12,6 +12,7 @@ function compileToFunction(
|
||||
hoistStatic: true,
|
||||
...options
|
||||
})
|
||||
|
||||
return new Function('Vue', code)(runtimeDom) as RenderFunction
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user