fix(build): remove __RUNTIME_COMPILE__ flag

behavior should be consistent in all builds. fix #817
This commit is contained in:
Evan You
2020-03-11 16:39:26 -04:00
parent f59779706b
commit 206640a2d8
6 changed files with 16 additions and 29 deletions

View File

@@ -58,12 +58,7 @@ export const createApp = ((...args) => {
const container = normalizeContainer(containerOrSelector)
if (!container) return
const component = app._component
if (
__RUNTIME_COMPILE__ &&
!isFunction(component) &&
!component.render &&
!component.template
) {
if (!isFunction(component) && !component.render && !component.template) {
component.template = container.innerHTML
}
// clear content before mounting