@vitejs/devtools-rolldown 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -2
- package/dist/nitro.json +1 -1
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/{CcXFxXMQ.js → BleX7Loz.js} +2 -2
- package/dist/public/_nuxt/{D00v5GDJ.js → CAMw8o6X.js} +1 -1
- package/dist/public/_nuxt/{DEiLiWhM2.js → CMgL1OO02.js} +1 -1
- package/dist/public/_nuxt/{B8fJ7G-T.js → Cc25hvIa.js} +1 -1
- package/dist/public/_nuxt/{DKJ20h2B.js → ChjPWTWV.js} +1 -1
- package/dist/public/_nuxt/{qpeZMqnF.js → D355zo8J.js} +1 -1
- package/dist/public/_nuxt/{P_nXTQEe.js → DRDotB3_.js} +1 -1
- package/dist/public/_nuxt/{DU7iNs37.js → D_SWqqpX.js} +1 -1
- package/dist/public/_nuxt/{CavyT85L2.js → O6CYpA302.js} +1 -1
- package/dist/public/_nuxt/{BYiuS205.js → Vqydp92h.js} +1 -1
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/41dbd68d-0fb6-46b9-8488-2655f3bf60fa.json +1 -0
- package/dist/public/_nuxt/{entry.DguO3VpB.css → entry.hZ2mUD7T.css} +1 -1
- package/dist/public/_nuxt/error-404.DGENu4tq.css +1 -0
- package/dist/public/_nuxt/error-500.Dafb1iMn.css +1 -0
- package/dist/public/_nuxt/{BWeJkag7.js → jP7hav2h.js} +1 -1
- package/dist/public/_nuxt/{CHmEnixh2.js → q8es4sx12.js} +1 -1
- package/dist/public/index.html +1 -1
- package/package.json +3 -3
- package/dist/public/_nuxt/builds/meta/6ec89d4d-a88a-4396-9292-3f2655baa827.json +0 -1
- package/dist/public/_nuxt/error-404.D0uDCatO.css +0 -1
- package/dist/public/_nuxt/error-500.DSBLz6Ry.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.grid[data-v-e9758004]{display:grid}.mb-2[data-v-e9758004]{margin-bottom:.5rem}.mb-4[data-v-e9758004]{margin-bottom:1rem}.max-w-520px[data-v-e9758004]{max-width:520px}.min-h-screen[data-v-e9758004]{min-height:100vh}.w-full[data-v-e9758004]{width:100%}.flex[data-v-e9758004]{display:flex}.place-content-center[data-v-e9758004]{place-content:center}.items-center[data-v-e9758004]{align-items:center}.justify-center[data-v-e9758004]{justify-content:center}.overflow-hidden[data-v-e9758004]{overflow:hidden}.bg-white[data-v-e9758004]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-e9758004]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-e9758004]{text-align:center}.text-\[80px\][data-v-e9758004]{font-size:80px}.text-2xl[data-v-e9758004]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-e9758004]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-e9758004]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-e9758004]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-e9758004]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-e9758004]{font-weight:500}.font-semibold[data-v-e9758004]{font-weight:600}.leading-none[data-v-e9758004]{line-height:1}.tracking-wide[data-v-e9758004]{letter-spacing:.025em}.font-sans[data-v-e9758004]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-e9758004]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-e9758004]{text-decoration-line:underline}.underline-offset-3[data-v-e9758004]{text-underline-offset:3px}.antialiased[data-v-e9758004]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-e9758004]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-e9758004]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-e9758004]{font-size:110px}.sm\:text-3xl[data-v-e9758004]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.grid[data-v-72cca0e6]{display:grid}.mb-2[data-v-72cca0e6]{margin-bottom:.5rem}.mb-4[data-v-72cca0e6]{margin-bottom:1rem}.max-w-520px[data-v-72cca0e6]{max-width:520px}.min-h-screen[data-v-72cca0e6]{min-height:100vh}.place-content-center[data-v-72cca0e6]{place-content:center}.overflow-hidden[data-v-72cca0e6]{overflow:hidden}.bg-white[data-v-72cca0e6]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-72cca0e6]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-72cca0e6]{text-align:center}.text-\[80px\][data-v-72cca0e6]{font-size:80px}.text-2xl[data-v-72cca0e6]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-72cca0e6]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-72cca0e6]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-72cca0e6]{font-weight:600}.leading-none[data-v-72cca0e6]{line-height:1}.tracking-wide[data-v-72cca0e6]{letter-spacing:.025em}.font-sans[data-v-72cca0e6]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-72cca0e6]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-72cca0e6]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-72cca0e6]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-72cca0e6]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-72cca0e6]{font-size:110px}.sm\:text-3xl[data-v-72cca0e6]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./
|
|
1
|
+
import{r as e}from"./Vqydp92h.js";import{A as t,C as n,Jt as r,M as i,Q as a,R as o,S as s,Z as c,b as l,h as u,k as d,kt as f,lt as p,q as m,rt as h,tt as g,w as _,x as v}from"./CUBdwZVs.js";import{C as y}from"./BTfiKBAm.js";import{n as b}from"#entry";import{t as x}from"./CJdYjM__.js";import{r as S,t as C}from"./C5iGLYf8.js";import{r as w}from"./CBfhMqaX.js";import{s as T}from"./D8ugdtv-.js";import{t as E}from"./CgIVM_ZA.js";var D=[`title`],O={key:0,flex:`~ items-center gap-2`},k={op50:``,"font-mono":``},A=[`title`],j=[`title`],M=Object.assign(i({__name:`BaseInfo`,props:{chunk:{},link:{type:Boolean,default:!1},basic:{type:Boolean,default:!1}},setup(e){let i=e,o=y(),c=l(()=>Array.isArray(i.chunk.imports)?i.chunk.imports.length:i.chunk.imports),u=l(()=>Array.isArray(i.chunk.modules)?i.chunk.modules.length:i.chunk.modules);return(i,l)=>(m(),s(g(e.link?f(x):`div`),{to:e.link?typeof e.link==`string`?e.link:{path:f(o).path,query:{chunk:e.chunk.chunk_id}}:void 0,flex:`~ gap-3 items-center`},{default:p(()=>[v(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.chunk.chunk_id}`},[a(i.$slots,`icon`,{},()=>[l[0]||=v(`div`,{"i-ph-shapes-duotone":``},null,-1)]),v(`div`,null,r(e.chunk.name||`[unnamed]`),1),t(S,{text:e.chunk.reason},null,8,[`text`]),a(i.$slots,`left-after`)],8,D),l[3]||=v(`div`,{"flex-auto":``},null,-1),e.basic?n(``,!0):(m(),_(`div`,O,[v(`span`,k,`#`+r(e.chunk.chunk_id),1),v(`div`,{flex:`~ gap-1 items-center`,title:`${c.value} imports`},[l[1]||=v(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),d(` `+r(c.value),1)],8,A),v(`div`,{flex:`~ gap-1 items-center`,title:`${u.value} modules`},[l[2]||=v(`div`,{"i-ph-package-duotone":``},null,-1),d(` `+r(u.value),1)],8,j)])),a(i.$slots,`default`)]),_:3},8,[`to`]))}}),{__name:`ChunksBaseInfo`}),N={flex:`~ gap-2 items-center`},P=Object.assign(i({__name:`BaseInfo`,props:{asset:{}},setup(e){return(n,i)=>{let a=w;return m(),_(`div`,N,[i[0]||=v(`div`,{"i-catppuccin-java-class-abstract":``},null,-1),v(`div`,null,r(e.asset.filename),1),t(a,{bytes:e.asset.size,"text-sm":``},null,8,[`bytes`]),t(S,{text:e.asset.type},null,8,[`text`])])}}}),{__name:`AssetsBaseInfo`}),F={relative:``},I={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},L=Object.assign(i({__name:`ExpandableContainer`,props:o({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(e){let r=e,i=h(e,`count`),o=i.value,s=l(()=>r.list.slice(0,i.value));return(c,l)=>(m(),_(`div`,F,[a(c.$slots,`default`,{items:s.value}),e.list.length>i.value?(m(),_(`div`,I,[v(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[0]||=e=>i.value=Math.round(i.value+f(o))},[l[2]||=v(`div`,{"i-ri:arrow-down-double-line":``},null,-1),l[3]||=v(`span`,null,`More`,-1),t(E,{prefix:`+`,number:Math.min(Math.round(f(o)),r.list.length-i.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),v(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[1]||=e=>i.value=r.list.length},[l[4]||=v(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),l[5]||=v(`span`,null,`All`,-1),t(E,{number:r.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):n(``,!0)]))}}),{__name:`DisplayExpandableContainer`}),R={key:0,"i-ph-file-duotone":``},z={key:1,"i-ph-lightning-duotone":``},B=Object.assign(i({__name:`Imports`,props:{imports:{}},setup(e){return(r,i)=>{let a=M,o=L;return m(),s(o,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:e.imports},{default:p(({items:e})=>[(m(!0),_(u,null,c(e,(e,r)=>(m(),_(u,{key:r},[e?(m(),s(a,{key:0,chunk:e,link:``,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},{icon:p(()=>[e.kind===`import-statement`?(m(),_(`div`,R)):n(``,!0),e.kind===`dynamic-import`?(m(),_(`div`,z)):n(``,!0)]),"left-after":p(()=>[t(S,{text:e.kind},null,8,[`text`])]),_:2},1032,[`chunk`])):n(``,!0)],64))),128))]),_:1},8,[`list`])}}}),{__name:`ChunksImports`}),V={flex:`~ col gap-3`},H={key:1,"text-sm":``,op50:``,flex:`~ items-center`,title:`Total size of imports`},U={open:`true`},W={open:`true`},G={op50:``},K={key:0,open:`true`},q={op50:``},J={key:1,open:`true`},Y={op50:``},X=Object.assign(i({__name:`ChunkDetails`,props:{chunk:{},session:{},showDetails:{type:Boolean,default:!0},chunks:{}},setup(i){let o=i,h=l(()=>{let e=new Map;for(let t of o.session.modulesList)e.set(t.id,t);return e});function g(e){return e.reduce((e,t)=>{let n=h.value.get(t);return!n||!n.buildMetrics?.transforms?.length?e:e+n.buildMetrics.transforms.at(-1).transformed_code_size},0)}let E=l(()=>g(o.chunk.modules)),D=y(),O=e(),{state:k,isLoading:A}=T(async()=>{if(!o.chunks)return await O.value.call(`vite:rolldown:get-chunks-graph`,{session:o.session.id})},null),j=l(()=>o.chunks||k.value),N=l(()=>o.chunk.imports.map(e=>{let t=j.value?.find(t=>t.chunk_id===e.chunk_id);return{...e,name:t?.name||`[unnamed]`,reason:t?.reason||`common`,imports:t?.imports.length||0,modules:t?.modules.length||0,size:g(t?.modules||[])}})),F=l(()=>j.value?.filter(e=>e.imports.some(e=>e.chunk_id===o.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===o.chunk.chunk_id),chunk_id:e.chunk_id,name:e.name||`[unnamed]`,reason:e.reason||`common`,imports:e.imports.length||0,modules:e.modules.length||0}))||[]);return(e,o)=>{let l=w,h=M,g=P,y=x,T=C,O=L,k=b,j=B;return m(),_(`div`,V,[t(h,{chunk:i.chunk},{"left-after":p(()=>[i.chunk.is_initial?(m(),s(S,{key:0,text:`initial`})):n(``,!0),t(l,{bytes:E.value,"text-sm":``,title:`Chunk size`},null,8,[`bytes`]),N.value.length?(m(),_(`div`,H,[o[0]||=d(` (`,-1),t(l,{bytes:N.value.reduce((e,t)=>e+t.size,0)},null,8,[`bytes`]),o[1]||=d(`) `,-1)])):n(``,!0)]),default:p(()=>[a(e.$slots,`default`)]),_:3},8,[`chunk`]),i.showDetails?(m(),_(u,{key:0},[v(`details`,U,[o[2]||=v(`summary`,{op50:``},` Assets `,-1),t(y,{border:`~ base rounded-lg`,px2:``,mt2:``,py1:``,"min-w-fit":``,flex:`~`,to:{path:f(D).path,query:{asset:i.chunk.asset?.filename}}},{default:p(()=>[t(g,{asset:{...i.chunk.asset,type:`asset`}},null,8,[`asset`])]),_:1},8,[`to`])]),v(`details`,W,[v(`summary`,G,[v(`span`,null,`Modules (`+r(i.chunk.modules.length)+`)`,1)]),t(O,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:i.chunk.modules},{default:p(({items:e})=>[(m(!0),_(u,null,c(e,e=>(m(),s(T,{id:e,key:e,session:i.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])]),f(A)?(m(),s(k,{key:0})):(m(),_(u,{key:1},[i.chunk.imports.length?(m(),_(`details`,K,[v(`summary`,q,[v(`span`,null,`Imports (`+r(i.chunk.imports.length)+`)`,1)]),t(j,{imports:N.value},null,8,[`imports`])])):n(``,!0),F.value.length?(m(),_(`details`,J,[v(`summary`,Y,[v(`span`,null,`Importers (`+r(F.value.length)+`)`,1)]),t(j,{imports:F.value},null,8,[`imports`])])):n(``,!0)],64))],64)):n(``,!0)])}}}),{__name:`DataChunkDetails`});export{M as i,L as n,P as r,X as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./BYiuS205.js";import{A as t,B as n,C as r,D as i,Gt as a,Jt as o,M as s,S as c,Z as l,at as u,b as d,et as f,h as p,k as m,kt as h,lt as g,ot as _,q as v,qt as y,st as b,ut as x,w as S,x as C,xt as w,yt as T}from"./CUBdwZVs.js";import{C as E}from"./BTfiKBAm.js";import{n as D}from"#entry";import{t as O}from"./CJdYjM__.js";import{r as k}from"./C5iGLYf8.js";import{r as A,t as j}from"./CBfhMqaX.js";import{s as M,v as N,w as P}from"./D8ugdtv-.js";import{i as F,t as ee}from"./BWeJkag7.js";import{n as I}from"./CbQbsbZd.js";import{n as te,r as ne,t as L}from"./zt8ARaaw.js";import{a as re,c as ie,i as ae,n as R,o as z,r as oe,t as se}from"./BdFYEjeH.js";import{t as ce}from"./x1vnwfQM.js";import{n as le,r as ue,t as B}from"./BQIt7f6-2.js";var V=[`onClick`],de=Object.assign(s({__name:`FlatList`,props:{chunks:{},session:{},link:{type:Boolean,default:!0},basic:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:n}){let i=n;return(n,a)=>{let o=F;return v(),c(L,{items:e.chunks,"key-prop":`chunk_id`},{default:g(({item:n})=>[C(`div`,{flex:``,pb2:``,onClick:e=>i(`select`,n)},[t(o,{chunk:n,basic:e.basic,link:e.link,"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{"left-after":g(()=>[n.is_initial?(v(),c(k,{key:0,text:`initial`})):r(``,!0)]),_:2},1032,[`chunk`,`basic`,`link`])],8,V)]),_:1},8,[`items`])}}}),{__name:`ChunksFlatList`}),H={op50:``,"font-mono":``,w12:``},U=[`title`],W={flex:`~ gap-1 items-center`},fe=Object.assign(s({__name:`Graph`,props:{session:{},chunks:{},entryId:{default:``}},setup(e){let i=e,a=d(()=>i.chunks),s=E();return I({modules:a,spacing:{width:450,height:55,linkOffset:15,margin:120,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:r,spacing:o,tree:s,hierarchy:c,collapsedNodes:l,container:u,modulesMap:d,nodes:f,links:p,nodesMap:m,linksMap:g,width:_,height:v,childToParentMap:y}=e;return()=>{_.value=window.innerWidth,v.value=window.innerHeight;let e=a.value.filter(e=>i.entryId?e.id===i.entryId:e.reason===`entry`),b=new Set,x=c({module:{id:`~root`}},n=>`${n.module?.id}`==`~root`?(e.forEach(e=>{b.add(e),t.value&&y.set(e.id,`~root`)}),e.map(e=>({module:e,expanded:!l.has(e.id),hasChildren:!1}))):l.has(`${n.module?.id}`)?[]:n.module.imports?.map(e=>{let r=d.value.get(`${e.chunk_id}`);if(!(!r||b.has(r)))return t.value&&y.set(r.id,n.module.id),b.add(r),{module:r,expanded:!l.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,s().nodeSize([h(o.height),h(o.width)+h(o.gap)])(x);let S=x.descendants();for(let e of S)[e.x,e.y]=[e.y-h(o.width),e.x];let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<h(o.margin))for(let e of S)e.x+=Math.abs(C)+h(o.margin);if(w<h(o.margin))for(let e of S)e.y+=Math.abs(w)+h(o.margin);f.value=S,m.clear();for(let e of S)m.set(`${e.data.module.id}`,e);let T=x.links().filter(e=>`${e.source.data.module.id}`!=`~root`).map(e=>({...e,id:`${e.source.data.module.id}|${e.target.data.module.id}`})),E=a.value.flatMap(e=>e.imports.filter(t=>!T.some(n=>n.id===`${e.chunk_id}|${t.chunk_id}`)).map(t=>({source:m.get(`${e.chunk_id}`),target:m.get(`${t.chunk_id}`),id:`${e.chunk_id}|${t.chunk_id}`}))),D=[...T,...E];g.clear();for(let e of D)g.set(e.id,e);p.value=D,n(()=>{_.value=u.value.scrollWidth/r.value+h(o.margin),v.value=u.value.scrollHeight/r.value+h(o.margin)})}}}),(n,i)=>{let l=O,u=B;return v(),c(u,{session:e.session,modules:a.value,"expand-controls":!1},{default:g(({node:e})=>[t(l,{class:`flex items-center`,to:{path:h(s).path,query:{chunk:e.data.module.chunk_id}}},{default:g(()=>[C(`span`,H,`#`+o(e.data.module.id),1),C(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.data.module.id}`},[C(`div`,null,o(e.data.module.name||`[unnamed]`),1),t(k,{text:e.data.module.reason},null,8,[`text`]),e.data.module.is_initial?(v(),c(k,{key:0,text:`initial`})):r(``,!0)],8,U),i[1]||=C(`div`,{"flex-auto":``},null,-1),C(`div`,W,[i[0]||=C(`div`,{"i-ph-package-duotone":``},null,-1),m(` `+o(e.data.module.modules.length),1)])]),_:2},1032,[`to`])]),_:1},8,[`session`,`modules`])}}}),{__name:`ChunksGraph`}),G={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},K={flex:`~ col gap-4`},q={key:0,grid:`~ cols-[250px_1fr] gap-1`},J=[`onClick`],Y={key:0,"text-primary":``},X={key:1},Z=[`onClick`],Q=[`title`],pe=Object.assign(s({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:n}){let i=e,a=n,s=u(`el`);return b(()=>s.value?.append(i.graph.el)),(n,i)=>{let c=R,u=A,d=f(`tooltip`);return v(),S(`div`,G,[C(`div`,{ref_key:`el`,ref:s,"w-500px":``},null,512),C(`div`,K,[t(c,{border:`b base`,py2:``,selected:e.selected,options:e.graph.options,onSelect:i[0]||=e=>a(`select`,e)},null,8,[`selected`,`options`]),e.selected?(v(),S(`div`,q,[(v(!0),S(p,null,l(e.selected.children,n=>(v(),S(p,{key:n.id},[C(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>a(`select`,n)},[n.meta&&n.meta===e.selected?.meta?(v(),S(`span`,Y,`(self)`)):(v(),S(`span`,X,o(n.meta?.name||n.id),1))],8,J),C(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>a(`select`,n)},[C(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:y({background:h(z)(e.graph.options.getColor?.(n)||`#000`),width:`${n.size/e.selected.size*100}%`})},null,4),t(u,{"text-xs":``,bytes:n.size,total:e.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),n.children.length>0?x((v(),S(`div`,{key:0,title:`${n.children.length} modules`,"text-xs":``,"op-fade":``},[m(` (`+o(n.children.length)+`) `,1)],8,Q)),[[d,`${n.children.length} modules`]]):r(``,!0)],8,Z)],64))),128))])):r(``,!0)])])}}}),{__name:`ChunksSunburst`}),me=Object.assign(s({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,n=u(`el`);return b(()=>n.value?.append(t.graph.el)),(e,t)=>(v(),S(`div`,{ref_key:`el`,ref:n},null,512))}}),{__name:`ChunksFlamegraph`}),he={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},ge={key:0,h10:``,mr2:``,flex:`~ items-center`},_e={flex:`~ wrap gap-2 items-center`,p2:``,border:`t base`},ve=[`onClick`],ye={key:0,class:`px5 pt-4`,flex:`~ col gap-4`},be={key:1,class:`px5 pt-4`,flex:`~ col gap-4`},xe={key:3,flex:`~ col gap-2`},Se={key:4,flex:`~ col gap-2`,"pt-4":``},Ce={key:5,flex:`~ col gap-2`,"pt-4":``},we={key:0,border:`~ base rounded-lg`,"bg-base":``,p2:``,flex:`~ col gap-2`,"min-w-50":``,"shadow-lg":``},Te={flex:`~ gap-2 items-center`},Ee={truncate:``},De={flex:`~ gap-2 items-center`},Oe={key:0,flex:`~ gap-2 items-center`},ke={"text-xs":``},Ae={key:1,flex:`~ gap-2 items-center`},$=s({__name:`chunks`,props:{session:{}},setup(n){let s=n,u=T(N()),f=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Sunburst`,value:`sunburst`,icon:`i-ph-chart-donut-duotone`},{label:`Flamegraph`,value:`flamegraph`,icon:`i-ph-chart-bar-horizontal-duotone`}],y=w({search:``}),b=e(),{state:x,isLoading:E}=M(async()=>await b.value.call(`vite:rolldown:get-chunks-graph`,{session:s.session.id}),null),O=d(()=>{let e=new Map;return x.value?.forEach(t=>{e.set(`${t.chunk_id}`,t)}),e}),F=d(()=>x.value?.map(e=>({...e,id:`${e.chunk_id}`}))??[]),I=P(()=>F.value,()=>new ne(F.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),L=d(()=>y.value.search?I.value.search(y.value.search).map(e=>e.item):F.value),{pathSelectorVisible:z,pathNodes:B,selectPathNodes:V,togglePathSelector:H,normalizedGraph:U}=ue({onToggle:e=>{y.value.search=e?!1:``},dataMap:d(()=>O.value),list:d(()=>L.value),importIdKey:`chunk_id`});function W(e){j.value.chunkViewType=e}let G=d(()=>{let e=new Map;for(let t of s.session.modulesList)e.set(t.id,t);return e});function K(e){return e.asset?.size?e.asset.size:e.modules.reduce((e,t)=>{let n=G.value.get(t);return!n||!n.buildMetrics?.transforms?.length?e:e+n.buildMetrics.transforms.at(-1).transformed_code_size},0)}let{tree:q,chartOptions:J,graph:Y,nodeHover:X,nodeSelected:Z,selectedNode:Q,selectNode:$,buildGraph:je}=se({data:d(()=>L.value.map(e=>({...e,filename:e.name||`chunk-${e.chunk_id}`,size:K(e)}))),nameKey:`filename`,sizeKey:`size`,rootText:`Chunks`,nodeType:`chunk`,graphOptions:{onClick(e){e&&(X.value=e)},onHover(e){e&&(X.value=e),e===null&&(X.value=void 0)},onLeave(){X.value=void 0},onSelect(e){Z.value=e||q.value.root,Q.value=e?.meta}},onUpdate(){switch(j.value.chunkViewType){case`sunburst`:Y.value=new ae(q.value.root,J.value);break;case`treemap`:Y.value=new re(q.value.root,{...J.value,selectedPaddingRatio:0});break;case`flamegraph`:Y.value=new oe(q.value.root,J.value);break}}});return _(()=>j.value.chunkViewType,()=>{[`treemap`,`sunburst`,`flamegraph`].includes(j.value.chunkViewType)&&je()}),(e,s)=>{let d=D,_=de,b=le,x=te,w=ee,T=fe,M=R,N=pe,P=me,F=A,I=ie;return h(E)?(v(),c(d,{key:0})):(v(),S(`div`,{key:1,relative:``,class:a({"max-h-screen of-hidden":h(j).chunkViewType===`graph`})},[C(`div`,he,[t(x,{modelValue:y.value,"onUpdate:modelValue":s[2]||=e=>y.value=e,rules:[]},i({"search-end":g(()=>[h(j).chunkViewType===`graph`?(v(),S(`div`,ge,[C(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:s[1]||=e=>h(H)(!0)},[...s[5]||=[C(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):r(``,!0)]),default:g(()=>[C(`div`,_e,[s[6]||=C(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(v(),S(p,null,l(f,e=>C(`button`,{key:e.value,"btn-action":``,class:a(h(j).chunkViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>W(e.value)},[C(`div`,{class:a(e.icon)},null,2),m(` `+o(e.label),1)],10,ve)),64))])]),_:2},[h(z)?{name:`search`,fn:g(()=>[t(b,{session:n.session,data:L.value,"import-id-key":`chunk_id`,"search-keys":[`name`],onSelect:h(V),onClose:s[0]||=e=>h(H)(!1)},{list:g(({select:e,data:r})=>[t(_,{session:n.session,chunks:r,link:!1,basic:!0,onSelect:e},null,8,[`session`,`chunks`,`onSelect`])]),item:g(({id:e})=>[m(o(O.value.get(e)?.name||`[unnamed]`),1)]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`])]),h(j).chunkViewType===`list`?(v(),S(`div`,ye,[t(_,{session:n.session,chunks:L.value},null,8,[`session`,`chunks`])])):r(``,!0),h(j).chunkViewType===`detailed-list`?(v(),S(`div`,be,[(v(!0),S(p,null,l(L.value,e=>(v(),c(w,{key:e.id,border:`~ base rounded-lg`,p3:``,chunk:e,chunks:L.value,session:n.session},null,8,[`chunk`,`chunks`,`session`]))),128))])):h(j).chunkViewType===`graph`?(v(),c(T,{key:2,class:`pt32`,session:n.session,chunks:h(U),"entry-id":h(B).start},null,8,[`session`,`chunks`,`entry-id`])):h(j).chunkViewType===`treemap`?(v(),S(`div`,xe,[h(Y)?(v(),c(ce,{key:0,graph:h(Y),selected:h(Z),onSelect:s[3]||=e=>h($)(e)},{default:g(({selected:e,options:n,onSelect:r})=>[t(M,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:n,onSelect:r},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):r(``,!0)])):h(j).chunkViewType===`sunburst`?(v(),S(`div`,Se,[h(Y)?(v(),c(N,{key:0,graph:h(Y),selected:h(Z),onSelect:s[4]||=e=>h($)(e)},null,8,[`graph`,`selected`])):r(``,!0)])):h(j).chunkViewType===`flamegraph`?(v(),S(`div`,Ce,[h(Y)?(v(),c(P,{key:0,graph:h(Y)},null,8,[`graph`])):r(``,!0)])):r(``,!0),t(I,{"hover-x":u.x,"hover-y":u.y},{default:g(()=>[h(X)?.meta?(v(),S(`div`,we,[C(`div`,Te,[s[7]||=C(`i`,{"i-ph-shapes-duotone":``,"flex-none":``},null,-1),C(`span`,Ee,o(h(X).meta.name||`[unnamed]`),1)]),C(`div`,De,[s[8]||=C(`span`,{op50:``,"text-xs":``},`Size:`,-1),t(F,{bytes:h(X).meta.size,"text-xs":``},null,8,[`bytes`])]),h(X).meta.modules?.length?(v(),S(`div`,Oe,[s[9]||=C(`span`,{op50:``,"text-xs":``},`Modules:`,-1),C(`span`,ke,o(h(X).meta.modules?.length),1)])):r(``,!0),h(X).meta.is_initial?(v(),S(`div`,Ae,[t(k,{text:`initial`})])):r(``,!0)])):r(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],2))}}});export{$ as default};
|
|
1
|
+
import{r as e}from"./Vqydp92h.js";import{A as t,B as n,C as r,D as i,Gt as a,Jt as o,M as s,S as c,Z as l,at as u,b as d,et as f,h as p,k as m,kt as h,lt as g,ot as _,q as v,qt as y,st as b,ut as x,w as S,x as C,xt as w,yt as T}from"./CUBdwZVs.js";import{C as E}from"./BTfiKBAm.js";import{n as D}from"#entry";import{t as O}from"./CJdYjM__.js";import{r as k}from"./C5iGLYf8.js";import{r as A,t as j}from"./CBfhMqaX.js";import{s as M,v as N,w as P}from"./D8ugdtv-.js";import{i as F,t as ee}from"./jP7hav2h.js";import{n as I}from"./CbQbsbZd.js";import{n as te,r as ne,t as L}from"./zt8ARaaw.js";import{a as re,c as ie,i as ae,n as R,o as z,r as oe,t as se}from"./BdFYEjeH.js";import{t as ce}from"./x1vnwfQM.js";import{n as le,r as ue,t as B}from"./BQIt7f6-2.js";var V=[`onClick`],de=Object.assign(s({__name:`FlatList`,props:{chunks:{},session:{},link:{type:Boolean,default:!0},basic:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:n}){let i=n;return(n,a)=>{let o=F;return v(),c(L,{items:e.chunks,"key-prop":`chunk_id`},{default:g(({item:n})=>[C(`div`,{flex:``,pb2:``,onClick:e=>i(`select`,n)},[t(o,{chunk:n,basic:e.basic,link:e.link,"w-full":``,"font-mono":``,border:`~ rounded base`,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{"left-after":g(()=>[n.is_initial?(v(),c(k,{key:0,text:`initial`})):r(``,!0)]),_:2},1032,[`chunk`,`basic`,`link`])],8,V)]),_:1},8,[`items`])}}}),{__name:`ChunksFlatList`}),H={op50:``,"font-mono":``,w12:``},U=[`title`],W={flex:`~ gap-1 items-center`},fe=Object.assign(s({__name:`Graph`,props:{session:{},chunks:{},entryId:{default:``}},setup(e){let i=e,a=d(()=>i.chunks),s=E();return I({modules:a,spacing:{width:450,height:55,linkOffset:15,margin:120,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:r,spacing:o,tree:s,hierarchy:c,collapsedNodes:l,container:u,modulesMap:d,nodes:f,links:p,nodesMap:m,linksMap:g,width:_,height:v,childToParentMap:y}=e;return()=>{_.value=window.innerWidth,v.value=window.innerHeight;let e=a.value.filter(e=>i.entryId?e.id===i.entryId:e.reason===`entry`),b=new Set,x=c({module:{id:`~root`}},n=>`${n.module?.id}`==`~root`?(e.forEach(e=>{b.add(e),t.value&&y.set(e.id,`~root`)}),e.map(e=>({module:e,expanded:!l.has(e.id),hasChildren:!1}))):l.has(`${n.module?.id}`)?[]:n.module.imports?.map(e=>{let r=d.value.get(`${e.chunk_id}`);if(!(!r||b.has(r)))return t.value&&y.set(r.id,n.module.id),b.add(r),{module:r,expanded:!l.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,s().nodeSize([h(o.height),h(o.width)+h(o.gap)])(x);let S=x.descendants();for(let e of S)[e.x,e.y]=[e.y-h(o.width),e.x];let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<h(o.margin))for(let e of S)e.x+=Math.abs(C)+h(o.margin);if(w<h(o.margin))for(let e of S)e.y+=Math.abs(w)+h(o.margin);f.value=S,m.clear();for(let e of S)m.set(`${e.data.module.id}`,e);let T=x.links().filter(e=>`${e.source.data.module.id}`!=`~root`).map(e=>({...e,id:`${e.source.data.module.id}|${e.target.data.module.id}`})),E=a.value.flatMap(e=>e.imports.filter(t=>!T.some(n=>n.id===`${e.chunk_id}|${t.chunk_id}`)).map(t=>({source:m.get(`${e.chunk_id}`),target:m.get(`${t.chunk_id}`),id:`${e.chunk_id}|${t.chunk_id}`}))),D=[...T,...E];g.clear();for(let e of D)g.set(e.id,e);p.value=D,n(()=>{_.value=u.value.scrollWidth/r.value+h(o.margin),v.value=u.value.scrollHeight/r.value+h(o.margin)})}}}),(n,i)=>{let l=O,u=B;return v(),c(u,{session:e.session,modules:a.value,"expand-controls":!1},{default:g(({node:e})=>[t(l,{class:`flex items-center`,to:{path:h(s).path,query:{chunk:e.data.module.chunk_id}}},{default:g(()=>[C(`span`,H,`#`+o(e.data.module.id),1),C(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.data.module.id}`},[C(`div`,null,o(e.data.module.name||`[unnamed]`),1),t(k,{text:e.data.module.reason},null,8,[`text`]),e.data.module.is_initial?(v(),c(k,{key:0,text:`initial`})):r(``,!0)],8,U),i[1]||=C(`div`,{"flex-auto":``},null,-1),C(`div`,W,[i[0]||=C(`div`,{"i-ph-package-duotone":``},null,-1),m(` `+o(e.data.module.modules.length),1)])]),_:2},1032,[`to`])]),_:1},8,[`session`,`modules`])}}}),{__name:`ChunksGraph`}),G={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},K={flex:`~ col gap-4`},q={key:0,grid:`~ cols-[250px_1fr] gap-1`},J=[`onClick`],Y={key:0,"text-primary":``},X={key:1},Z=[`onClick`],Q=[`title`],pe=Object.assign(s({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:n}){let i=e,a=n,s=u(`el`);return b(()=>s.value?.append(i.graph.el)),(n,i)=>{let c=R,u=A,d=f(`tooltip`);return v(),S(`div`,G,[C(`div`,{ref_key:`el`,ref:s,"w-500px":``},null,512),C(`div`,K,[t(c,{border:`b base`,py2:``,selected:e.selected,options:e.graph.options,onSelect:i[0]||=e=>a(`select`,e)},null,8,[`selected`,`options`]),e.selected?(v(),S(`div`,q,[(v(!0),S(p,null,l(e.selected.children,n=>(v(),S(p,{key:n.id},[C(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>a(`select`,n)},[n.meta&&n.meta===e.selected?.meta?(v(),S(`span`,Y,`(self)`)):(v(),S(`span`,X,o(n.meta?.name||n.id),1))],8,J),C(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>a(`select`,n)},[C(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:y({background:h(z)(e.graph.options.getColor?.(n)||`#000`),width:`${n.size/e.selected.size*100}%`})},null,4),t(u,{"text-xs":``,bytes:n.size,total:e.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),n.children.length>0?x((v(),S(`div`,{key:0,title:`${n.children.length} modules`,"text-xs":``,"op-fade":``},[m(` (`+o(n.children.length)+`) `,1)],8,Q)),[[d,`${n.children.length} modules`]]):r(``,!0)],8,Z)],64))),128))])):r(``,!0)])])}}}),{__name:`ChunksSunburst`}),me=Object.assign(s({__name:`Flamegraph`,props:{graph:{}},setup(e){let t=e,n=u(`el`);return b(()=>n.value?.append(t.graph.el)),(e,t)=>(v(),S(`div`,{ref_key:`el`,ref:n},null,512))}}),{__name:`ChunksFlamegraph`}),he={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},ge={key:0,h10:``,mr2:``,flex:`~ items-center`},_e={flex:`~ wrap gap-2 items-center`,p2:``,border:`t base`},ve=[`onClick`],ye={key:0,class:`px5 pt-4`,flex:`~ col gap-4`},be={key:1,class:`px5 pt-4`,flex:`~ col gap-4`},xe={key:3,flex:`~ col gap-2`},Se={key:4,flex:`~ col gap-2`,"pt-4":``},Ce={key:5,flex:`~ col gap-2`,"pt-4":``},we={key:0,border:`~ base rounded-lg`,"bg-base":``,p2:``,flex:`~ col gap-2`,"min-w-50":``,"shadow-lg":``},Te={flex:`~ gap-2 items-center`},Ee={truncate:``},De={flex:`~ gap-2 items-center`},Oe={key:0,flex:`~ gap-2 items-center`},ke={"text-xs":``},Ae={key:1,flex:`~ gap-2 items-center`},$=s({__name:`chunks`,props:{session:{}},setup(n){let s=n,u=T(N()),f=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Sunburst`,value:`sunburst`,icon:`i-ph-chart-donut-duotone`},{label:`Flamegraph`,value:`flamegraph`,icon:`i-ph-chart-bar-horizontal-duotone`}],y=w({search:``}),b=e(),{state:x,isLoading:E}=M(async()=>await b.value.call(`vite:rolldown:get-chunks-graph`,{session:s.session.id}),null),O=d(()=>{let e=new Map;return x.value?.forEach(t=>{e.set(`${t.chunk_id}`,t)}),e}),F=d(()=>x.value?.map(e=>({...e,id:`${e.chunk_id}`}))??[]),I=P(()=>F.value,()=>new ne(F.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),L=d(()=>y.value.search?I.value.search(y.value.search).map(e=>e.item):F.value),{pathSelectorVisible:z,pathNodes:B,selectPathNodes:V,togglePathSelector:H,normalizedGraph:U}=ue({onToggle:e=>{y.value.search=e?!1:``},dataMap:d(()=>O.value),list:d(()=>L.value),importIdKey:`chunk_id`});function W(e){j.value.chunkViewType=e}let G=d(()=>{let e=new Map;for(let t of s.session.modulesList)e.set(t.id,t);return e});function K(e){return e.asset?.size?e.asset.size:e.modules.reduce((e,t)=>{let n=G.value.get(t);return!n||!n.buildMetrics?.transforms?.length?e:e+n.buildMetrics.transforms.at(-1).transformed_code_size},0)}let{tree:q,chartOptions:J,graph:Y,nodeHover:X,nodeSelected:Z,selectedNode:Q,selectNode:$,buildGraph:je}=se({data:d(()=>L.value.map(e=>({...e,filename:e.name||`chunk-${e.chunk_id}`,size:K(e)}))),nameKey:`filename`,sizeKey:`size`,rootText:`Chunks`,nodeType:`chunk`,graphOptions:{onClick(e){e&&(X.value=e)},onHover(e){e&&(X.value=e),e===null&&(X.value=void 0)},onLeave(){X.value=void 0},onSelect(e){Z.value=e||q.value.root,Q.value=e?.meta}},onUpdate(){switch(j.value.chunkViewType){case`sunburst`:Y.value=new ae(q.value.root,J.value);break;case`treemap`:Y.value=new re(q.value.root,{...J.value,selectedPaddingRatio:0});break;case`flamegraph`:Y.value=new oe(q.value.root,J.value);break}}});return _(()=>j.value.chunkViewType,()=>{[`treemap`,`sunburst`,`flamegraph`].includes(j.value.chunkViewType)&&je()}),(e,s)=>{let d=D,_=de,b=le,x=te,w=ee,T=fe,M=R,N=pe,P=me,F=A,I=ie;return h(E)?(v(),c(d,{key:0})):(v(),S(`div`,{key:1,relative:``,class:a({"max-h-screen of-hidden":h(j).chunkViewType===`graph`})},[C(`div`,he,[t(x,{modelValue:y.value,"onUpdate:modelValue":s[2]||=e=>y.value=e,rules:[]},i({"search-end":g(()=>[h(j).chunkViewType===`graph`?(v(),S(`div`,ge,[C(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:s[1]||=e=>h(H)(!0)},[...s[5]||=[C(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):r(``,!0)]),default:g(()=>[C(`div`,_e,[s[6]||=C(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(v(),S(p,null,l(f,e=>C(`button`,{key:e.value,"btn-action":``,class:a(h(j).chunkViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>W(e.value)},[C(`div`,{class:a(e.icon)},null,2),m(` `+o(e.label),1)],10,ve)),64))])]),_:2},[h(z)?{name:`search`,fn:g(()=>[t(b,{session:n.session,data:L.value,"import-id-key":`chunk_id`,"search-keys":[`name`],onSelect:h(V),onClose:s[0]||=e=>h(H)(!1)},{list:g(({select:e,data:r})=>[t(_,{session:n.session,chunks:r,link:!1,basic:!0,onSelect:e},null,8,[`session`,`chunks`,`onSelect`])]),item:g(({id:e})=>[m(o(O.value.get(e)?.name||`[unnamed]`),1)]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`])]),h(j).chunkViewType===`list`?(v(),S(`div`,ye,[t(_,{session:n.session,chunks:L.value},null,8,[`session`,`chunks`])])):r(``,!0),h(j).chunkViewType===`detailed-list`?(v(),S(`div`,be,[(v(!0),S(p,null,l(L.value,e=>(v(),c(w,{key:e.id,border:`~ base rounded-lg`,p3:``,chunk:e,chunks:L.value,session:n.session},null,8,[`chunk`,`chunks`,`session`]))),128))])):h(j).chunkViewType===`graph`?(v(),c(T,{key:2,class:`pt32`,session:n.session,chunks:h(U),"entry-id":h(B).start},null,8,[`session`,`chunks`,`entry-id`])):h(j).chunkViewType===`treemap`?(v(),S(`div`,xe,[h(Y)?(v(),c(ce,{key:0,graph:h(Y),selected:h(Z),onSelect:s[3]||=e=>h($)(e)},{default:g(({selected:e,options:n,onSelect:r})=>[t(M,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:n,onSelect:r},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):r(``,!0)])):h(j).chunkViewType===`sunburst`?(v(),S(`div`,Se,[h(Y)?(v(),c(N,{key:0,graph:h(Y),selected:h(Z),onSelect:s[4]||=e=>h($)(e)},null,8,[`graph`,`selected`])):r(``,!0)])):h(j).chunkViewType===`flamegraph`?(v(),S(`div`,Ce,[h(Y)?(v(),c(P,{key:0,graph:h(Y)},null,8,[`graph`])):r(``,!0)])):r(``,!0),t(I,{"hover-x":u.x,"hover-y":u.y},{default:g(()=>[h(X)?.meta?(v(),S(`div`,we,[C(`div`,Te,[s[7]||=C(`i`,{"i-ph-shapes-duotone":``,"flex-none":``},null,-1),C(`span`,Ee,o(h(X).meta.name||`[unnamed]`),1)]),C(`div`,De,[s[8]||=C(`span`,{op50:``,"text-xs":``},`Size:`,-1),t(F,{bytes:h(X).meta.size,"text-xs":``},null,8,[`bytes`])]),h(X).meta.modules?.length?(v(),S(`div`,Oe,[s[9]||=C(`span`,{op50:``,"text-xs":``},`Modules:`,-1),C(`span`,ke,o(h(X).meta.modules?.length),1)])):r(``,!0),h(X).meta.is_initial?(v(),S(`div`,Ae,[t(k,{text:`initial`})])):r(``,!0)])):r(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],2))}}});export{$ as default};
|
package/dist/public/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__devtools-rolldown/_nuxt/BleX7Loz.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/__devtools-rolldown/_nuxt/entry.hZ2mUD7T.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/BleX7Loz.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/Vqydp92h.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/CUBdwZVs.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/CxYeQaBW.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/5tvbNeKa.js"><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/BTfiKBAm.js"><script type="module" src="/__devtools-rolldown/_nuxt/BleX7Loz.js" crossorigin></script><meta name="description" content="DevTools for Rolldown"><meta property="og:title" content="Rolldown DevTools"><meta property="og:description" content="DevTools for Rolldown"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script id="unhead:payload" type="application/json">{"title":"Rolldown DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__devtools-rolldown/",buildId:"41dbd68d-0fb6-46b9-8488-2655f3bf60fa",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1778225976974,false]</script></body></html>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/devtools-rolldown",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.21",
|
|
5
5
|
"description": "DevTools for Rolldown",
|
|
6
6
|
"author": "VoidZero Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"unstorage": "^1.17.5",
|
|
53
53
|
"vue-virtual-scroller": "^3.0.3",
|
|
54
54
|
"ws": "^8.20.0",
|
|
55
|
-
"@vitejs/devtools-kit": "0.1.
|
|
56
|
-
"devframe": "0.1.
|
|
55
|
+
"@vitejs/devtools-kit": "0.1.21",
|
|
56
|
+
"devframe": "0.1.21"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/split2": "^4.2.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"6ec89d4d-a88a-4396-9292-3f2655baa827","timestamp":1778171239937,"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.grid[data-v-d0e9a559]{display:grid}.mb-2[data-v-d0e9a559]{margin-bottom:.5rem}.mb-4[data-v-d0e9a559]{margin-bottom:1rem}.max-w-520px[data-v-d0e9a559]{max-width:520px}.min-h-screen[data-v-d0e9a559]{min-height:100vh}.w-full[data-v-d0e9a559]{width:100%}.flex[data-v-d0e9a559]{display:flex}.place-content-center[data-v-d0e9a559]{place-content:center}.items-center[data-v-d0e9a559]{align-items:center}.justify-center[data-v-d0e9a559]{justify-content:center}.overflow-hidden[data-v-d0e9a559]{overflow:hidden}.bg-white[data-v-d0e9a559]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-d0e9a559]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-d0e9a559]{text-align:center}.text-\[80px\][data-v-d0e9a559]{font-size:80px}.text-2xl[data-v-d0e9a559]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-d0e9a559]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-d0e9a559]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-d0e9a559]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-d0e9a559]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-d0e9a559]{font-weight:500}.font-semibold[data-v-d0e9a559]{font-weight:600}.leading-none[data-v-d0e9a559]{line-height:1}.tracking-wide[data-v-d0e9a559]{letter-spacing:.025em}.font-sans[data-v-d0e9a559]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-d0e9a559]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-d0e9a559]{text-decoration-line:underline}.underline-offset-3[data-v-d0e9a559]{text-underline-offset:3px}.antialiased[data-v-d0e9a559]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-d0e9a559]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-d0e9a559]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-d0e9a559]{font-size:110px}.sm\:text-3xl[data-v-d0e9a559]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.grid[data-v-5c91c58c]{display:grid}.mb-2[data-v-5c91c58c]{margin-bottom:.5rem}.mb-4[data-v-5c91c58c]{margin-bottom:1rem}.max-w-520px[data-v-5c91c58c]{max-width:520px}.min-h-screen[data-v-5c91c58c]{min-height:100vh}.place-content-center[data-v-5c91c58c]{place-content:center}.overflow-hidden[data-v-5c91c58c]{overflow:hidden}.bg-white[data-v-5c91c58c]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-5c91c58c]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-5c91c58c]{text-align:center}.text-\[80px\][data-v-5c91c58c]{font-size:80px}.text-2xl[data-v-5c91c58c]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-5c91c58c]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-5c91c58c]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-5c91c58c]{font-weight:600}.leading-none[data-v-5c91c58c]{line-height:1}.tracking-wide[data-v-5c91c58c]{letter-spacing:.025em}.font-sans[data-v-5c91c58c]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-5c91c58c]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-5c91c58c]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-5c91c58c]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-5c91c58c]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-5c91c58c]{font-size:110px}.sm\:text-3xl[data-v-5c91c58c]{font-size:1.875rem;line-height:2.25rem}}
|