diff --git a/packages/runtime-core/src/componentRenderUtils.ts b/packages/runtime-core/src/componentRenderUtils.ts index e07a31ee202..7ae6446c825 100644 --- a/packages/runtime-core/src/componentRenderUtils.ts +++ b/packages/runtime-core/src/componentRenderUtils.ts @@ -226,7 +226,7 @@ export function renderComponentRoot( // inherit directives if (vnode.dirs) { - if (__DEV__ && !isElementRoot(root)) { + if (!isElementRoot(root)) { warn( `Runtime directive used on component with non-element root node. ` + `The directives will not function as intended.`, @@ -238,7 +238,7 @@ export function renderComponentRoot( } // inherit transition data if (vnode.transition) { - if (__DEV__ && !isElementRoot(root)) { + if (!isElementRoot(root)) { warn( `Component inside renders non-element root node ` + `that cannot be animated.`,