@vitejs/devtools-rolldown 0.1.23 → 0.2.0

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 (83) hide show
  1. package/dist/index.mjs +1656 -216
  2. package/dist/nitro.json +2 -2
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/0O2Pj8hl.js +1 -0
  6. package/dist/public/_nuxt/5bJuVons.js +1 -0
  7. package/dist/public/_nuxt/{B6PLDwAm.js → BCw50qmU.js} +4 -4
  8. package/dist/public/_nuxt/BFhxncQ2.js +1 -0
  9. package/dist/public/_nuxt/BGZZhyQu.js +1 -0
  10. package/dist/public/_nuxt/{dedBpiqn.js → BJmyRiUp.js} +1 -1
  11. package/dist/public/_nuxt/B_J3ZfKi.js +1 -0
  12. package/dist/public/_nuxt/Ba09nynh.js +1 -0
  13. package/dist/public/_nuxt/{CtfgqrR6.js → BbKimAk2.js} +1 -1
  14. package/dist/public/_nuxt/Bq4MVFqu.js +1 -0
  15. package/dist/public/_nuxt/BufyvRUO.js +1 -0
  16. package/dist/public/_nuxt/CE_-BS6_.js +1 -0
  17. package/dist/public/_nuxt/{_z5g9W2Q.js → CJF5NhpB.js} +1 -1
  18. package/dist/public/_nuxt/CWXuMikD.js +1 -0
  19. package/dist/public/_nuxt/Cj4ehwvT.js +1 -0
  20. package/dist/public/_nuxt/D3WsuaG8.js +1 -0
  21. package/dist/public/_nuxt/DAw3vtMH.js +1 -0
  22. package/dist/public/_nuxt/DHF6DbDV.js +1 -0
  23. package/dist/public/_nuxt/DNBEBkdT.js +1 -0
  24. package/dist/public/_nuxt/DPbQuX9J.js +7 -0
  25. package/dist/public/_nuxt/{DataVirtualList.B_Uggh0w.css → DataVirtualList.CX8PXv9n.css} +1 -1
  26. package/dist/public/_nuxt/Dc_O_zZb.js +1 -0
  27. package/dist/public/_nuxt/DjrbEfG8.js +1 -0
  28. package/dist/public/_nuxt/DlfUjYwO.js +1 -0
  29. package/dist/public/_nuxt/DpwellRX.js +1 -0
  30. package/dist/public/_nuxt/DtFq1Eli.js +1 -0
  31. package/dist/public/_nuxt/KGWAKIjl.js +1 -0
  32. package/dist/public/_nuxt/Q0g2p3Tn.js +1 -0
  33. package/dist/public/_nuxt/SDYr5o4O.js +1 -0
  34. package/dist/public/_nuxt/{_session_.Dk6Grde1.css → _session_.QzrJ09_g.css} +1 -1
  35. package/dist/public/_nuxt/builds/latest.json +1 -1
  36. package/dist/public/_nuxt/builds/meta/d4e8dc3d-d7dc-4d8e-aaaf-9c79a90654e5.json +1 -0
  37. package/dist/public/_nuxt/{diff.worker-CvsEE-qa.js → diff.worker-CjOQCDrL.js} +1 -1
  38. package/dist/public/_nuxt/entry.BrGSg7M5.css +1 -0
  39. package/dist/public/_nuxt/error-404.DW67vBSK.css +1 -0
  40. package/dist/public/_nuxt/error-500.pZFkQgH5.css +1 -0
  41. package/dist/public/_nuxt/packages.BSzke_vb.css +1 -0
  42. package/dist/public/_nuxt/qbQBI5vg.js +1 -0
  43. package/dist/public/_nuxt/{LBCmYgDk.js → uN6JDFSt.js} +1 -1
  44. package/dist/public/_nuxt/vpxPj2yJ.js +1 -0
  45. package/dist/public/index.html +1 -1
  46. package/package.json +10 -11
  47. package/dist/public/_nuxt/-nSv7b_c2.js +0 -1
  48. package/dist/public/_nuxt/BGfhRWSX.js +0 -1
  49. package/dist/public/_nuxt/BNZzKgvO.js +0 -7
  50. package/dist/public/_nuxt/BNrUSHd9.js +0 -1
  51. package/dist/public/_nuxt/BRoY9F4B.js +0 -1
  52. package/dist/public/_nuxt/Ba06j5HF.js +0 -1
  53. package/dist/public/_nuxt/BdES0TNB.js +0 -1
  54. package/dist/public/_nuxt/C4TkllWS.js +0 -1
  55. package/dist/public/_nuxt/C9xBafiu.js +0 -1
  56. package/dist/public/_nuxt/CGpzF1Fi.js +0 -1
  57. package/dist/public/_nuxt/CSmrzcuw.js +0 -1
  58. package/dist/public/_nuxt/CZ4Hed_B.js +0 -1
  59. package/dist/public/_nuxt/CiUxnt4q.js +0 -1
  60. package/dist/public/_nuxt/CwkL5c9p.js +0 -1
  61. package/dist/public/_nuxt/D0ELUVmr.js +0 -1
  62. package/dist/public/_nuxt/D2fxAMpL.js +0 -1
  63. package/dist/public/_nuxt/D5Xmlx1F.js +0 -1
  64. package/dist/public/_nuxt/D7E3leYJ.js +0 -1
  65. package/dist/public/_nuxt/DJiAfyJ9.js +0 -1
  66. package/dist/public/_nuxt/DS9O9jUU.js +0 -1
  67. package/dist/public/_nuxt/DYWABjKK.js +0 -1
  68. package/dist/public/_nuxt/DiwqOTKG.js +0 -1
  69. package/dist/public/_nuxt/DuyiIaXF.js +0 -1
  70. package/dist/public/_nuxt/FMlLtEkh.js +0 -1
  71. package/dist/public/_nuxt/I45WLXVn.js +0 -1
  72. package/dist/public/_nuxt/MF_ZggB1.js +0 -1
  73. package/dist/public/_nuxt/a5P2pi4b.js +0 -1
  74. package/dist/public/_nuxt/builds/meta/4b89da51-8485-4b1c-9d33-36610376f0b4.json +0 -1
  75. package/dist/public/_nuxt/entry.CuajcsxN.css +0 -1
  76. package/dist/public/_nuxt/error-404.3xPYxf32.css +0 -1
  77. package/dist/public/_nuxt/error-500.CUtwZWQI.css +0 -1
  78. package/dist/public/_nuxt/rtwgPkwM2.js +0 -1
  79. /package/dist/public/_nuxt/{DWG474Ej.js → B0JGLC34.js} +0 -0
  80. /package/dist/public/_nuxt/{tBStlNYu.js → BDNMzG2s.js} +0 -0
  81. /package/dist/public/_nuxt/{WhNLRjQY.js → BydIxJFY.js} +0 -0
  82. /package/dist/public/_nuxt/{BkPBhH2x.js → D2rOmk5_.js} +0 -0
  83. /package/dist/public/_nuxt/{DYINlKP5.js → TaF09Eka.js} +0 -0
