build: further shave off runtime compile only code

This commit is contained in:
Evan You
2019-10-14 01:08:00 -04:00
parent 57a94b530d
commit 82b5978e9c
7 changed files with 36 additions and 17 deletions

View File

@@ -320,7 +320,7 @@ function finishComponentSetup(
) {
const Component = instance.type as ComponentOptions
if (!instance.render) {
if (Component.template && !Component.render) {
if (__RUNTIME_COMPILE__ && Component.template && !Component.render) {
if (compile) {
Component.render = compile(Component.template, {
onError(err: CompilerError) {