|
@@ -141,10 +141,11 @@ export function mountComponent (
|
|
|
vm.$options.render = createEmptyVNode
|
|
vm.$options.render = createEmptyVNode
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
|
/* istanbul ignore if */
|
|
/* istanbul ignore if */
|
|
|
- if (vm.$options.template && vm.$options.template.charAt(0) !== '#') {
|
|
|
|
|
|
|
+ if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
|
|
|
|
|
+ vm.$options.el || el) {
|
|
|
warn(
|
|
warn(
|
|
|
'You are using the runtime-only build of Vue where the template ' +
|
|
'You are using the runtime-only build of Vue where the template ' +
|
|
|
- 'option is not available. Either pre-compile the templates into ' +
|
|
|
|
|
|
|
+ 'compiler is not available. Either pre-compile the templates into ' +
|
|
|
'render functions, or use the compiler-included build.',
|
|
'render functions, or use the compiler-included build.',
|
|
|
vm
|
|
vm
|
|
|
)
|
|
)
|