@vitejs/devtools-rolldown 0.1.18 → 0.1.20

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.
Files changed (79) hide show
  1. package/dist/index.mjs +14 -0
  2. package/dist/nitro.json +1 -1
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/20hUiP46.js +1 -0
  6. package/dist/public/_nuxt/{D8Se1EWj.js → B8fJ7G-T.js} +1 -1
  7. package/dist/public/_nuxt/BAyxWnhM2.js +1 -0
  8. package/dist/public/_nuxt/BOT9W_ZD.js +1 -0
  9. package/dist/public/_nuxt/BP8IEXpL.js +1 -0
  10. package/dist/public/_nuxt/{DCPELPdh.js → BQIt7f6-2.js} +1 -1
  11. package/dist/public/_nuxt/BTfiKBAm.js +1 -0
  12. package/dist/public/_nuxt/BTkQJesx.js +1 -0
  13. package/dist/public/_nuxt/BWeJkag7.js +1 -0
  14. package/dist/public/_nuxt/BYiuS205.js +4 -0
  15. package/dist/public/_nuxt/{COiP6LWy.js → BdFYEjeH.js} +1 -1
  16. package/dist/public/_nuxt/BdMtzkAy2.js +1 -0
  17. package/dist/public/_nuxt/{CnkQlf-T.js → BqiFImA_.js} +1 -1
  18. package/dist/public/_nuxt/{D-KdwVBL.js → C5iGLYf8.js} +1 -1
  19. package/dist/public/_nuxt/CBfhMqaX.js +1 -0
  20. package/dist/public/_nuxt/CHmEnixh2.js +1 -0
  21. package/dist/public/_nuxt/CJdYjM__.js +1 -0
  22. package/dist/public/_nuxt/CK6Xn-O82.js +1 -0
  23. package/dist/public/_nuxt/{BhOKQpS-.js → CKlr0Tan.js} +1 -1
  24. package/dist/public/_nuxt/CUBdwZVs.js +3 -0
  25. package/dist/public/_nuxt/CWusIlaG.js +1 -0
  26. package/dist/public/_nuxt/CavyT85L2.js +1 -0
  27. package/dist/public/_nuxt/CbQbsbZd.js +1 -0
  28. package/dist/public/_nuxt/CcXFxXMQ.js +2 -0
  29. package/dist/public/_nuxt/CgIVM_ZA.js +1 -0
  30. package/dist/public/_nuxt/{BQl8ArzK.js → CvnFxGBE.js} +1 -1
  31. package/dist/public/_nuxt/CxYeQaBW.js +1 -0
  32. package/dist/public/_nuxt/Cz_QngRP.js +1 -0
  33. package/dist/public/_nuxt/{D_zbH50i.js → D00v5GDJ.js} +1 -1
  34. package/dist/public/_nuxt/D8ugdtv-.js +1 -0
  35. package/dist/public/_nuxt/DEiLiWhM2.js +1 -0
  36. package/dist/public/_nuxt/DKJ20h2B.js +12 -0
  37. package/dist/public/_nuxt/{DeejVvnS.js → DU7iNs37.js} +1 -1
  38. package/dist/public/_nuxt/{XfS7e3PM.js → ENNcF9U5.js} +1 -1
  39. package/dist/public/_nuxt/{3TymDptH.js → P_nXTQEe.js} +1 -1
  40. package/dist/public/_nuxt/{erfZtSN7.js → bqLEejUC.js} +1 -1
  41. package/dist/public/_nuxt/builds/latest.json +1 -1
  42. package/dist/public/_nuxt/builds/meta/6ec89d4d-a88a-4396-9292-3f2655baa827.json +1 -0
  43. package/dist/public/_nuxt/{entry.MyI9ZDYQ.css → entry.DguO3VpB.css} +1 -1
  44. package/dist/public/_nuxt/error-404.D0uDCatO.css +1 -0
  45. package/dist/public/_nuxt/error-500.DSBLz6Ry.css +1 -0
  46. package/dist/public/_nuxt/qpeZMqnF.js +1 -0
  47. package/dist/public/_nuxt/{D2AP-caS.js → x1vnwfQM.js} +1 -1
  48. package/dist/public/_nuxt/zt8ARaaw.js +1 -0
  49. package/dist/public/index.html +1 -1
  50. package/package.json +11 -11
  51. package/dist/public/_nuxt/-w-An_zz.js +0 -1
  52. package/dist/public/_nuxt/8kHoufi2.js +0 -1
  53. package/dist/public/_nuxt/A14j6IXQ.js +0 -12
  54. package/dist/public/_nuxt/B2NMBmj_.js +0 -1
  55. package/dist/public/_nuxt/BE1TLHgg.js +0 -1
  56. package/dist/public/_nuxt/BSjCyhkj2.js +0 -1
  57. package/dist/public/_nuxt/BYXvfkhc.js +0 -1
  58. package/dist/public/_nuxt/Bc5RWlzj.js +0 -1
  59. package/dist/public/_nuxt/BtpeuWVj2.js +0 -1
  60. package/dist/public/_nuxt/C--RKQDq.js +0 -3
  61. package/dist/public/_nuxt/C8iXMxN52.js +0 -1
  62. package/dist/public/_nuxt/CA0N7And.js +0 -1
  63. package/dist/public/_nuxt/CAonW3eZ.js +0 -1
  64. package/dist/public/_nuxt/CFOnv7GG2.js +0 -1
  65. package/dist/public/_nuxt/CPRbmyEw.js +0 -2
  66. package/dist/public/_nuxt/CXhLP-Vi2.js +0 -1
  67. package/dist/public/_nuxt/Cdb7S98v.js +0 -1
  68. package/dist/public/_nuxt/DCcvbzkD.js +0 -1
  69. package/dist/public/_nuxt/DGOkTiBT.js +0 -1
  70. package/dist/public/_nuxt/D_gteVIt.js +0 -1
  71. package/dist/public/_nuxt/Dg9zMuGl2.js +0 -1
  72. package/dist/public/_nuxt/Dlysmnsb.js +0 -1
  73. package/dist/public/_nuxt/DpW0qpWn.js +0 -4
  74. package/dist/public/_nuxt/DvZ2T9qR.js +0 -1
  75. package/dist/public/_nuxt/builds/meta/69c2ed4b-4f34-4221-8292-fc8e40a986a8.json +0 -1
  76. package/dist/public/_nuxt/error-404.DkiWPM7Q.css +0 -1
  77. package/dist/public/_nuxt/error-500.Wfu13SYC.css +0 -1
  78. package/dist/public/_nuxt/jJY8e3xp.js +0 -1
  79. /package/dist/public/_nuxt/{qIAw3Eg02.js → D1iwru-F2.js} +0 -0
