diff --git a/packages/runtime-core/src/componentRenderUtils.ts b/packages/runtime-core/src/componentRenderUtils.ts index 4ad291453ef..2540b27a001 100644 --- a/packages/runtime-core/src/componentRenderUtils.ts +++ b/packages/runtime-core/src/componentRenderUtils.ts @@ -235,7 +235,7 @@ export function renderComponentRoot( } // #5407 - if (root.patchFlag > 0 && root.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT) { + if (!__DEV__ && root.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT) { const singleRoot = filterSingleRoot(root.children as VNodeArrayChildren) if (singleRoot) root = singleRoot }