bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
1 lines • 563 B
Source Map (JSON)
{"version":3,"file":"flattenFragments-ClbLQGqR.mjs","names":[],"sources":["../src/utils/flattenFragments.ts"],"sourcesContent":["import {Fragment, type VNode} from 'vue'\n\nexport function flattenFragments(nodes: VNode[]): VNode[] {\n return nodes\n .map((node) => {\n if (node.type === Fragment) {\n return flattenFragments(node.children as VNode[])\n }\n return node\n })\n .flat()\n}\n"],"mappings":";;AAEA,SAAgB,iBAAiB,OAAyB;AACxD,QAAO,MACJ,KAAK,SAAS;AACb,MAAI,KAAK,SAAS,SAChB,QAAO,iBAAiB,KAAK,SAAoB;AAEnD,SAAO;GACP,CACD,MAAM"}