@@ -0,0 +1 @@
1
+ .grid[data-v-a30ff6db]{display:grid}.mb-2[data-v-a30ff6db]{margin-bottom:.5rem}.mb-4[data-v-a30ff6db]{margin-bottom:1rem}.max-w-520px[data-v-a30ff6db]{max-width:520px}.min-h-screen[data-v-a30ff6db]{min-height:100vh}.w-full[data-v-a30ff6db]{width:100%}.flex[data-v-a30ff6db]{display:flex}.place-content-center[data-v-a30ff6db]{place-content:center}.items-center[data-v-a30ff6db]{align-items:center}.justify-center[data-v-a30ff6db]{justify-content:center}.overflow-hidden[data-v-a30ff6db]{overflow:hidden}.bg-white[data-v-a30ff6db]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-a30ff6db]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-a30ff6db]{text-align:center}.text-\[80px\][data-v-a30ff6db]{font-size:80px}.text-2xl[data-v-a30ff6db]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-a30ff6db]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-a30ff6db]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-a30ff6db]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-a30ff6db]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-a30ff6db]{font-weight:500}.font-semibold[data-v-a30ff6db]{font-weight:600}.leading-none[data-v-a30ff6db]{line-height:1}.tracking-wide[data-v-a30ff6db]{letter-spacing:.025em}.font-sans[data-v-a30ff6db]{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-a30ff6db]{--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-a30ff6db]{text-decoration-line:underline}.underline-offset-3[data-v-a30ff6db]{text-underline-offset:3px}.antialiased[data-v-a30ff6db]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-a30ff6db]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-a30ff6db]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-a30ff6db]{font-size:110px}.sm\:text-3xl[data-v-a30ff6db]{font-size:1.875rem;line-height:2.25rem}}
@@ -0,0 +1 @@
1
+ .grid[data-v-94514caf]{display:grid}.mb-2[data-v-94514caf]{margin-bottom:.5rem}.mb-4[data-v-94514caf]{margin-bottom:1rem}.max-w-520px[data-v-94514caf]{max-width:520px}.min-h-screen[data-v-94514caf]{min-height:100vh}.place-content-center[data-v-94514caf]{place-content:center}.overflow-hidden[data-v-94514caf]{overflow:hidden}.bg-white[data-v-94514caf]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-94514caf]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-94514caf]{text-align:center}.text-\[80px\][data-v-94514caf]{font-size:80px}.text-2xl[data-v-94514caf]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-94514caf]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-94514caf]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-94514caf]{font-weight:600}.leading-none[data-v-94514caf]{line-height:1}.tracking-wide[data-v-94514caf]{letter-spacing:.025em}.font-sans[data-v-94514caf]{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-94514caf]{--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-94514caf]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-94514caf]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-94514caf]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-94514caf]{font-size:110px}.sm\:text-3xl[data-v-94514caf]{font-size:1.875rem;line-height:2.25rem}}
@@ -0,0 +1 @@
1
+ .packages-table[data-v-1b4228ae] .vue-recycle-scroller__slot{position:sticky;top:0;z-index:10}
@@ -0,0 +1 @@
1
+ import{At as e,Bt as t,Dt as n,Kt as r,xt as i}from"#entry";import{t as a}from"./BydIxJFY.js";var o=Object.assign(n({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(n){let o=n,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,n)=>(t(),i(r(l)))}}),{__name:`DisplayPluginName`});export{o as t};
@@ -1 +1 @@
1
- import{u as e}from"./WhNLRjQY.js";import{n as t}from"./CtfgqrR6.js";import{n,t as r}from"./DWG474Ej.js";function i(e){let t=e.match(/.*\/node_modules\/(.*)$/)?.[1];if(t)return t}var a=e((e,a)=>{let o=e.replace(/%2F/g,`/`).replace(/\\/g,`/`);if(n(o)||/^\w+:/.test(o)&&!/^[a-z]:\\/i.test(e))return{moduleName:o,path:o};let s=r(o),c=i(o);if(s&&c)return{moduleName:s,path:c};try{let e=t(a,o);return!e.startsWith(`./`)&&!e.startsWith(`../`)&&(e=`./${e}`),e.startsWith(`./.nuxt/`)&&(e=`#build${e.slice(7)}`),{path:e}}catch{return{path:o}}});export{a as t};
1
+ import{u as e}from"./BydIxJFY.js";import{n as t}from"./BbKimAk2.js";import{n,t as r}from"./B0JGLC34.js";function i(e){let t=e.match(/.*\/node_modules\/(.*)$/)?.[1];if(t)return t}var a=e((e,a)=>{let o=e.replace(/%2F/g,`/`).replace(/\\/g,`/`);if(n(o)||/^\w+:/.test(o)&&!/^[a-z]:\\/i.test(e))return{moduleName:o,path:o};let s=r(o),c=i(o);if(s&&c)return{moduleName:s,path:c};try{let e=t(a,o);return!e.startsWith(`./`)&&!e.startsWith(`../`)&&(e=`./${e}`),e.startsWith(`./.nuxt/`)&&(e=`#build${e.slice(7)}`),{path:e}}catch{return{path:o}}});export{a as t};
@@ -0,0 +1 @@
1
+ import{At as e,Bt as t,Ct as n,Dt as r,hn as i,yt as a}from"#entry";import{s as o,t as s}from"./BydIxJFY.js";var c=[`title`],l=Object.assign(r({__name:`FileIcon`,props:{filename:{}},setup(e){let r=e,s=a(()=>o(r.filename));return(e,r)=>(t(),n(`div`,{"flex-none":``,"icon-catppuccin":``,title:s.value.description||s.value.name,class:i([s.value.icon])},null,10,c))}}),{__name:`DisplayFileIcon`}),u=r({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
- <!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/BNZzKgvO.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/__devtools-rolldown/_nuxt/entry.CuajcsxN.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/BNZzKgvO.js"><script type="module" src="/__devtools-rolldown/_nuxt/BNZzKgvO.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:"4b89da51-8485-4b1c-9d33-36610376f0b4",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1778756276208,false]</script></body></html>
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/DPbQuX9J.js"}}</script><title>Rolldown DevTools</title><link rel="stylesheet" href="/__devtools-rolldown/_nuxt/entry.BrGSg7M5.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__devtools-rolldown/_nuxt/DPbQuX9J.js"><script type="module" src="/__devtools-rolldown/_nuxt/DPbQuX9J.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:"d4e8dc3d-d7dc-4d8e-aaaf-9c79a90654e5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1779355614181,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.23",
4
+ "version": "0.2.0",
5
5
  "description": "DevTools for Rolldown",
6
6
  "author": "VoidZero Inc.",
7
7
  "license": "MIT",
@@ -29,32 +29,30 @@
29
29
  "dependencies": {
30
30
  "@floating-ui/dom": "^1.7.6",
31
31
  "@pnpm/read-project-manifest": "^1001.2.6",
32
- "@rolldown/debug": "^1.0.1",
32
+ "@rolldown/debug": "^1.0.2",
33
33
  "birpc": "^4.0.0",
34
34
  "cac": "^7.0.0",
35
35
  "d3-shape": "^3.2.0",
36
- "devframe": "^0.2.2",
36
+ "devframe": "^0.4.1",
37
37
  "diff": "^9.0.0",
38
38
  "get-port-please": "^3.2.0",
39
39
  "h3": "2.0.1-rc.22",
40
- "logs-sdk": "^0.0.6",
41
40
  "mlly": "^1.8.2",
42
41
  "mrmime": "^2.0.1",
42
+ "nostics": "^0.2.0",
43
43
  "p-limit": "^7.3.0",
44
44
  "pathe": "^2.0.3",
45
45
  "publint": "^0.3.21",
46
- "split2": "^4.2.0",
47
46
  "tinyglobby": "^0.2.16",
48
47
  "unconfig": "^7.5.0",
49
48
  "unstorage": "^1.17.5",
50
- "vue-virtual-scroller": "^3.0.3",
49
+ "vue-virtual-scroller": "^3.0.4",
51
50
  "ws": "^8.20.1",
52
- "@vitejs/devtools-kit": "0.1.23"
51
+ "@vitejs/devtools-kit": "0.2.0"
53
52
  },
54
53
  "devDependencies": {
55
- "@types/split2": "^4.2.3",
56
54
  "@types/splitpanes": "^2.2.6",
57
- "@unocss/nuxt": "^66.6.8",
55
+ "@unocss/nuxt": "^66.7.0",
58
56
  "@vueuse/components": "^14.3.0",
59
57
  "@vueuse/core": "^14.3.0",
60
58
  "@vueuse/nuxt": "^14.3.0",
@@ -65,13 +63,13 @@
65
63
  "diff-match-patch-es": "^1.0.1",
66
64
  "floating-vue": "^5.2.2",
67
65
  "fuse.js": "^7.3.0",
68
- "idb-keyval": "^6.2.2",
66
+ "idb-keyval": "^6.2.3",
69
67
  "modern-monaco": "^0.4.1",
70
68
  "nanovis": "^1.0.0",
71
69
  "splitpanes": "^4.0.4",
72
70
  "theme-vitesse": "^1.0.0",
73
71
  "tsdown": "^0.22.0",
74
- "unocss": "^66.6.8",
72
+ "unocss": "^66.7.0",
75
73
  "vite-hot-client": "^2.2.0"
76
74
  },
77
75
  "inlinedDependencies": {
@@ -108,6 +106,7 @@
108
106
  "read-yaml-file": "2.1.0",
109
107
  "semver": "7.8.0",
110
108
  "signal-exit": "4.1.0",
109
+ "split2": "4.2.0",
111
110
  "strip-bom": "4.0.0",
112
111
  "strip-comments-strings": "1.2.0",
113
112
  "write-file-atomic": "5.0.1",
@@ -1 +0,0 @@
1
- import{Dt as e,F as t,Ot as n,Vt as r,at as i,bt as a,cn as o,hn as s,it as c,j as l,tn as u,wt as d,xt as f,yn as p}from"#entry";import{t as m}from"./CGpzF1Fi.js";import{i as h,l as g,o as _}from"./WhNLRjQY.js";import{n as v,r as y,t as b}from"./C9xBafiu.js";import{t as x}from"./MF_ZggB1.js";import{n as S,t as C}from"./DYINlKP5.js";var w={flex:`~ col gap-2`,p4:``},T={flex:``,pb2:``},E={"w-8":``,"text-right":``,"text-xs":``,op50:``},D={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},O=Object.assign(n({__name:`FlatList`,props:{plugins:{}},setup(t){let n=c();return(i,a)=>{let o=x,c=m;return r(),d(`div`,w,[e(b,{items:t.plugins,"key-prop":`plugin_id`},{default:u(({item:t})=>[f(`div`,T,[e(c,{to:{path:s(n).path,query:{plugin:t.plugin_id}},"font-mono":``,border:`~ rounded base`,"w-full":``,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{default:u(()=>[f(`div`,E,` #`+p(t.plugin_id),1),f(`span`,D,[e(o,{name:t.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`])])}}}),{__name:`PluginsFlatList`}),k={relative:``,"min-h-screen":``},A={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},j={fixed:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},M={op50:``},N=n({__name:`plugins`,props:{session:{}},setup(n){let s=n,u=c(),m=i(),b=o({search:u.query.search||``,selected:u.query.plugin_types?S(u.query.plugin_types):null}),x=a(()=>[..._.filter(e=>s.session?.meta?.plugins?.some(t=>e.match.test(t.name))),h]),w=a(()=>{let e=s.session?.meta?.plugins;return b.value.selected&&(e=e.filter(e=>{let t=g(e.name);return b.value.selected.includes(t.name)})),e}),T=l(()=>w.value,()=>new y(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),E=a(()=>b.value.search?T.value.search(b.value.search).map(e=>e.item):w.value);return t(b.value,e=>{let t={...u.query,search:e.search||void 0,plugin_types:e.selected||void 0};m.replace({query:C(t)})},{debounce:500}),(t,i)=>{let a=v,o=O;return r(),d(`div`,k,[f(`div`,A,[e(a,{modelValue:b.value,"onUpdate:modelValue":i[0]||=e=>b.value=e,rules:x.value},null,8,[`modelValue`,`rules`])]),e(o,{plugins:E.value??[]},null,8,[`plugins`]),f(`div`,j,[f(`span`,M,p(E.value.length)+` of `+p(n.session?.meta?.plugins?.length||0),1)])])}}});export{N as default};
@@ -1 +0,0 @@
1
- import{$t as e,Ct as t,Dt as n,Et as r,Ft as i,Kt as a,Ot as o,Qt as s,St as c,T as l,Tt as u,Ut as d,Vt as f,Zt as p,bt as m,cn as h,gn as g,hn as _,it as v,j as y,m as b,nn as x,r as S,sn as C,t as w,tn as T,vn as E,vt as D,wt as O,xt as k,yn as A}from"#entry";import{t as j}from"./CGpzF1Fi.js";import{r as M}from"./CtfgqrR6.js";import{r as N,t as P}from"./dedBpiqn.js";import{i as F,t as ee}from"./CZ4Hed_B.js";import{n as I}from"./_z5g9W2Q.js";import{n as te,r as ne,t as L}from"./C9xBafiu.js";import{a as re,c as ie,i as ae,n as R,o as z,r as oe,t as se}from"./BNrUSHd9.js";import{t as ce}from"./D0ELUVmr.js";import{n as le,r as ue,t as B}from"./C4TkllWS.js";var V=[`onClick`],de=Object.assign(o({__name:`FlatList`,props:{chunks:{},session:{},link:{type:Boolean,default:!0},basic:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:r}){let i=r;return(r,a)=>{let o=F;return f(),c(L,{items:e.chunks,"key-prop":`chunk_id`},{default:T(({item:r})=>[k(`div`,{flex:``,pb2:``,onClick:e=>i(`select`,r)},[n(o,{chunk:r,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":T(()=>[r.is_initial?(f(),c(M,{key:0,text:`initial`})):t(``,!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(o({__name:`Graph`,props:{session:{},chunks:{},entryId:{default:``}},setup(e){let a=e,o=m(()=>a.chunks),s=v();return I({modules:o,spacing:{width:450,height:55,linkOffset:15,margin:120,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:n,spacing:r,tree:s,hierarchy:c,collapsedNodes:l,container:u,modulesMap:d,nodes:f,links:p,nodesMap:m,linksMap:h,width:g,height:v,childToParentMap:y}=e;return()=>{g.value=window.innerWidth,v.value=window.innerHeight;let e=o.value.filter(e=>a.entryId?e.id===a.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([_(r.height),_(r.width)+_(r.gap)])(x);let S=x.descendants();for(let e of S)[e.x,e.y]=[e.y-_(r.width),e.x];let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<_(r.margin))for(let e of S)e.x+=Math.abs(C)+_(r.margin);if(w<_(r.margin))for(let e of S)e.y+=Math.abs(w)+_(r.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=o.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];h.clear();for(let e of D)h.set(e.id,e);p.value=D,i(()=>{g.value=u.value.scrollWidth/n.value+_(r.margin),v.value=u.value.scrollHeight/n.value+_(r.margin)})}}}),(i,a)=>{let l=j,u=B;return f(),c(u,{session:e.session,modules:o.value,"expand-controls":!1},{default:T(({node:e})=>[n(l,{class:`flex items-center`,to:{path:_(s).path,query:{chunk:e.data.module.chunk_id}}},{default:T(()=>[k(`span`,H,`#`+A(e.data.module.id),1),k(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.data.module.id}`},[k(`div`,null,A(e.data.module.name||`[unnamed]`),1),n(M,{text:e.data.module.reason},null,8,[`text`]),e.data.module.is_initial?(f(),c(M,{key:0,text:`initial`})):t(``,!0)],8,U),a[1]||=k(`div`,{"flex-auto":``},null,-1),k(`div`,W,[a[0]||=k(`div`,{"i-ph-package-duotone":``},null,-1),r(` `+A(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(o({__name:`Sunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(i,{emit:o}){let s=i,c=o,l=p(`el`);return e(()=>l.value?.append(s.graph.el)),(e,o)=>{let s=R,u=N,p=a(`tooltip`);return f(),O(`div`,G,[k(`div`,{ref_key:`el`,ref:l,"w-500px":``},null,512),k(`div`,K,[n(s,{border:`b base`,py2:``,selected:i.selected,options:i.graph.options,onSelect:o[0]||=e=>c(`select`,e)},null,8,[`selected`,`options`]),i.selected?(f(),O(`div`,q,[(f(!0),O(D,null,d(i.selected.children,e=>(f(),O(D,{key:e.id},[k(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:t=>c(`select`,e)},[e.meta&&e.meta===i.selected?.meta?(f(),O(`span`,Y,`(self)`)):(f(),O(`span`,X,A(e.meta?.name||e.id),1))],8,J),k(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:t=>c(`select`,e)},[k(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:E({background:_(z)(i.graph.options.getColor?.(e)||`#000`),width:`${e.size/i.selected.size*100}%`})},null,4),n(u,{"text-xs":``,bytes:e.size,total:i.selected.size,"percent-ratio":3},null,8,[`bytes`,`total`]),e.children.length>0?x((f(),O(`div`,{key:0,title:`${e.children.length} modules`,"text-xs":``,"op-fade":``},[r(` (`+A(e.children.length)+`) `,1)],8,Q)),[[p,`${e.children.length} modules`]]):t(``,!0)],8,Z)],64))),128))])):t(``,!0)])])}}}),{__name:`ChunksSunburst`}),me=Object.assign(o({__name:`Flamegraph`,props:{graph:{}},setup(t){let n=t,r=p(`el`);return e(()=>r.value?.append(n.graph.el)),(e,t)=>(f(),O(`div`,{ref_key:`el`,ref:r},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`},$=o({__name:`chunks`,props:{session:{}},setup(e){let i=e,a=C(l()),o=[{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`}],p=h({search:``}),v=w(),{state:x,isLoading:E}=b(async()=>await v.value.call(`vite:rolldown:get-chunks-graph`,{session:i.session.id}),null),j=m(()=>{let e=new Map;return x.value?.forEach(t=>{e.set(`${t.chunk_id}`,t)}),e}),F=m(()=>x.value?.map(e=>({...e,id:`${e.chunk_id}`}))??[]),I=y(()=>F.value,()=>new ne(F.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),L=m(()=>p.value.search?I.value.search(p.value.search).map(e=>e.item):F.value),{pathSelectorVisible:z,pathNodes:B,selectPathNodes:V,togglePathSelector:H,normalizedGraph:U}=ue({onToggle:e=>{p.value.search=e?!1:``},dataMap:m(()=>j.value),list:m(()=>L.value),importIdKey:`chunk_id`});function W(e){P.value.chunkViewType=e}let G=m(()=>{let e=new Map;for(let t of i.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:m(()=>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(P.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 s(()=>P.value.chunkViewType,()=>{[`treemap`,`sunburst`,`flamegraph`].includes(P.value.chunkViewType)&&je()}),(i,s)=>{let l=S,m=de,h=le,v=te,y=ee,b=fe,x=R,C=pe,w=me,F=N,I=ie;return _(E)?(f(),c(l,{key:0})):(f(),O(`div`,{key:1,relative:``,class:g({"max-h-screen of-hidden":_(P).chunkViewType===`graph`})},[k(`div`,he,[n(v,{modelValue:p.value,"onUpdate:modelValue":s[2]||=e=>p.value=e,rules:[]},u({"search-end":T(()=>[_(P).chunkViewType===`graph`?(f(),O(`div`,ge,[k(`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)(!0)},[...s[5]||=[k(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):t(``,!0)]),default:T(()=>[k(`div`,_e,[s[6]||=k(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(f(),O(D,null,d(o,e=>k(`button`,{key:e.value,"btn-action":``,class:g(_(P).chunkViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>W(e.value)},[k(`div`,{class:g(e.icon)},null,2),r(` `+A(e.label),1)],10,ve)),64))])]),_:2},[_(z)?{name:`search`,fn:T(()=>[n(h,{session:e.session,data:L.value,"import-id-key":`chunk_id`,"search-keys":[`name`],onSelect:_(V),onClose:s[0]||=e=>_(H)(!1)},{list:T(({select:t,data:r})=>[n(m,{session:e.session,chunks:r,link:!1,basic:!0,onSelect:t},null,8,[`session`,`chunks`,`onSelect`])]),item:T(({id:e})=>[r(A(j.value.get(e)?.name||`[unnamed]`),1)]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`])]),_(P).chunkViewType===`list`?(f(),O(`div`,ye,[n(m,{session:e.session,chunks:L.value},null,8,[`session`,`chunks`])])):t(``,!0),_(P).chunkViewType===`detailed-list`?(f(),O(`div`,be,[(f(!0),O(D,null,d(L.value,t=>(f(),c(y,{key:t.id,border:`~ base rounded-lg`,p3:``,chunk:t,chunks:L.value,session:e.session},null,8,[`chunk`,`chunks`,`session`]))),128))])):_(P).chunkViewType===`graph`?(f(),c(b,{key:2,class:`pt32`,session:e.session,chunks:_(U),"entry-id":_(B).start},null,8,[`session`,`chunks`,`entry-id`])):_(P).chunkViewType===`treemap`?(f(),O(`div`,xe,[_(Y)?(f(),c(ce,{key:0,graph:_(Y),selected:_(Z),onSelect:s[3]||=e=>_($)(e)},{default:T(({selected:e,options:t,onSelect:r})=>[n(x,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:r},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):t(``,!0)])):_(P).chunkViewType===`sunburst`?(f(),O(`div`,Se,[_(Y)?(f(),c(C,{key:0,graph:_(Y),selected:_(Z),onSelect:s[4]||=e=>_($)(e)},null,8,[`graph`,`selected`])):t(``,!0)])):_(P).chunkViewType===`flamegraph`?(f(),O(`div`,Ce,[_(Y)?(f(),c(w,{key:0,graph:_(Y)},null,8,[`graph`])):t(``,!0)])):t(``,!0),n(I,{"hover-x":a.x,"hover-y":a.y},{default:T(()=>[_(X)?.meta?(f(),O(`div`,we,[k(`div`,Te,[s[7]||=k(`i`,{"i-ph-shapes-duotone":``,"flex-none":``},null,-1),k(`span`,Ee,A(_(X).meta.name||`[unnamed]`),1)]),k(`div`,De,[s[8]||=k(`span`,{op50:``,"text-xs":``},`Size:`,-1),n(F,{bytes:_(X).meta.size,"text-xs":``},null,8,[`bytes`])]),_(X).meta.modules?.length?(f(),O(`div`,Oe,[s[9]||=k(`span`,{op50:``,"text-xs":``},`Modules:`,-1),k(`span`,ke,A(_(X).meta.modules?.length),1)])):t(``,!0),_(X).meta.is_initial?(f(),O(`div`,Ae,[n(M,{text:`initial`})])):t(``,!0)])):t(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],2))}}});export{$ as default};