@vitejs/devtools-vite 0.0.0-alpha.7 → 0.0.0-alpha.9
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.js +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/BkcJ9YuP.js +33 -0
- package/dist/public/_nuxt/Bs1eUuZt.js +1 -0
- package/dist/public/_nuxt/{Dck9PP97.js → C2Zn9dj_.js} +1 -1
- package/dist/public/_nuxt/CSwEzrF7.js +11 -0
- package/dist/public/_nuxt/ChaI2u-J.js +1 -0
- package/dist/public/_nuxt/CmZYssbg.js +1 -0
- package/dist/public/_nuxt/{_h9oVyD9.js → D2Zr4_9a.js} +1 -1
- package/dist/public/_nuxt/D7AVRXB9.js +1 -0
- package/dist/public/_nuxt/DP5rIU2b.js +1 -0
- package/dist/public/_nuxt/{B7i9KC-T.js → DcamI1aQ.js} +1 -1
- package/dist/public/_nuxt/{DY1DGGP1.js → HzvsUJ0F.js} +1 -1
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/ef0d166a-8482-442c-9350-f2a451006de7.json +1 -0
- package/dist/public/_nuxt/entry.D6FiGaDn.css +1 -0
- package/dist/public/_nuxt/{CqhxNBIt.js → qkzn-X0p.js} +1 -1
- package/dist/public/_nuxt/{CIa3yLEd.js → vzoJapJG.js} +1 -1
- package/dist/public/index.html +1 -1
- package/package.json +3 -3
- package/dist/public/_nuxt/0mOko9PX.js +0 -1
- package/dist/public/_nuxt/BA32mbNN.js +0 -11
- package/dist/public/_nuxt/BRMjfH79.js +0 -1
- package/dist/public/_nuxt/C8mRFS2c.js +0 -1
- package/dist/public/_nuxt/DBFcewx9.js +0 -33
- package/dist/public/_nuxt/builds/meta/e64426aa-3532-49bb-9bf1-178874074559.json +0 -1
- package/dist/public/_nuxt/entry.DwSNyIHU.css +0 -1
- package/dist/public/_nuxt/qsYzBPmV.js +0 -1
- /package/dist/public/_nuxt/{BqsmMM9I.js → B-LCQpq9.js} +0 -0
- /package/dist/public/_nuxt/{CIEMjxLP.js → BFwdTbGt.js} +0 -0
- /package/dist/public/_nuxt/{CeqjGqGg.js → CIZ7KSXz.js} +0 -0
- /package/dist/public/_nuxt/{DdKbKDl1.js → Cnct9GAr.js} +0 -0
- /package/dist/public/_nuxt/{D5wipTtw.js → Cq2KqeQT.js} +0 -0
- /package/dist/public/_nuxt/{C_nQe8Pd.js → D03ETnho.js} +0 -0
- /package/dist/public/_nuxt/{CAhTQkqV.js → LMGHh3hZ.js} +0 -0
- /package/dist/public/_nuxt/{zFCtWS_S.js → lxg2Cb0s.js} +0 -0
- /package/dist/public/_nuxt/{CiYp-ND6.js → mIZU4Om9.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Tt as e,Vt as t,W as n,c as r,ct as i,en as a,ft as o,in as s,it as c,kt as l,lt as u,mt as d,ot as f,pt as p,st as m,tn as h,ut as g,x as _,xt as v,y}from"#entry";import{t as b}from"./Jdu9jmuG.js";import"./DQtLZa7C.js";import"./B_mZ82Ef.js";import"./2OALqkc2.js";import{r as x}from"./DL1ysgP5.js";import{t as S}from"./Cql2HFZJ.js";import{t as C}from"./C8mRFS2c.js";import{t as w}from"./CAhTQkqV.js";import{t as T}from"./B7i9KC-T.js";var E={op50:``,"font-mono":``,w12:``},D=[`title`],O={flex:`~ gap-1 items-center`},k=d({__name:`Graph`,props:{session:{},chunks:{}},setup(r){let c=r,l=f(()=>c.chunks),u=n();return w({modules:l,spacing:{width:450,height:55,linkOffset:15,margin:120,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:n,spacing:r,tree:i,hierarchy:o,collapsedNodes:s,container:c,modulesMap:u,nodes:d,links:f,nodesMap:p,linksMap:m,width:h,height:g,childToParentMap:_}=e;return()=>{h.value=window.innerWidth,g.value=window.innerHeight;let e=l.value.filter(e=>e.reason===`entry`),y=new Set,b=o({module:{id:`~root`}},n=>`${n.module?.id}`==`~root`?(e.forEach(e=>{y.add(e),t.value&&_.set(e.id,`~root`)}),e.map(e=>({module:e,expanded:!s.has(e.id),hasChildren:!1}))):s.has(`${n.module?.id}`)?[]:n.module.imports?.map(e=>{let r=u.value.get(`${e.chunk_id}`);if(!(!r||y.has(r)))return t.value&&_.set(r.id,n.module.id),y.add(r),{module:r,expanded:!s.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,i().nodeSize([a(r.height),a(r.width)+a(r.gap)])(b);let x=b.descendants();for(let e of x)[e.x,e.y]=[e.y-a(r.width),e.x];let S=Math.min(...x.map(e=>e.x)),C=Math.min(...x.map(e=>e.y));if(S<a(r.margin))for(let e of x)e.x+=Math.abs(S)+a(r.margin);if(C<a(r.margin))for(let e of x)e.y+=Math.abs(C)+a(r.margin);d.value=x,p.clear();for(let e of x)p.set(`${e.data.module.id}`,e);let w=b.links().filter(e=>`${e.source.data.module.id}`!=`~root`).map(e=>({...e,id:`${e.source.data.module.id}|${e.target.data.module.id}`})),T=l.value.flatMap(e=>e.imports.filter(t=>!w.find(n=>n.id===`${e.chunk_id}|${t.chunk_id}`)).map(t=>({source:p.get(`${e.chunk_id}`),target:p.get(`${t.chunk_id}`),id:`${e.chunk_id}|${t.chunk_id}`}))),E=[...w,...T];m.clear();for(let e of E)m.set(e.id,e);f.value=E,v(()=>{h.value=c.value.scrollWidth/n.value+a(r.margin),g.value=c.value.scrollHeight/n.value+a(r.margin)})}}}),(n,c)=>{let d=x,f=b,h=T;return e(),i(h,{session:r.session,modules:l.value,"expand-controls":!1},{default:t(({node:e})=>[p(f,{class:`flex items-center`,to:{path:a(u).path,query:{chunk:e.data.module.chunk_id}}},{default:t(()=>[m(`span`,E,`#`+s(e.data.module.id),1),m(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.data.module.id}`},[m(`div`,null,s(e.data.module.name||`[unnamed]`),1),p(d,{text:e.data.module.reason},null,8,[`text`])],8,D),c[1]||=m(`div`,{"flex-auto":``},null,-1),m(`div`,O,[c[0]||=m(`div`,{"i-ph-package-duotone":``},null,-1),o(` `+s(e.data.module.modules.length),1)])]),_:2},1032,[`to`])]),_:1},8,[`session`,`modules`])}}}),A=Object.assign(k,{__name:`ChunksGraph`}),j={key:1,relative:``,"max-h-screen":``,"of-hidden":``},M={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},N={flex:`~ gap-2 items-center`,p2:``,border:`~ base rounded-xl`,"bg-glass":``},P=[`onClick`],F={key:0,class:`px5 pt24 of-auto h-screen`,flex:`~ col gap-4`},I=d({__name:`chunks`,props:{session:{}},setup(t){let n=t,d=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`}],p=y(),{state:v,isLoading:b}=r(async()=>await p.value[`vite:rolldown:get-chunks-graph`]?.({session:n.session.id}),null),x=f(()=>v.value?.map(e=>({...e,id:`${e.chunk_id}`}))??[]);function w(e){S.value.chunkViewType=e}return(n,r)=>{let f=_,p=C,y=A;return a(b)?(e(),i(f,{key:0})):(e(),g(`div`,j,[m(`div`,M,[m(`div`,N,[r[0]||=m(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(e(),g(c,null,l(d,e=>m(`button`,{key:e.value,"btn-action":``,class:h(a(S).chunkViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>w(e.value)},[m(`div`,{class:h(e.icon)},null,2),o(` `+s(e.label),1)],10,P)),64))])]),a(S).chunkViewType===`list`?(e(),g(`div`,F,[(e(!0),g(c,null,l(a(v),n=>(e(),i(p,{key:n.id,border:`~ base rounded-lg`,p3:``,chunk:n,chunks:a(v),session:t.session},null,8,[`chunk`,`chunks`,`session`]))),128))])):a(S).chunkViewType===`graph`?(e(),i(y,{key:1,session:t.session,chunks:x.value},null,8,[`session`,`chunks`])):u(``,!0)]))}}});export{I as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{At as e,Tt as t,Vt as n,W as r,c as i,ct as a,en as o,ft as s,in as c,it as l,kt as u,lt as d,mt as f,ot as p,pt as m,st as h,ut as g,x as _,y as v}from"#entry";import{t as y}from"./Jdu9jmuG.js";import{r as b,t as x}from"./DL1ysgP5.js";import{r as S}from"./Cql2HFZJ.js";var C=[`title`],w={key:0,"i-ph-file-duotone":``},T={key:1,"i-ph-lightning-duotone":``},E={"text-sm":``,flex:`~ items-center gap-2`},D={op50:``,"font-mono":``},O={flex:`~ gap-1 items-center`},k={flex:`~ gap-1 items-center`},A=f({__name:`ChunkImports`,props:{chunk:{}},setup(e){let i=r();return(r,l)=>{let u=b,f=y;return e.chunk?(t(),a(f,{key:0,flex:`~ items-center`,to:{path:o(i).path,query:{chunk:e.chunk.chunk_id}}},{default:n(()=>[h(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.chunk.chunk_id}`},[e.chunk.kind===`import-statement`?(t(),g(`div`,w)):d(``,!0),e.chunk.kind===`dynamic-import`?(t(),g(`div`,T)):d(``,!0),h(`div`,null,c(e.chunk.name||`[unnamed]`),1),m(u,{text:e.chunk.reason},null,8,[`text`]),m(u,{text:e.chunk.kind},null,8,[`text`])],8,C),l[2]||=h(`div`,{"flex-auto":``},null,-1),h(`div`,E,[h(`span`,D,`#`+c(e.chunk.chunk_id),1),h(`div`,O,[l[0]||=h(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),s(` `+c(e.chunk.imports),1)]),h(`div`,k,[l[1]||=h(`div`,{"i-ph-package-duotone":``},null,-1),s(` `+c(e.chunk.modules),1)])])]),_:1},8,[`to`])):d(``,!0)}}}),j=Object.assign(A,{__name:`DisplayChunkImports`}),M={flex:`~ col gap-3`},N={flex:`~ gap-3 items-center`},P=[`title`],F={op50:``,"font-mono":``},I={flex:`~ gap-1 items-center`},L={flex:`~ gap-1 items-center`},R={key:0,open:`true`},z={op50:``},B={flex:`~ col gap-1`,mt2:``,"ws-nowrap":``},V={key:1,open:`true`},H={op50:``},U={key:1,flex:`~ col gap-1`,mt2:``,"ws-nowrap":``},W=f({__name:`ChunkDetails`,props:{chunk:{},session:{},showModules:{type:Boolean,default:!0},showImports:{type:Boolean,default:!0},chunks:{}},setup(n){let r=n,f=p(()=>{let e=new Map;for(let t of r.session.modulesList)e.set(t.id,t);return e}),y=p(()=>r.chunk.modules.reduce((e,t)=>{let n=f.value.get(t)?.buildMetrics?.transforms;return n?.length?e+n[n.length-1].transformed_code_size:e},0)),C=v(),{state:w,isLoading:T}=i(async()=>{if(!r.chunks)return await C.value[`vite:rolldown:get-chunks-graph`]?.({session:r.session.id})},null),E=p(()=>r.chunk.imports.map(e=>{let t=(r.chunks||w.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}}));return(r,i)=>{let f=b,p=S,v=x,C=_,w=j;return t(),g(`div`,M,[h(`div`,N,[h(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${n.chunk.chunk_id}`},[i[0]||=h(`div`,{"i-ph-shapes-duotone":``},null,-1),h(`div`,null,c(n.chunk.name||`[unnamed]`),1),m(f,{text:n.chunk.reason},null,8,[`text`]),m(p,{bytes:y.value,"text-sm":``},null,8,[`bytes`])],8,P),i[3]||=h(`div`,{"flex-auto":``},null,-1),h(`span`,F,`#`+c(n.chunk.chunk_id),1),h(`div`,I,[i[1]||=h(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),s(` `+c(n.chunk.imports.length),1)]),h(`div`,L,[i[2]||=h(`div`,{"i-ph-package-duotone":``},null,-1),s(` `+c(n.chunk.modules.length),1)]),e(r.$slots,`default`)]),n.showModules?(t(),g(`details`,R,[h(`summary`,z,[h(`span`,null,`Modules (`+c(n.chunk.modules.length)+`)`,1)]),h(`div`,B,[(t(!0),g(l,null,u(n.chunk.modules,e=>(t(),a(v,{id:e,key:e,session:n.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))])])):d(``,!0),n.showImports&&n.chunk.imports.length>0?(t(),g(`details`,V,[h(`summary`,H,[h(`span`,null,`Imports (`+c(n.chunk.imports.length)+`)`,1)]),o(T)?(t(),a(C,{key:0})):(t(),g(`div`,U,[(t(!0),g(l,null,u(E.value,e=>(t(),a(w,{key:e.chunk_id,chunk:e,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`chunk`]))),128))]))])):d(``,!0)])}}}),G=Object.assign(W,{__name:`DataChunkDetails`});export{G as t};
|