@@ -1 +1 @@
1
- import{i as e,r as t}from"./DpW0qpWn.js";import{A as n,C as r,M as i,Ot as a,S as o,Wt as s,Z as c,b as l,ct as u,h as d,k as f,lt as p,q as m,qt as h,tt as g,w as _,x as v,xt as y,z as b}from"./C--RKQDq.js";import{t as x}from"./jJY8e3xp.js";import{t as S}from"./8kHoufi2.js";import{r as C,t as w}from"./D-KdwVBL.js";import{t as T}from"./D_gteVIt.js";import{t as E}from"./BhOKQpS-.js";var D={flex:`~ col gap-2`},O={flex:`~ gap-1 items-center`,"font-mono":``,op50:``,"text-sm":``},k={"font-mono":``,"font-sm":``},A={key:0,flex:`~ gap-1 items-center`},j={key:0,op50:``,"text-xs":``,border:`~ base rounded-md`,px1:``,"font-mono":``},M=Object.assign(i({__name:`SessionSelector`,props:{sessionMode:{},sessions:{},selectedSessionIds:{},selectedSessions:{}},emits:[`select`],setup(e,{emit:t}){let i=e,s=t;function u(e){return E(e.meta.inputs[0]?.filename??``,e.meta.cwd).path}let y=l(()=>{let e=i.selectedSessions?.[0];return e?u(e):``});function S(e){return y.value&&y.value!==u(e)}function M(e){i.sessionMode===`compare`&&!S(e)&&s(`select`,e)}return(t,i)=>{let s=w;return m(),_(`div`,D,[(m(!0),_(d,null,c(e.sessions,t=>(m(),_(`div`,{key:t.id,flex:`~ row gap-2`,relative:``},[(m(),o(g(e.sessionMode===`list`?a(x):`button`),b({to:`/session/${t.id}`},{ref_for:!0},e.sessionMode===`list`?{}:{type:`button`},{"aria-label":`Session ${t.id}`,border:`~ rounded-md`,class:e.sessionMode===`list`?[`hover:bg-active`,`border-base`]:[e.selectedSessionIds.includes(t.id)?`border-active`:`border-base`,S(t)||e.selectedSessions.length===2&&!e.selectedSessionIds.includes(t.id)?`op50`:`hover:bg-active`],"appearance-none":``,"bg-transparent":``,"color-base":``,"text-left":``,flex:`~ col gap-1`,px4:``,py3:``,"w-full":``,onClick:e=>M(t)}),{default:p(()=>[v(`div`,O,[i[0]||=v(`div`,{"i-ph-hash-duotone":``},null,-1),f(` `+h(t.id),1)]),v(`div`,k,h(t.meta.cwd),1),t.meta.inputs[0]?(m(),_(`div`,A,[n(s,{id:t.meta.inputs[0].filename,cwd:t.meta.cwd},null,8,[`id`,`cwd`]),n(C,{text:t.meta.inputs[0].name||`entry`},null,8,[`text`]),t.meta.inputs.length>1?(m(),_(`span`,j,` +`+h(t.meta.inputs.length-1),1)):r(``,!0)])):r(``,!0),n(T,{timestamp:t.timestamp,pt2:``,"text-sm":``,op50:``},null,8,[`timestamp`])]),_:2},1040,[`to`,`aria-label`,`class`,`onClick`]))]))),128))])}}}),{__name:`PanelSessionSelector`}),N={p4:``,flex:`~ col gap-4`,"items-center":``,"justify-center":``,relative:``},P={key:0,op50:``},F={key:1,op50:``},I={relative:``,flex:`~ col gap3 items-center`},L={key:2,fixed:``,"top-5":``,"right-5":``,flex:`~ col gap2`},R={flex:`~ row justify-around`,w20:``,h8:``,border:`~ base rounded-8`,"of-hidden":``},z=[`title`,`onClick`],B={key:3,fixed:``,"bottom-5":``,"right-5":``,border:`~ base rounded-2`,w100:``,"max-lg:w85":``,"bg-glass":``,"z-panel-content":``},V={flex:`~ justify-center`,p2:``},H={key:1,op80:``,"text-sm":``},U=i({__name:`index`,async setup(i){let g,b,C=y(`list`),w=[{label:`Session List`,icon:`i-ph-list-bullets-duotone`,value:`list`},{label:`Session Compare`,icon:`i-ph-git-diff-duotone`,value:`compare`}],T=y([]),E=l(()=>T.value.map(e=>e.id).sort()),D=l(()=>T.value.toSorted((e,t)=>e.timestamp-t.timestamp).map((e,t)=>({...e,createdAt:new Date(e.timestamp),title:t===0?`Session A`:`Session B`}))),O=t(),k=([g,b]=u(()=>O.value.call(`vite:rolldown:list-sessions`)),g=await g,b(),g);function A(e){E.value.includes(e.id)?T.value=T.value.filter(t=>t.id!==e.id):T.value=[...T.value,e]}return(t,i)=>{let l=e,u=M,g=S,y=x;return m(),_(`div`,N,[n(l),a(k).length?(m(),_(`p`,P,h(C.value===`list`?`Select a build session to get started:`:`Select 2 build sessions to compare:`),1)):(m(),_(`p`,F,` No sessions yet, run a build to get started. `)),v(`div`,I,[n(u,{"session-mode":C.value,sessions:a(k),"selected-session-ids":E.value,"selected-sessions":T.value,onSelect:A},null,8,[`session-mode`,`sessions`,`selected-session-ids`,`selected-sessions`])]),a(k).length?(m(),_(`div`,L,[v(`div`,R,[(m(),_(d,null,c(w,e=>v(`button`,{key:e.value,title:e.label,"flex-1":``,op50:``,flex:`~ items-center justify-center`,class:s({"bg-active text-base op100!":C.value===e.value}),hover:`bg-active text-base op100!`,onClick:t=>C.value=e.value},[v(`span`,{class:s([e.icon,`text-sm`])},null,2)],10,z)),64))])])):r(``,!0),T.value.length>0&&C.value===`compare`?(m(),_(`div`,B,[n(g,{sessions:D.value,class:`flex-col gap0 [&>div]:border-none! [&>first-child]:border-b!`},null,8,[`sessions`]),v(`div`,V,[T.value.length===2?(m(),o(y,{key:0,tag:`button`,to:`/compare/${E.value.join(`,`)}`,"btn-action":``,"rounded-8":``,"text-3":``,flex:`~ justify-center`,w30:``,h8:``},{default:p(()=>[...i[0]||=[f(` Compare `,-1)]]),_:1},8,[`to`])):(m(),_(`div`,H,` Select one more session to compare. `))])])):r(``,!0)])}}});export{U as default};
1
+ import{i as e,r as t}from"./BYiuS205.js";import{A as n,C as r,Gt as i,Jt as a,M as o,S as s,Z as c,b as l,ct as u,h as d,k as f,kt as p,lt as m,q as h,tt as g,w as _,x as v,xt as y,z as b}from"./CUBdwZVs.js";import{t as x}from"./CJdYjM__.js";import{t as S}from"./BP8IEXpL.js";import{r as C,t as w}from"./C5iGLYf8.js";import{t as T}from"./BTkQJesx.js";import{t as E}from"./CKlr0Tan.js";var D={flex:`~ col gap-2`},O={flex:`~ gap-1 items-center`,"font-mono":``,op50:``,"text-sm":``},k={"font-mono":``,"font-sm":``},A={key:0,flex:`~ gap-1 items-center`},j={key:0,op50:``,"text-xs":``,border:`~ base rounded-md`,px1:``,"font-mono":``},M=Object.assign(o({__name:`SessionSelector`,props:{sessionMode:{},sessions:{},selectedSessionIds:{},selectedSessions:{}},emits:[`select`],setup(e,{emit:t}){let i=e,o=t;function u(e){return E(e.meta.inputs[0]?.filename??``,e.meta.cwd).path}let y=l(()=>{let e=i.selectedSessions?.[0];return e?u(e):``});function S(e){return y.value&&y.value!==u(e)}function M(e){i.sessionMode===`compare`&&!S(e)&&o(`select`,e)}return(t,i)=>{let o=w;return h(),_(`div`,D,[(h(!0),_(d,null,c(e.sessions,t=>(h(),_(`div`,{key:t.id,flex:`~ row gap-2`,relative:``},[(h(),s(g(e.sessionMode===`list`?p(x):`button`),b({to:`/session/${t.id}`},{ref_for:!0},e.sessionMode===`list`?{}:{type:`button`},{"aria-label":`Session ${t.id}`,border:`~ rounded-md`,class:e.sessionMode===`list`?[`hover:bg-active`,`border-base`]:[e.selectedSessionIds.includes(t.id)?`border-active`:`border-base`,S(t)||e.selectedSessions.length===2&&!e.selectedSessionIds.includes(t.id)?`op50`:`hover:bg-active`],"appearance-none":``,"bg-transparent":``,"color-base":``,"text-left":``,flex:`~ col gap-1`,px4:``,py3:``,"w-full":``,onClick:e=>M(t)}),{default:m(()=>[v(`div`,O,[i[0]||=v(`div`,{"i-ph-hash-duotone":``},null,-1),f(` `+a(t.id),1)]),v(`div`,k,a(t.meta.cwd),1),t.meta.inputs[0]?(h(),_(`div`,A,[n(o,{id:t.meta.inputs[0].filename,cwd:t.meta.cwd},null,8,[`id`,`cwd`]),n(C,{text:t.meta.inputs[0].name||`entry`},null,8,[`text`]),t.meta.inputs.length>1?(h(),_(`span`,j,` +`+a(t.meta.inputs.length-1),1)):r(``,!0)])):r(``,!0),n(T,{timestamp:t.timestamp,pt2:``,"text-sm":``,op50:``},null,8,[`timestamp`])]),_:2},1040,[`to`,`aria-label`,`class`,`onClick`]))]))),128))])}}}),{__name:`PanelSessionSelector`}),N={p4:``,flex:`~ col gap-4`,"items-center":``,"justify-center":``,relative:``},P={key:0,op50:``},F={key:1,op50:``},I={relative:``,flex:`~ col gap3 items-center`},L={key:2,fixed:``,"top-5":``,"right-5":``,flex:`~ col gap2`},R={flex:`~ row justify-around`,w20:``,h8:``,border:`~ base rounded-8`,"of-hidden":``},z=[`title`,`onClick`],B={key:3,fixed:``,"bottom-5":``,"right-5":``,border:`~ base rounded-2`,w100:``,"max-lg:w85":``,"bg-glass":``,"z-panel-content":``},V={flex:`~ justify-center`,p2:``},H={key:1,op80:``,"text-sm":``},U=o({__name:`index`,async setup(o){let g,b,C=y(`list`),w=[{label:`Session List`,icon:`i-ph-list-bullets-duotone`,value:`list`},{label:`Session Compare`,icon:`i-ph-git-diff-duotone`,value:`compare`}],T=y([]),E=l(()=>T.value.map(e=>e.id).sort()),D=l(()=>T.value.toSorted((e,t)=>e.timestamp-t.timestamp).map((e,t)=>({...e,createdAt:new Date(e.timestamp),title:t===0?`Session A`:`Session B`}))),O=t(),k=([g,b]=u(()=>O.value.call(`vite:rolldown:list-sessions`)),g=await g,b(),g);function A(e){E.value.includes(e.id)?T.value=T.value.filter(t=>t.id!==e.id):T.value=[...T.value,e]}return(t,o)=>{let l=e,u=M,g=S,y=x;return h(),_(`div`,N,[n(l),p(k).length?(h(),_(`p`,P,a(C.value===`list`?`Select a build session to get started:`:`Select 2 build sessions to compare:`),1)):(h(),_(`p`,F,` No sessions yet, run a build to get started. `)),v(`div`,I,[n(u,{"session-mode":C.value,sessions:p(k),"selected-session-ids":E.value,"selected-sessions":T.value,onSelect:A},null,8,[`session-mode`,`sessions`,`selected-session-ids`,`selected-sessions`])]),p(k).length?(h(),_(`div`,L,[v(`div`,R,[(h(),_(d,null,c(w,e=>v(`button`,{key:e.value,title:e.label,"flex-1":``,op50:``,flex:`~ items-center justify-center`,class:i({"bg-active text-base op100!":C.value===e.value}),hover:`bg-active text-base op100!`,onClick:t=>C.value=e.value},[v(`span`,{class:i([e.icon,`text-sm`])},null,2)],10,z)),64))])])):r(``,!0),T.value.length>0&&C.value===`compare`?(h(),_(`div`,B,[n(g,{sessions:D.value,class:`flex-col gap0 [&>div]:border-none! [&>first-child]:border-b!`},null,8,[`sessions`]),v(`div`,V,[T.value.length===2?(h(),s(y,{key:0,tag:`button`,to:`/compare/${E.value.join(`,`)}`,"btn-action":``,"rounded-8":``,"text-3":``,flex:`~ justify-center`,w30:``,h8:``},{default:m(()=>[...o[0]||=[f(` Compare `,-1)]]),_:1},8,[`to`])):(h(),_(`div`,H,` Select one more session to compare. `))])])):r(``,!0)])}}});export{U as default};
@@ -1 +1 @@
1
- import{F as e,M as t,Wt as n,b as r,q as i,w as a}from"./C--RKQDq.js";import{s as o,t as s}from"./CnkQlf-T.js";var c=[`title`],l=Object.assign(t({__name:`FileIcon`,props:{filename:{}},setup(e){let t=e,s=r(()=>o(t.filename));return(e,t)=>(i(),a(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:n([s.value.icon])},null,10,c))}}),{__name:`DisplayFileIcon`}),u=t({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(t){return()=>{let n=t.path.split(/([?/&:=])/g),r=`path`,i=n.map(()=>[]),a=n.map(()=>[]),o=n.map(t=>e(`span`,{class:``},t)),c=new Set;return n.forEach((e,l)=>{if(e===`?`&&(r=`query`),r===`path`){if(/^\.+$/.test(e)||e===`/`?i[l]?.push(`op50`):(e===`node_modules`||e===`dist`||e===`lib`||/^\.\w/.test(e))&&i[l]?.push(`op60`),e===`node_modules`&&t.minimal)for(let e=0;e<l+2;e++)c.add(e);if(e===`.pnpm`&&(o[l]&&(o[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),o[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),e===`:`&&(o[l-1]&&a[l-1]?.push(`color: ${s(n[l-1])}`),i[l]?.push(`op50`)),n[l-2]===`node_modules`&&!e.startsWith(`.`)){let t=`color: ${s(n[l])}`;a[l]?.push(t),e.startsWith(`@`)&&(a[l+1]?.push(t),a[l+2]?.push(t))}}r===`query`&&(e===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):e===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),e===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):n[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),o.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{o.splice(e,1)}),o}}});export{l as n,u as t};
1
+ import{F as e,Gt as t,M as n,b as r,q as i,w as a}from"./CUBdwZVs.js";import{s as o,t as s}from"./BqiFImA_.js";var c=[`title`],l=Object.assign(n({__name:`FileIcon`,props:{filename:{}},setup(e){let n=e,s=r(()=>o(n.filename));return(e,n)=>(i(),a(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:t([s.value.icon])},null,10,c))}}),{__name:`DisplayFileIcon`}),u=n({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(t){return()=>{let n=t.path.split(/([?/&:=])/g),r=`path`,i=n.map(()=>[]),a=n.map(()=>[]),o=n.map(t=>e(`span`,{class:``},t)),c=new Set;return n.forEach((e,l)=>{if(e===`?`&&(r=`query`),r===`path`){if(/^\.+$/.test(e)||e===`/`?i[l]?.push(`op50`):(e===`node_modules`||e===`dist`||e===`lib`||/^\.\w/.test(e))&&i[l]?.push(`op60`),e===`node_modules`&&t.minimal)for(let e=0;e<l+2;e++)c.add(e);if(e===`.pnpm`&&(o[l]&&(o[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),o[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),e===`:`&&(o[l-1]&&a[l-1]?.push(`color: ${s(n[l-1])}`),i[l]?.push(`op50`)),n[l-2]===`node_modules`&&!e.startsWith(`.`)){let t=`color: ${s(n[l])}`;a[l]?.push(t),e.startsWith(`@`)&&(a[l+1]?.push(t),a[l+2]?.push(t))}}r===`query`&&(e===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):e===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),e===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):n[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),o.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{o.splice(e,1)}),o}}});export{l as n,u as t};
@@ -1 +1 @@
1
- import{r as e}from"./DpW0qpWn.js";import{A as t,C as n,G as r,M as i,S as a,Wt as o,Z as s,b as c,h as l,k as u,lt as d,q as f,qt as p,w as m,x as h,xt as g,z as _}from"./C--RKQDq.js";import{C as v}from"./B2NMBmj_.js";import{n as y}from"#entry";import{t as b}from"./jJY8e3xp.js";import{t as x}from"./8kHoufi2.js";import{t as S}from"./CqfNwh25.js";var C=Object.assign(i({__name:`ComparisonMetric`,props:{current:{},previous:{}},setup(e){let t=e,n=c(()=>t.previous===t.current),r=c(()=>n.value?`0`:t.previous===0?`100.00`:Math.abs((t.current-t.previous)/t.previous*100).toFixed(2)),i=c(()=>n.value?``:t.current>t.previous?`+`:`-`),a=c(()=>n.value?`text-gray-500`:t.current>t.previous?`text-green-500`:`text-red-500`);return(e,t)=>(f(),m(`span`,{"text-4":``,"mt-1":``,"font-mono":``,class:o(a.value)},p(i.value)+p(r.value)+`% `,3))}}),{__name:`DisplayComparisonMetric`}),w=[`title`],T={flex:`~ gap-2`,"items-center":``},E={key:0},D={"font-semibold":``,"text-5":``,"font-mono":``},O={"font-semibold":``,"text-4":``,"font-mono":``},k={key:1},A={"font-semibold":``,"text-5":``,"font-mono":``},j=Object.assign(i({__name:`MetricCard`,props:{name:{},description:{},icon:{},current:{},previous:{},format:{}},setup(e){let t=e,r=c(()=>t.format===`bytes`?S(t.current):t.current);return(t,i)=>{let s=C;return f(),m(l,null,[h(`div`,{"font-500":``,op50:``,"text-4":``,flex:`~ items-center gap-2`,title:e.description},[h(`div`,{class:o([e.icon,`text-xl`])},null,2),u(` `+p(e.name),1)],8,w),h(`div`,T,[e.format===`bytes`?(f(),m(`div`,E,[h(`span`,D,p(r.value[0]),1),h(`span`,O,p(r.value[1]),1)])):(f(),m(`div`,k,[h(`span`,A,p(r.value),1)])),e.previous>0&&e.current>0?(f(),a(s,{key:2,current:e.current,previous:e.previous},null,8,[`current`,`previous`])):n(``,!0)])],64)}}}),{__name:`CompareMetricCard`}),M={key:1,"h-screen":``,"w-screen":``,"max-w-screen":``,"max-h-screen":``,"of-hidden":``,p6:``,flex:`~ col gap-2`},N={flex:`~ gap-2`},P={flex:`~ col`,border:`~ base rounded-lg`,p3:``,mt10:``},F={grid:`~ cols-6 gap5`,"w-full":``,pt3:``},I=i({__name:`index`,setup(n){let i=g(!1),p=v().params,S=e(),C=g([]),w=g([]);async function T(e){let t=await S.value.call(`vite:rolldown:get-packages`,{session:e}),n=t.filter(e=>e.duplicated);return{total:t.length,duplicated:n.length}}r(async()=>{i.value=!0;let e=p.sessions.split(`,`),[t,...n]=await Promise.all([S.value.call(`vite:rolldown:get-session-compare-summary`,{sessions:e}),...e.map(e=>T(e))]);C.value=t,w.value=n,i.value=!1});let E=c(()=>C.value.map((e,t)=>({...e,createdAt:new Date(e.meta?.timestamp??0),title:t===0?`Session A`:`Session B`}))),D=c(()=>{let[e,t]=E.value;return[{name:`Bundle Size`,description:`Total file size of the assets`,icon:`i-ph-package-duotone`,current:t?.bundle_size??0,previous:e?.bundle_size??0,format:`bytes`},{name:`Initial JS`,description:`Total file size of the initial JS chunks`,icon:`i-ph-file-js-duotone`,current:t?.initial_js??0,previous:e?.initial_js??0,format:`bytes`},{name:`Modules`,description:`Total number of modules`,icon:`i-ph-graph-duotone`,current:t?.modules??0,previous:e?.modules??0},{name:`Packages`,description:`Total number of packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.total??0,previous:w.value?.[0]?.total??0},{name:`Duplicated Packages`,description:`Total number of duplicated packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.duplicated??0,previous:w.value?.[0]?.duplicated??0},{name:`Plugins`,description:`Total number of plugins`,icon:`i-ph-plugs-duotone`,current:t?.meta?.plugins.length??0,previous:e?.meta?.plugins.length??0},{name:`Chunks`,description:`Total number of chunks`,icon:`i-ph-shapes-duotone`,current:t?.chunks??0,previous:e?.chunks??0},{name:`Assets`,description:`Total number of assets`,icon:`i-ph-package-duotone`,current:t?.assets??0,previous:e?.assets??0}]});return(e,n)=>{let r=y,c=b,p=x,g=j;return i.value?(f(),a(r,{key:0})):(f(),m(`div`,M,[h(`div`,N,[t(c,{"btn-action":``,to:{path:`/`}},{default:d(()=>[...n[0]||=[h(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),u(` Re-select Session `,-1)]]),_:1})]),h(`div`,P,[n[1]||=h(`div`,{py3:``,"indent-2":``},` Compare Overview `,-1),t(p,{sessions:E.value},null,8,[`sessions`]),h(`div`,F,[(f(!0),m(l,null,s(D.value,(e,n)=>(f(),m(`div`,{key:e.name,class:o(n<2?`col-span-3`:`col-span-2`),border:`~ base rounded`,p4:``,flex:`~ col`,gap2:``},[t(g,_({ref_for:!0},e),null,16)],2))),128))])])]))}}});export{I as default};
1
+ import{r as e}from"./BYiuS205.js";import{A as t,C as n,G as r,Gt as i,Jt as a,M as o,S as s,Z as c,b as l,h as u,k as d,lt as f,q as p,w as m,x as h,xt as g,z as _}from"./CUBdwZVs.js";import{C as v}from"./BTfiKBAm.js";import{n as y}from"#entry";import{t as b}from"./CJdYjM__.js";import{t as x}from"./BP8IEXpL.js";import{t as S}from"./CqfNwh25.js";var C=Object.assign(o({__name:`ComparisonMetric`,props:{current:{},previous:{}},setup(e){let t=e,n=l(()=>t.previous===t.current),r=l(()=>n.value?`0`:t.previous===0?`100.00`:Math.abs((t.current-t.previous)/t.previous*100).toFixed(2)),o=l(()=>n.value?``:t.current>t.previous?`+`:`-`),s=l(()=>n.value?`text-gray-500`:t.current>t.previous?`text-green-500`:`text-red-500`);return(e,t)=>(p(),m(`span`,{"text-4":``,"mt-1":``,"font-mono":``,class:i(s.value)},a(o.value)+a(r.value)+`% `,3))}}),{__name:`DisplayComparisonMetric`}),w=[`title`],T={flex:`~ gap-2`,"items-center":``},E={key:0},D={"font-semibold":``,"text-5":``,"font-mono":``},O={"font-semibold":``,"text-4":``,"font-mono":``},k={key:1},A={"font-semibold":``,"text-5":``,"font-mono":``},j=Object.assign(o({__name:`MetricCard`,props:{name:{},description:{},icon:{},current:{},previous:{},format:{}},setup(e){let t=e,r=l(()=>t.format===`bytes`?S(t.current):t.current);return(t,o)=>{let c=C;return p(),m(u,null,[h(`div`,{"font-500":``,op50:``,"text-4":``,flex:`~ items-center gap-2`,title:e.description},[h(`div`,{class:i([e.icon,`text-xl`])},null,2),d(` `+a(e.name),1)],8,w),h(`div`,T,[e.format===`bytes`?(p(),m(`div`,E,[h(`span`,D,a(r.value[0]),1),h(`span`,O,a(r.value[1]),1)])):(p(),m(`div`,k,[h(`span`,A,a(r.value),1)])),e.previous>0&&e.current>0?(p(),s(c,{key:2,current:e.current,previous:e.previous},null,8,[`current`,`previous`])):n(``,!0)])],64)}}}),{__name:`CompareMetricCard`}),M={key:1,"h-screen":``,"w-screen":``,"max-w-screen":``,"max-h-screen":``,"of-hidden":``,p6:``,flex:`~ col gap-2`},N={flex:`~ gap-2`},P={flex:`~ col`,border:`~ base rounded-lg`,p3:``,mt10:``},F={grid:`~ cols-6 gap5`,"w-full":``,pt3:``},I=o({__name:`index`,setup(n){let a=g(!1),o=v().params,S=e(),C=g([]),w=g([]);async function T(e){let t=await S.value.call(`vite:rolldown:get-packages`,{session:e}),n=t.filter(e=>e.duplicated);return{total:t.length,duplicated:n.length}}r(async()=>{a.value=!0;let e=o.sessions.split(`,`),[t,...n]=await Promise.all([S.value.call(`vite:rolldown:get-session-compare-summary`,{sessions:e}),...e.map(e=>T(e))]);C.value=t,w.value=n,a.value=!1});let E=l(()=>C.value.map((e,t)=>({...e,createdAt:new Date(e.meta?.timestamp??0),title:t===0?`Session A`:`Session B`}))),D=l(()=>{let[e,t]=E.value;return[{name:`Bundle Size`,description:`Total file size of the assets`,icon:`i-ph-package-duotone`,current:t?.bundle_size??0,previous:e?.bundle_size??0,format:`bytes`},{name:`Initial JS`,description:`Total file size of the initial JS chunks`,icon:`i-ph-file-js-duotone`,current:t?.initial_js??0,previous:e?.initial_js??0,format:`bytes`},{name:`Modules`,description:`Total number of modules`,icon:`i-ph-graph-duotone`,current:t?.modules??0,previous:e?.modules??0},{name:`Packages`,description:`Total number of packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.total??0,previous:w.value?.[0]?.total??0},{name:`Duplicated Packages`,description:`Total number of duplicated packages`,icon:`i-ph-package-duotone`,current:w.value?.[1]?.duplicated??0,previous:w.value?.[0]?.duplicated??0},{name:`Plugins`,description:`Total number of plugins`,icon:`i-ph-plugs-duotone`,current:t?.meta?.plugins.length??0,previous:e?.meta?.plugins.length??0},{name:`Chunks`,description:`Total number of chunks`,icon:`i-ph-shapes-duotone`,current:t?.chunks??0,previous:e?.chunks??0},{name:`Assets`,description:`Total number of assets`,icon:`i-ph-package-duotone`,current:t?.assets??0,previous:e?.assets??0}]});return(e,n)=>{let r=y,o=b,l=x,g=j;return a.value?(p(),s(r,{key:0})):(p(),m(`div`,M,[h(`div`,N,[t(o,{"btn-action":``,to:{path:`/`}},{default:f(()=>[...n[0]||=[h(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),d(` Re-select Session `,-1)]]),_:1})]),h(`div`,P,[n[1]||=h(`div`,{py3:``,"indent-2":``},` Compare Overview `,-1),t(l,{sessions:E.value},null,8,[`sessions`]),h(`div`,F,[(p(!0),m(u,null,c(D.value,(e,n)=>(p(),m(`div`,{key:e.name,class:i(n<2?`col-span-3`:`col-span-2`),border:`~ base rounded`,p4:``,flex:`~ col`,gap2:``},[t(g,_({ref_for:!0},e),null,16)],2))),128))])])]))}}});export{I as default};
@@ -1 +1 @@
1
- import{F as e,M as t,S as n,q as r,tt as i}from"./C--RKQDq.js";import{t as a}from"./CnkQlf-T.js";var o=Object.assign(t({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(t){let o=t,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let t=o.compact?c:s;for(let n of t)if(o.name.startsWith(n))return o.compact?e(`span`,o.name.slice(n.length)):e(`span`,[e(`span`,{class:`op50`},n),e(`span`,o.name.slice(n.length))]);let n=o.name.split(`:`);return n.length>1?e(`span`,[e(`span`,{style:{color:a(n[0])}},`${n[0]}:`),e(`span`,n.slice(1).join(`:`))]):e(`span`,o.name)}return(e,t)=>(r(),n(i(l)))}}),{__name:`DisplayPluginName`});export{o as t};
1
+ import{F as e,M as t,S as n,q as r,tt as i}from"./CUBdwZVs.js";import{t as a}from"./BqiFImA_.js";var o=Object.assign(t({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(t){let o=t,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let t=o.compact?c:s;for(let n of t)if(o.name.startsWith(n))return o.compact?e(`span`,o.name.slice(n.length)):e(`span`,[e(`span`,{class:`op50`},n),e(`span`,o.name.slice(n.length))]);let n=o.name.split(`:`);return n.length>1?e(`span`,[e(`span`,{style:{color:a(n[0])}},`${n[0]}:`),e(`span`,n.slice(1).join(`:`))]):e(`span`,o.name)}return(e,t)=>(r(),n(i(l)))}}),{__name:`DisplayPluginName`});export{o as t};
@@ -1 +1 @@
1
- {"id":"69c2ed4b-4f34-4221-8292-fc8e40a986a8","timestamp":1777733880830}
1
+ {"id":"6ec89d4d-a88a-4396-9292-3f2655baa827","timestamp":1778171239937}
@@ -0,0 +1 @@
1
+ {"id":"6ec89d4d-a88a-4396-9292-3f2655baa827","timestamp":1778171239937,"prerendered":[]}