@stacksjs/stx 0.2.454 → 0.2.455
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/app-service-worker.d.ts +4 -1
- package/dist/chunk-06gzq9xe.js +17 -0
- package/dist/{chunk-yx37nrgr.js → chunk-0trfbqa7.js} +4 -4
- package/dist/{chunk-8ah8npj3.js → chunk-0v5dpk7r.js} +1 -1
- package/dist/{chunk-z68rb7qp.js → chunk-0vae943t.js} +5 -5
- package/dist/chunk-143gpdxy.js +2 -0
- package/dist/{chunk-w8ek4fe8.js → chunk-1sdtg9np.js} +2 -2
- package/dist/chunk-1vgmzmsw.js +2 -0
- package/dist/{chunk-aem9hs8n.js → chunk-1vm403b2.js} +2 -2
- package/dist/{chunk-7mbx7dzg.js → chunk-2bdthb37.js} +2 -2
- package/dist/{chunk-149r1q6c.js → chunk-2cy956js.js} +2 -2
- package/dist/chunk-2hddf9pn.js +2 -0
- package/dist/chunk-2jxe6y8h.js +2 -0
- package/dist/chunk-32t5agpk.js +2 -0
- package/dist/chunk-3ar8gdyd.js +2 -0
- package/dist/{chunk-697zcjzg.js → chunk-3jc6pahv.js} +12 -12
- package/dist/chunk-3s2vnqcf.js +2 -0
- package/dist/{chunk-hhjff2r8.js → chunk-44msrx2e.js} +3 -3
- package/dist/{chunk-0tchj3ct.js → chunk-462jmw0a.js} +6 -6
- package/dist/chunk-4bd491yq.js +2 -0
- package/dist/{chunk-g8k5rsqq.js → chunk-4fa3jec9.js} +12 -12
- package/dist/chunk-4henqdjf.js +2 -0
- package/dist/chunk-4qv9me8f.js +2 -0
- package/dist/chunk-561yczfn.js +2 -0
- package/dist/chunk-58n62bxb.js +3 -0
- package/dist/chunk-5m8q7c5r.js +2 -0
- package/dist/{chunk-pkpmyr0x.js → chunk-5p56w2ke.js} +3 -3
- package/dist/chunk-5pjsc9zv.js +3 -0
- package/dist/{chunk-n9jn3qzw.js → chunk-5qns2sdz.js} +2 -2
- package/dist/{chunk-2428rqy1.js → chunk-5ryntw3w.js} +6 -6
- package/dist/chunk-68dsxv8z.js +2 -0
- package/dist/chunk-68txmj8d.js +2 -0
- package/dist/{chunk-45rfv3a5.js → chunk-6cp3afft.js} +2 -2
- package/dist/chunk-6nec76z0.js +2 -0
- package/dist/chunk-6qv189mb.js +2 -0
- package/dist/{chunk-dwp3knc4.js → chunk-6r2709dj.js} +3 -3
- package/dist/chunk-77hanm4y.js +2 -0
- package/dist/chunk-7tt84v1y.js +3 -0
- package/dist/chunk-8efg91ak.js +4 -0
- package/dist/chunk-8nd0f6z0.js +2 -0
- package/dist/{chunk-73h7qjgq.js → chunk-8xz8t9xp.js} +2 -2
- package/dist/{chunk-qbhbe9cw.js → chunk-9ac40ggt.js} +5 -5
- package/dist/chunk-9mtz7tyv.js +2 -0
- package/dist/chunk-9t50hw97.js +2 -0
- package/dist/chunk-9z22zs86.js +2 -0
- package/dist/chunk-a32kqsff.js +2 -0
- package/dist/{chunk-19h1j59a.js → chunk-ab56jdah.js} +1 -1
- package/dist/chunk-adjf8fvc.js +3 -0
- package/dist/{chunk-33xh91s8.js → chunk-am1hw771.js} +2 -2
- package/dist/chunk-bpzrfqvw.js +2 -0
- package/dist/{chunk-0xztxj98.js → chunk-bq2e9qf6.js} +3 -3
- package/dist/{chunk-hqywyyez.js → chunk-c491hsm1.js} +5 -5
- package/dist/chunk-czvkkrww.js +2 -0
- package/dist/{chunk-jn8tj4kn.js → chunk-d3mpxr3s.js} +4 -4
- package/dist/{chunk-849wf19d.js → chunk-dxxs52yw.js} +3 -3
- package/dist/chunk-e78ame3h.js +2 -0
- package/dist/chunk-ef0gstkd.js +2 -0
- package/dist/{chunk-zqzv5jy2.js → chunk-exgyf65a.js} +4 -4
- package/dist/{chunk-538h1sfc.js → chunk-f4c39nfh.js} +2 -2
- package/dist/{chunk-3nydw825.js → chunk-fen7zb1b.js} +8 -8
- package/dist/{chunk-s5drjm2j.js → chunk-gkqxnetc.js} +6 -6
- package/dist/{chunk-47jq9j1w.js → chunk-gyv7dcyx.js} +2 -2
- package/dist/{chunk-axydabse.js → chunk-h9e032kq.js} +3 -3
- package/dist/chunk-ha5z623e.js +2 -0
- package/dist/chunk-hehtgsrt.js +2 -0
- package/dist/{chunk-3pc22sve.js → chunk-hg7abc58.js} +6 -6
- package/dist/chunk-hjg3e338.js +2 -0
- package/dist/chunk-hqsgp9wy.js +2 -0
- package/dist/chunk-hqzq3a61.js +2 -0
- package/dist/chunk-hskrxdcc.js +2 -0
- package/dist/chunk-hvx3pc13.js +2 -0
- package/dist/{chunk-9zbjk8pg.js → chunk-jckvavdb.js} +8 -8
- package/dist/chunk-jdhs9w6h.js +2 -0
- package/dist/{chunk-4q366fhp.js → chunk-jpgma7e8.js} +5 -5
- package/dist/chunk-jtmfwhsy.js +11 -0
- package/dist/{chunk-dqr5n49p.js → chunk-jz7pvh7b.js} +2 -2
- package/dist/chunk-kcs71ks8.js +2 -0
- package/dist/chunk-kda62f5h.js +2 -0
- package/dist/{chunk-26wmppja.js → chunk-kppgyqwb.js} +1 -1
- package/dist/chunk-kwct777t.js +2831 -0
- package/dist/chunk-m7p98cmy.js +4 -0
- package/dist/chunk-mbapk9ka.js +2 -0
- package/dist/chunk-me5039d4.js +2 -0
- package/dist/{chunk-fmj4xvqm.js → chunk-mhpsz5m0.js} +5 -5
- package/dist/{chunk-b1q5sh7x.js → chunk-n1dyjhte.js} +3 -3
- package/dist/{chunk-mnz6bdp3.js → chunk-n866vbgj.js} +5 -5
- package/dist/chunk-n8hd5qap.js +2 -0
- package/dist/{chunk-s59r34p5.js → chunk-nmf12mx3.js} +4 -4
- package/dist/chunk-nqvb9094.js +2 -0
- package/dist/chunk-p4zeqzmr.js +2 -0
- package/dist/chunk-pcp5twev.js +2 -0
- package/dist/chunk-pe214qcn.js +2 -0
- package/dist/{chunk-4yyzje7d.js → chunk-pw34r8r5.js} +1 -1
- package/dist/{chunk-81v9crqy.js → chunk-q8ttp85g.js} +1 -1
- package/dist/chunk-q98v7bhs.js +2 -0
- package/dist/chunk-qhwvjsbx.js +2 -0
- package/dist/chunk-qrgr2h1n.js +2 -0
- package/dist/{chunk-5xj1df83.js → chunk-r6pax860.js} +7 -7
- package/dist/{chunk-rdq113p4.js → chunk-r80km6mn.js} +2 -2
- package/dist/{chunk-tehvry9a.js → chunk-rcr57c30.js} +10 -10
- package/dist/{chunk-8fj8sm1a.js → chunk-ree9weje.js} +2 -2
- package/dist/{chunk-x4ztj64h.js → chunk-rgwvqmhh.js} +2 -2
- package/dist/chunk-rsj5q7zm.js +2 -0
- package/dist/{chunk-tn85vr56.js → chunk-rvgvt161.js} +2 -2
- package/dist/chunk-rwx1s3b5.js +2 -0
- package/dist/chunk-rzmvsqc7.js +2 -0
- package/dist/{chunk-rbkna5rw.js → chunk-skgdg84c.js} +11 -11
- package/dist/{chunk-yfd0e7dr.js → chunk-tbjyp03h.js} +1 -1
- package/dist/chunk-tmn8hxm6.js +2 -0
- package/dist/{chunk-g2afpsw0.js → chunk-tpeyn7wr.js} +2 -2
- package/dist/{chunk-s6e8mmk1.js → chunk-tpvc8xnk.js} +6 -6
- package/dist/chunk-tr7dz5g5.js +2 -0
- package/dist/{chunk-5cyme1g0.js → chunk-v3yqeh15.js} +2 -2
- package/dist/{chunk-9ndzk9r4.js → chunk-vg7wfkt5.js} +3 -3
- package/dist/chunk-vrvnctex.js +2 -0
- package/dist/chunk-w00khg58.js +2 -0
- package/dist/chunk-w1h9ts86.js +2 -0
- package/dist/{chunk-afhkvj3k.js → chunk-w1zvh5y7.js} +2 -2
- package/dist/chunk-w62ettpr.js +2 -0
- package/dist/{chunk-b5wh10s9.js → chunk-xd71zy8q.js} +78 -78
- package/dist/chunk-xe90p9rp.js +2 -0
- package/dist/{chunk-56rk985x.js → chunk-y3cqh2jv.js} +3 -3
- package/dist/{chunk-0vbpcef6.js → chunk-z2daw0th.js} +4 -4
- package/dist/{chunk-nw8p8eg9.js → chunk-z3etxty5.js} +5 -5
- package/dist/{chunk-vraddzkf.js → chunk-z6tag2ng.js} +4 -4
- package/dist/{chunk-g3h7j2n7.js → chunk-z80d9dd2.js} +2 -2
- package/dist/chunk-z990jtmx.js +2 -0
- package/dist/chunk-zjp0v2ja.js +33 -0
- package/dist/{chunk-d1xbamr1.js → chunk-znj79hta.js} +2 -2
- package/dist/chunk-zrbpy3m5.js +2 -0
- package/dist/{chunk-jwpcck1b.js → chunk-zydg3wgt.js} +2 -2
- package/dist/cli.js +20 -20
- package/dist/client-script.d.ts +0 -21
- package/dist/client-script.js +21 -0
- package/dist/composable-loader.js +41 -17
- package/dist/compression.js +25 -6
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/html-masking.js +36 -8
- package/dist/i18n.js +4 -3
- package/dist/includes.js +6 -2
- package/dist/misc-directives.d.ts +0 -10
- package/dist/misc-directives.js +12 -0
- package/dist/offline/app-service-worker.d.ts +4 -1
- package/dist/offline/app-service-worker.js +62 -27
- package/dist/process.js +4 -0
- package/dist/pwa.js +3 -3
- package/dist/source-signature.d.ts +5 -2
- package/dist/source-signature.js +7 -0
- package/dist/ssg.js +8 -8
- package/dist/store-loader.js +2 -1
- package/dist/utils.js +27 -15
- package/package.json +5 -5
- package/dist/chunk-14x69rt4.js +0 -2
- package/dist/chunk-1kmd0g1k.js +0 -3
- package/dist/chunk-3wezvz6m.js +0 -2
- package/dist/chunk-5402rpwg.js +0 -2
- package/dist/chunk-58ymq1h4.js +0 -2
- package/dist/chunk-5rtbs8zv.js +0 -2
- package/dist/chunk-5tx1wqns.js +0 -2
- package/dist/chunk-6fw3rfcj.js +0 -2
- package/dist/chunk-6nfecsbt.js +0 -2
- package/dist/chunk-6sw7sxh2.js +0 -17
- package/dist/chunk-7qbv0xh6.js +0 -2
- package/dist/chunk-7vdsd9rn.js +0 -2
- package/dist/chunk-8gk34047.js +0 -2
- package/dist/chunk-8nsfkr5n.js +0 -2
- package/dist/chunk-90562q79.js +0 -3
- package/dist/chunk-a1dggchm.js +0 -2
- package/dist/chunk-a1kv42kp.js +0 -2
- package/dist/chunk-a5695s8k.js +0 -2
- package/dist/chunk-avjgetkh.js +0 -2
- package/dist/chunk-bcgth8qf.js +0 -2
- package/dist/chunk-bemksdz5.js +0 -33
- package/dist/chunk-br3ktpyq.js +0 -2
- package/dist/chunk-by1s70jp.js +0 -2
- package/dist/chunk-cwc3p6p7.js +0 -2
- package/dist/chunk-e593pr1r.js +0 -2
- package/dist/chunk-e8y69gg0.js +0 -2
- package/dist/chunk-eam7eann.js +0 -2
- package/dist/chunk-ej7m406s.js +0 -2
- package/dist/chunk-es85mgdw.js +0 -2
- package/dist/chunk-fa5x9zbk.js +0 -2
- package/dist/chunk-fkrzsk74.js +0 -2
- package/dist/chunk-fm3k5v8s.js +0 -2
- package/dist/chunk-fmc9fj4a.js +0 -2
- package/dist/chunk-fn863yek.js +0 -2
- package/dist/chunk-fv30avp2.js +0 -2
- package/dist/chunk-gpmk4s4f.js +0 -2
- package/dist/chunk-hd64hz1n.js +0 -2
- package/dist/chunk-hd75916k.js +0 -4
- package/dist/chunk-hz6a476h.js +0 -2
- package/dist/chunk-j7zywbq0.js +0 -4
- package/dist/chunk-jjm3754f.js +0 -2
- package/dist/chunk-ktk30f6d.js +0 -2
- package/dist/chunk-m3f50p6c.js +0 -2
- package/dist/chunk-m90a5dpn.js +0 -2
- package/dist/chunk-mmp7x8f0.js +0 -2
- package/dist/chunk-nqcg2bf0.js +0 -2
- package/dist/chunk-nrp8qg9j.js +0 -2831
- package/dist/chunk-ns7e951g.js +0 -2
- package/dist/chunk-nycvwnty.js +0 -2
- package/dist/chunk-p9shre7t.js +0 -2
- package/dist/chunk-pe9hxhrb.js +0 -2
- package/dist/chunk-ph6xg67j.js +0 -11
- package/dist/chunk-qewxfhex.js +0 -2
- package/dist/chunk-qfrg8mnf.js +0 -2
- package/dist/chunk-rmnhy5az.js +0 -2
- package/dist/chunk-t6m5wmpy.js +0 -2
- package/dist/chunk-v404gvm0.js +0 -2
- package/dist/chunk-vgvsefz8.js +0 -2
- package/dist/chunk-w9k7pvre.js +0 -2
- package/dist/chunk-wf09xg7j.js +0 -2
- package/dist/chunk-wgqt5pnv.js +0 -2
- package/dist/chunk-wr3h8dmt.js +0 -2
- package/dist/chunk-wtqjfar3.js +0 -2
- package/dist/chunk-x1xncm97.js +0 -2
- package/dist/chunk-yd50awqp.js +0 -3
- package/dist/chunk-ykxd78b2.js +0 -2
- package/dist/chunk-yqsza22w.js +0 -3
- package/dist/chunk-zj80vrv6.js +0 -2
package/dist/ssg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-r6pax860.js";import"./chunk-8xz8t9xp.js";import{Qe,et,tt,nt,rt,st}from"./chunk-nmf12mx3.js";import"./chunk-w1zvh5y7.js";import"./chunk-h9e032kq.js";import{f,je,N,K,n,o}from"./chunk-kwct777t.js";import"./chunk-exgyf65a.js";import{Qn}from"./chunk-4fa3jec9.js";import"./chunk-zydg3wgt.js";import"./chunk-1vm403b2.js";import"./chunk-jz7pvh7b.js";import"./chunk-0trfbqa7.js";import"./chunk-9ac40ggt.js";import{ie,gt,mt}from"./chunk-06gzq9xe.js";import{_o,Ro,Ao}from"./chunk-dxxs52yw.js";import{pt,Gt,Jt}from"./chunk-5pjsc9zv.js";import"./chunk-bq2e9qf6.js";import{a}from"./chunk-7tt84v1y.js";import x from"fs";import g from"path";import{createHash as $t}from"crypto";function Dt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Rt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function kt(t){return Bun.hash(t).toString(16)}function lt(t,i={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let s=new Map,r=t.replace(Rt,(e,l,w,y)=>{let h=y.trim();if(!h)return e;if(/\bdata-stx-src=/.test(w))return e;if(i.minify)h=Dt(h);let S=kt(h);if(!s.has(S))s.set(S,h);let P=i.integrity?` data-stx-integrity="sha384-${$t("sha384").update(h).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${l}" data-stx-src="/_stx/islands/${S}.js"${P}${w}></script>`}),c=Array.from(s,([e,l])=>({hash:e,code:l}));return{html:r,chunks:c}}var Ct=new Set(["visible","idle"]);function ut(t){if(!t.includes("data-stx-src="))return t;let i=new Map,s=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,r;while((r=s.exec(t))!==null)i.set(r[1],r[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,l;while((l=e.exec(t))!==null)if(Ct.has(i.get(l[1])||""))c.add(l[2]);let w=t.lastIndexOf("</head>");if(c.size===0||w===-1)return t;let y=Array.from(c).filter((h)=>!t.includes(`rel="prefetch" href="${h}"`)).map((h)=>`<link rel="prefetch" href="${h}" as="script">`).join("");if(!y)return t;return t.slice(0,w)+y+t.slice(w)}var Et=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function q(t){let i=t.trim();if(!i)return null;let s=/^https?:\/\//i.test(i)?i:`https://${i}`;try{return new URL(s).origin+new URL(s).pathname.replace(/\/$/,"")}catch{return null}}function It(t){for(let i of Et){let s=t[i];if(!s)continue;let r=q(s);if(r)return{url:r,source:"env",via:i}}return null}function dt(t){if(!t||typeof t!=="object")return null;let i=t,s=i.site?.url??i.url??i.app?.url;return typeof s==="string"?q(s):null}async function Bt(t){let{existsSync:i}=await import("fs"),s=await import("path");for(let r of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=s.resolve(t,r);if(!i(c))continue;try{let e=await import(c),l=dt(e.default??e);if(l)return l}catch{}}return null}async function ht(t={}){let i=t.cwd??process.cwd(),s=t.env??process.env;if(t.explicit){let l=q(t.explicit);if(l)return{url:l,source:"option"}}let r=dt(t.stxConfig);if(r)return{url:r,source:"stx.config",via:"site.url"};let c=await Bt(i);if(c)return{url:c,source:"site.config",via:"url"};let e=It(s);if(e)return e;return{url:"http://localhost",source:"fallback"}}function ft(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
|
|
3
3
|
`)}class wt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,i=""){this.cacheDir=t,this.salt=i}async load(){if(this.loaded)return;let t=g.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let i=JSON.parse(await Bun.file(t).text());for(let[s,r]of Object.entries(i))this.cache.set(s,r)}catch{}this.loaded=!0}async save(){await x.promises.mkdir(this.cacheDir,{recursive:!0});let t=g.join(this.cacheDir,"build-cache.json"),i={};for(let[s,r]of this.cache)i[s]=r;await Bun.write(t,JSON.stringify(i))}getHash(t,i){let s=x.statSync(t),r=`${this.salt}|${t}:${s.mtimeMs}`;for(let e of i)if(x.existsSync(e)){let l=x.statSync(e);r+=`:${e}:${l.mtimeMs}`}let c=0;for(let e=0;e<r.length;e++){let l=r.charCodeAt(e);c=(c<<5)-c+l,c=c&c}return Math.abs(c).toString(36)}get(t,i){let s=this.cache.get(t);if(!s)return null;let r=this.getHash(i,s.dependencies??[]);if(s.hash!==r)return this.cache.delete(t),null;return s.html}set(t,i,s,r){let c=this.getHash(i,s);this.cache.set(t,{hash:c,html:r,generatedAt:Date.now(),dependencies:s})}}class yt{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let i=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return g.join(this.cacheDir,"isr",i)}async get(t){let i=this.getFilePath(t);if(!await Bun.file(i).exists())return null;try{return JSON.parse(await Bun.file(i).text())}catch{return null}}async set(t,i){let s=this.getFilePath(t);await x.promises.mkdir(g.dirname(s),{recursive:!0}),await Bun.write(s,JSON.stringify(i))}async invalidate(t){let i=this.getFilePath(t);if(await Bun.file(i).exists())await x.promises.unlink(i)}async invalidatePattern(t){let i=g.join(this.cacheDir,"isr");if(!x.existsSync(i))return;let s=await x.promises.readdir(i);for(let r of s){let c=r.replace(/_/g,"/").replace(".json","");if(t.test(c))await x.promises.unlink(g.join(i,r))}}async needsRevalidation(t){let i=await this.get(t);if(!i)return!0;return Date.now()>i.revalidateAfter}}async function jt(t){try{let s=(await Bun.file(t).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!s)return null;let r=s[1];if(!r.includes("getStaticPaths"))return null;let c=r.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!c)return null;return await Function(`
|
|
4
4
|
return (async function getStaticPaths() {
|
|
5
5
|
${c[1]}
|
|
@@ -11,7 +11,7 @@ import"./chunk-5xj1df83.js";import"./chunk-73h7qjgq.js";import{Qe,et,tt,nt,rt,st
|
|
|
11
11
|
`)(i)}catch(e){return console.error(`Error executing getStaticProps in ${s}:`,e),null}}function At(t){return/(?:^|[^\w$.])(?:export\s+)?(?:async\s+)?function\s+action\s*\(/.test(t)||/(?:^|[^\w$.])(?:export\s+)?(?:const|let|var)\s+action\s*=/.test(t)}async function St(t,i,s={},r,c){let e=await Bun.file(t.filePath).text(),l=await Ot(t.filePath),w=await Tt(e,i,t.filePath),y={...l||{},...w||{},...s,params:i,$route:{path:t.pattern,params:i}},h=new Set,S=[],P=[],D={...c,...r.partialsDir?{partialsDir:r.partialsDir}:{},...r.componentsDir?{componentsDir:r.componentsDir}:{},debug:!1,cache:!1,autoShell:!0,onIncludeError:(b)=>{S.push(`${g.relative(process.cwd(),b.templatePath)}: ${b.message}
|
|
12
12
|
resolved against partialsDir: ${b.partialsDir}`)},onServerScriptError:(b)=>{P.push(`${g.relative(process.cwd(),b.sourcePath)} (${b.kind}): ${b.message}`)}};if(At(e))console.warn(`Warning: ${t.pattern} exports a page action, which cannot run in a static build. Its form will submit to a file. Serve this route with the production server, or point the form's action at a route handler.`);let p=await n(e,y,t.filePath,D,h);for(let b of[t.filePath,...h])for(let B of ie(b))h.add(B);if(Object.keys(i).length>0){let b=`<script>if(window.stx)window.stx._rp=${JSON.stringify(i)};else window.__stx_rp=${JSON.stringify(i)};</script>`;if(p.includes("</head>"))p=p.replace("</head>",`${b}
|
|
13
13
|
</head>`);else p=`${b}
|
|
14
|
-
${p}`}if(p=await
|
|
14
|
+
${p}`}if(p=await K(p,{router:r.router}),p=await f(p),r.minify!==!1)return{html:Lt(p),dependencies:Array.from(h),includeFailures:S,serverScriptFailures:P};return{html:p,dependencies:Array.from(h),includeFailures:S,serverScriptFailures:P}}function Lt(t){let i=[],s=0,r=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,c;while((c=r.exec(t))!==null){let l=t.slice(s,c.index);i.push(l.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><"));let w=c[1],y=c[2],h=c[3];y=y.replace(/([^:"\\'`])\/\/(?!\/)(?![*!])([^\n]*)/g,"$1"),i.push(w+y+h),s=c.index+c[0].length}let e=t.slice(s);return i.push(e.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><")),i.join("").trim()}function Mt(t){let i=0;for(let s=0;s<t.length;s++){let r=t.charCodeAt(s);i=(i<<5)-i+r,i=i&i}return`"${Math.abs(i).toString(36)}"`}function Ut(t,i,s,r){if(s?.sitemap===!1)return!0;if(/<meta[^>]+name=["']robots["'][^>]+content=["'][^"']*noindex/i.test(i))return!0;return r.some((c)=>{if(c instanceof RegExp)return c.test(t);return c.endsWith("/")?t===c.slice(0,-1)||t.startsWith(c):t===c})}function _t(t,i){return`<?xml version="1.0" encoding="UTF-8"?>
|
|
15
15
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
16
16
|
${t.map((r)=>{let c=new URL(r.loc,i).href,e=` <url>
|
|
17
17
|
<loc>${I(c)}</loc>`;if(r.lastmod)e+=`
|
|
@@ -41,7 +41,7 @@ ${t.map((r)=>{let c=new URL(r.loc,i).href,e=` <url>
|
|
|
41
41
|
${s.join(`
|
|
42
42
|
`)}
|
|
43
43
|
</channel>
|
|
44
|
-
</rss>`}async function zt(t={}){let i=Date.now();
|
|
44
|
+
</rss>`}async function zt(t={}){let i=Date.now();mt();let s=await o(process.cwd()),r=s.build||{},c=await ht({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ft());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:c.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||a(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||s?.partialsDir||"",componentsDir:t.componentsDir||s?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,h={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-tmn8hxm6.js");try{D=m(await u(process.cwd()))}catch{}}let{prepareImageDelivery:p}=await import("./chunk-w1h9ts86.js"),b=await p(e.publicDir,e.outputDir);if(b.count>0)console.log(`Optimized ${b.count} image(s) for responsive delivery`),D=[D,b.fingerprint].filter(Boolean).join(":");let B=new wt(e.cacheDir,D);if(e.cache)await B.load();try{let{generateCss:u}=await import("./chunk-tmn8hxm6.js");await u('<div class="bg-black"></div>')}catch{}Qe();let xt=s?.routeMiddleware?.dir||"middleware";await tt(process.cwd(),xt);let H=et();if(H.length>0)console.log(`Loaded ${H.length} middleware: ${H.join(", ")}`);let vt=s?.routeMiddleware?.global||[];Ao(s?.layoutsDir,a(process.cwd()));let V=N(".",{pagesDir:e.pagesDir,pagesDirs:s?._layerPageDirs});console.log(`Found ${V.length} routes`);let _=[];for(let u of V){let m=await Ft(u);for(let v of m)_.push({route:u,url:v.url,params:v.params,props:v.props,revalidate:v.revalidate??e.revalidate})}l.totalPages=_.length,console.log(`Generating ${l.totalPages} pages...`);let A=[],X=[];for(let u=0;u<_.length;u+=e.concurrency)X.push(_.slice(u,u+e.concurrency));for(let u of X)await Promise.all(u.map(async(m)=>{let{route:v,url:d,params:L,props:bt,revalidate:Q}=m;try{await e.hooks.onPageStart?.(d);let j=await Bun.file(v.filePath).text(),F=Vt(j),Pt=F?.middleware?Array.isArray(F.middleware)?F.middleware:[F.middleware]:[],it=[...vt,...Pt];if(it.length>0){let C=nt(d,L,F||{}),O=rt(C,null,void 0,{isServer:!0}),E=await st(it,O);if(E.redirect){let R=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,U=Kt(String(R),d),T=Xt(d,e);await x.promises.mkdir(g.dirname(T),{recursive:!0}),await Bun.write(T,U),l.successCount++,l.pages.push({route:d,outputPath:T,size:Buffer.byteLength(U),cached:!1}),A.push({loc:d,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${d} \u2192 redirect to ${R}`);return}if(E.abort){let R=typeof E.abort==="string"?E.abort:E.abort?.error?.message||"aborted";console.warn(` \u21B3 ${d} \u2014 middleware aborted: ${R}`);return}}let at=j.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(at)try{if(!await Function("route",`
|
|
45
45
|
const validate = ${at[1]};
|
|
46
46
|
return validate(route);
|
|
47
47
|
`)({params:L})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,ot=!1;if(e.cache){if(k=B.get(d,v.filePath),k)ot=!0,l.cachedCount++}if(!k){let C=await St(v,L,bt,e,s);if(k=C.html,e.failOnIncludeError&&C.includeFailures.length>0)throw Error(`${C.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
|
@@ -50,7 +50,7 @@ ${s.join(`
|
|
|
50
50
|
Set ssg.failOnIncludeError to false to build anyway.`);if(e.failOnServerScriptError&&C.serverScriptFailures.length>0)throw Error(`${C.serverScriptFailures.length} <script server> block(s) failed, so this page would have shipped with the content they produce missing:
|
|
51
51
|
${C.serverScriptFailures.join(`
|
|
52
52
|
`)}
|
|
53
|
-
Set ssg.failOnServerScriptError to false to build anyway.`);if(e.cache)B.set(d,v.filePath,C.dependencies,k)}let
|
|
53
|
+
Set ssg.failOnServerScriptError to false to build anyway.`);if(e.cache)B.set(d,v.filePath,C.dependencies,k)}let M;if(e.trailingSlash)M=g.join(e.outputDir,d,"index.html");else M=d==="/"?g.join(e.outputDir,"index.html"):g.join(e.outputDir,`${d}.html`);if(e.chunkIslands){let{html:C,chunks:O}=lt(k,{integrity:e.integrityIslands,minify:e.minify});if(O.length>0){let E=g.join(e.outputDir,"_stx","islands");await x.promises.mkdir(E,{recursive:!0});for(let R of O){let U=g.join(E,`${R.hash}.js`);if(!await Bun.file(U).exists())await Bun.write(U,R.code);if(!w.has(R.hash)){w.add(R.hash);let T=Buffer.byteLength(R.code,"utf8");y+=T,h[R.hash]={bytes:T,file:`/_stx/islands/${R.hash}.js`}}}if(S[d]=O.map((R)=>R.hash),k=C,e.prefetchIslands)k=ut(k)}}if(await x.promises.mkdir(g.dirname(M),{recursive:!0}),await Bun.write(M,k),!Ut(d,k,F,e.sitemapExclude))A.push({loc:d,lastmod:new Date().toISOString().split("T")[0],priority:d==="/"?1:0.8});let ct={route:d,outputPath:M,size:Buffer.byteLength(k,"utf8"),cached:ot};if(Q!==!1)ct.revalidateAt=Date.now()+Q*1000;l.pages.push(ct),l.successCount++,await e.hooks.onPageEnd?.(d,k)}catch(j){l.failedCount++,l.errors.push({route:d,error:j}),await e.hooks.onError?.(j,d),console.error(`Error generating ${d}:`,j)}}));let Y=gt();if(Y.length>0){let u=Y.map((m)=>`${m.filePath}: ${m.message}`).join(`
|
|
54
54
|
`);throw Error(`Client script bundling failed:
|
|
55
55
|
${u}`)}if(e.cache)await B.save();if(e.generate404){let u=g.join(e.pagesDir,"404.stx");if(await Bun.file(u).exists()){let m=new Set,v={...s,debug:!1,cache:!1},d=await n(await Bun.file(u).text(),{},u,v,m);await Bun.write(g.join(e.outputDir,"404.html"),d)}else await Bun.write(g.join(e.outputDir,"404.html"),`<!DOCTYPE html>
|
|
56
56
|
<html lang="en">
|
|
@@ -73,7 +73,7 @@ ${u}`)}if(e.cache)await B.save();if(e.generate404){let u=g.join(e.pagesDir,"404.
|
|
|
73
73
|
<a href="/">Go home</a>
|
|
74
74
|
</div>
|
|
75
75
|
</body>
|
|
76
|
-
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...s,debug:!1,cache:!1},L=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&A.length>0){let u=_t(A,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${A.length} URLs`)}if(e.robots!==!1){let u=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((d)=>typeof d==="string"),...u.disallow||[]],v=
|
|
76
|
+
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...s,debug:!1,cache:!1},L=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&A.length>0){let u=_t(A,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${A.length} URLs`)}if(e.robots!==!1){let u=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((d)=>typeof d==="string"),...u.disallow||[]],v=Qn({rules:[{userAgent:u.userAgent||"*",allow:u.allow||["/"],...m.length>0?{disallow:m}:{}}],...u.sitemap!==!1&&l.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(g.join(e.outputDir,"robots.txt"),v),console.log("Generated robots.txt")}if(e.rss){let u=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(u.getItems)m=await u.getItems();let v=Nt(u,m),d=g.join(e.outputDir,"rss.xml");await Bun.write(d,v),l.rssPath=d,console.log(`Generated rss.xml with ${m.length} items`)}let G=_o(e.outputDir);if(G.assets>0)console.log(`Externalized ${G.assets} asset(s) from ${G.pages} page(s) (${(G.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);let z=Ro(e.outputDir);if(z.assets>0)console.log(`Externalized ${z.assets} repeated asset(s) from ${z.pages} page(s) (${(z.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);if(e.publicDir&&x.existsSync(e.publicDir))await J(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let Z=Jt();if(Z)await J(Z,g.join(e.outputDir,Gt)),console.log(`Copied assets from ${pt}`)}catch(D){throw await e.hooks.onError?.(D),D}if(l.buildTime=Date.now()-i,w.size>0){l.islandChunks={count:w.size,totalBytes:y};let D={generatedChunks:w.size,totalBytes:y,chunks:h,pages:S};await Bun.write(g.join(e.outputDir,"_stx","islands-manifest.json"),JSON.stringify(D,null,2))}await e.hooks.onBuildEnd?.(l);let P=l.islandChunks?`
|
|
77
77
|
Island chunks: ${l.islandChunks.count} (${(l.islandChunks.totalBytes/1024).toFixed(1)} KB lifted out of inline HTML)`:"";return console.log(`
|
|
78
78
|
Build complete!
|
|
79
79
|
Total: ${l.totalPages} pages
|
|
@@ -81,8 +81,8 @@ Build complete!
|
|
|
81
81
|
Cached: ${l.cachedCount}
|
|
82
82
|
Failed: ${l.failedCount}
|
|
83
83
|
Time: ${l.buildTime}ms${P}
|
|
84
|
-
`),l}async function
|
|
85
|
-
`)){let P=S.indexOf(":");if(P>0){let D=S.slice(0,P).trim(),p=S.slice(P+1).trim();if(p==="true")p=!0;else if(p==="false")p=!1;else if(/^\d+$/.test(p))p=parseInt(p,10);else if(/^\d+\.\d+$/.test(p))p=parseFloat(p);else if(p.startsWith("[")&&p.endsWith("]"))p=p.slice(1,-1).split(",").map((b)=>b.trim().replace(/^['"]|['"]$/g,""));r[D]=p}}}let e=c.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*)\*\*/gim,"<strong>$1</strong>").replace(/\*(.*)\*/gim,"<em>$1</em>").replace(/`([^`]+)`/gim,"<code>$1</code>").replace(/\[([^\]]+)\]\(([^)]+)\)/gim,'<a href="$2">$1</a>').replace(/\n/gim,"<br>"),l=[],w=/<h([1-6])>([^<]+)<\/h[1-6]>/gi,y;while((y=w.exec(e))!==null){let h=parseInt(y[1],10),S=y[2],P=S.toLowerCase().replace(/[^a-z0-9]+/g,"-");l.push({id:P,text:S,level:h})}return{content:e,data:r,toc:l}}}}function
|
|
84
|
+
`),l}async function J(t,i){await x.promises.mkdir(i,{recursive:!0});let s=await x.promises.readdir(t,{withFileTypes:!0});for(let r of s){let c=g.join(t,r.name),e=g.join(i,r.name);if(r.isDirectory())await x.promises.mkdir(e,{recursive:!0}),await J(c,e);else await x.promises.copyFile(c,e)}}function Ht(t={}){let i=t.cacheDir||a(process.cwd(),"ssg-cache"),s=new yt(i),r=t.revalidate||3600;return{async get(c){let e=await s.get(c);if(!e)return null;if(Date.now()>e.revalidateAfter)this.revalidate(c).catch(console.error);return{html:e.html,headers:{"Cache-Control":`public, max-age=${r}, stale-while-revalidate=${r*2}`,ETag:e.etag,"X-ISR-Generated":new Date(e.generatedAt).toISOString(),...e.headers}}},async revalidate(c){let l=N(".",{pagesDir:t.pagesDir||"pages"}).find((P)=>c.match(P.regex)!==null);if(!l){console.warn(`Route not found for revalidation: ${c}`);return}let w=c.match(l.regex),y={};if(w)l.params.forEach((P,D)=>{y[P]=w[D+1]});let h=await o(),{html:S}=await St(l,y,{},t,h);await s.set(c,{html:S,generatedAt:Date.now(),revalidateAfter:Date.now()+r*1000,etag:Mt(S)}),console.log(`Revalidated: ${c}`)},async invalidate(c){if(typeof c==="string")await s.invalidate(c);else await s.invalidatePattern(c)}}}function Wt(t){return async()=>({paths:await t(),fallback:!1})}function qt(){return{name:"markdown",extensions:[".md",".mdx"],async load(t){let i=await Bun.file(t).text(),s=i.match(/^---\n([\s\S]*?)\n---/),r={},c=i;if(s){let h=s[1];c=i.slice(s[0].length).trim();for(let S of h.split(`
|
|
85
|
+
`)){let P=S.indexOf(":");if(P>0){let D=S.slice(0,P).trim(),p=S.slice(P+1).trim();if(p==="true")p=!0;else if(p==="false")p=!1;else if(/^\d+$/.test(p))p=parseInt(p,10);else if(/^\d+\.\d+$/.test(p))p=parseFloat(p);else if(p.startsWith("[")&&p.endsWith("]"))p=p.slice(1,-1).split(",").map((b)=>b.trim().replace(/^['"]|['"]$/g,""));r[D]=p}}}let e=c.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*)\*\*/gim,"<strong>$1</strong>").replace(/\*(.*)\*/gim,"<em>$1</em>").replace(/`([^`]+)`/gim,"<code>$1</code>").replace(/\[([^\]]+)\]\(([^)]+)\)/gim,'<a href="$2">$1</a>').replace(/\n/gim,"<br>"),l=[],w=/<h([1-6])>([^<]+)<\/h[1-6]>/gi,y;while((y=w.exec(e))!==null){let h=parseInt(y[1],10),S=y[2],P=S.toLowerCase().replace(/[^a-z0-9]+/g,"-");l.push({id:P,text:S,level:h})}return{content:e,data:r,toc:l}}}}function Vt(t){return je(t)}function Kt(t,i){return`<!DOCTYPE html>
|
|
86
86
|
<html>
|
|
87
87
|
<head>
|
|
88
88
|
<meta charset="utf-8">
|
|
@@ -94,4 +94,4 @@ Build complete!
|
|
|
94
94
|
<p>Redirecting to <a href="${t}">${t}</a>...</p>
|
|
95
95
|
<script>window.location.replace('${t}')</script>
|
|
96
96
|
</body>
|
|
97
|
-
</html>`}function
|
|
97
|
+
</html>`}function Xt(t,i){if(t==="/"||t==="")return g.join(i.outputDir,"index.html");let s=t.replace(/^\/|\/$/g,"");if(i.trailingSlash)return g.join(i.outputDir,s,"index.html");return g.join(i.outputDir,`${s}.html`)}var Se={generateStaticSite:zt,createISRHandler:Ht,defineStaticPaths:Wt,createMarkdownLoader:qt};export{Ht as createISRHandler,qt as createMarkdownLoader,At as declaresPageAction,Se as default,Wt as defineStaticPaths,zt as generateStaticSite,Ut as isExcludedFromSitemap};
|
package/dist/store-loader.js
CHANGED
|
@@ -4,7 +4,7 @@ import { loadStxConfig } from "./config.js";
|
|
|
4
4
|
import { getPublicEnvDefine } from "./public-env.js";
|
|
5
5
|
import { STX_RUNTIME_GLOBALS } from "./runtime-globals.js";
|
|
6
6
|
import { stripStxRuntimeImports } from "./signal-processing.js";
|
|
7
|
-
import { readSigned, sourceSignature, writeSigned } from "./source-signature.js";
|
|
7
|
+
import { clearSourceSignatures, readSigned, sourceSignature, writeSigned } from "./source-signature.js";
|
|
8
8
|
import { stripModuleImports, transformStoreImports } from "./store-imports.js";
|
|
9
9
|
import { getSharedTranspiler } from "./utils.js";
|
|
10
10
|
const _cachedStoreScripts = new Map;
|
|
@@ -108,4 +108,5 @@ ${joinedChunks}
|
|
|
108
108
|
}
|
|
109
109
|
export function clearStoreCache() {
|
|
110
110
|
_cachedStoreScripts.clear();
|
|
111
|
+
clearSourceSignatures();
|
|
111
112
|
}
|
package/dist/utils.js
CHANGED
|
@@ -35,7 +35,7 @@ export {
|
|
|
35
35
|
extractVariables,
|
|
36
36
|
hasVariables
|
|
37
37
|
} from "./variable-extractor.js";
|
|
38
|
-
const componentsCache = new LRUCache(500), componentResolutionCache = new LRUCache(1000), COMPONENT_RENDER_CACHE_BYTES = 33554432;
|
|
38
|
+
const componentsCache = new LRUCache(500), componentResolutionCache = new LRUCache(1000), userComponentFileCache = new LRUCache(2000), realDirCache = new LRUCache(500), COMPONENT_RENDER_CACHE_BYTES = 33554432;
|
|
39
39
|
let appliedComponentRenderCacheBytes = COMPONENT_RENDER_CACHE_BYTES;
|
|
40
40
|
function applyComponentRenderCacheBudget(options) {
|
|
41
41
|
const configured = options.componentRenderCacheBytes;
|
|
@@ -493,23 +493,33 @@ export async function userComponentFileExists(componentPath, componentsDir, pare
|
|
|
493
493
|
push(options.fallbackComponentsDir);
|
|
494
494
|
if (baseName.startsWith("./") || baseName.startsWith("../"))
|
|
495
495
|
return fileExists(path.resolve(path.dirname(parentFilePath), `${baseName}.stx`));
|
|
496
|
-
const ownComponentsDir = realDir(path.resolve(import.meta.dir, "components"));
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
for (const
|
|
502
|
-
if (
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
496
|
+
const ownComponentsDir = realDir(path.resolve(import.meta.dir, "components")), resolvedDirs = searchDirs.map((dir) => path.isAbsolute(dir) ? dir : path.resolve(resolveBase, dir)), key = `${variants.join("\x00")}\x00\x00${resolvedDirs.join("\x00")}`, known = userComponentFileCache.get(key);
|
|
497
|
+
if (known !== void 0)
|
|
498
|
+
return known;
|
|
499
|
+
let found = !1;
|
|
500
|
+
search:
|
|
501
|
+
for (const resolvedDir of resolvedDirs) {
|
|
502
|
+
if (realDir(resolvedDir) === ownComponentsDir)
|
|
503
|
+
continue;
|
|
504
|
+
for (const variant of variants)
|
|
505
|
+
if (await fileExists(path.join(resolvedDir, variant))) {
|
|
506
|
+
found = !0;
|
|
507
|
+
break search;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
userComponentFileCache.set(key, found);
|
|
511
|
+
return found;
|
|
506
512
|
}
|
|
507
513
|
function realDir(dir) {
|
|
514
|
+
const known = realDirCache.get(dir);
|
|
515
|
+
if (known !== void 0)
|
|
516
|
+
return known;
|
|
517
|
+
let real = dir;
|
|
508
518
|
try {
|
|
509
|
-
|
|
510
|
-
} catch {
|
|
511
|
-
|
|
512
|
-
|
|
519
|
+
real = fs.realpathSync(dir);
|
|
520
|
+
} catch {}
|
|
521
|
+
realDirCache.set(dir, real);
|
|
522
|
+
return real;
|
|
513
523
|
}
|
|
514
524
|
export function isHydrateTrigger(trigger) {
|
|
515
525
|
return trigger === "visible" || trigger === "idle" || trigger === "interaction" || trigger.startsWith("media:");
|
|
@@ -1242,6 +1252,8 @@ ${colors.dim}${context}${colors.reset}
|
|
|
1242
1252
|
export function clearComponentCache() {
|
|
1243
1253
|
componentsCache.clear();
|
|
1244
1254
|
componentResolutionCache.clear();
|
|
1255
|
+
userComponentFileCache.clear();
|
|
1256
|
+
realDirCache.clear();
|
|
1245
1257
|
componentRenderCache.clear();
|
|
1246
1258
|
}
|
|
1247
1259
|
export function getComponentCacheStats() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.455",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -122,12 +122,12 @@
|
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@stacksjs/ts-css": "^0.3.2",
|
|
124
124
|
"@stacksjs/clapp": "^0.2.16",
|
|
125
|
-
"@stacksjs/desktop": "0.2.
|
|
126
|
-
"@stacksjs/sanitizer": "0.2.
|
|
125
|
+
"@stacksjs/desktop": "0.2.455",
|
|
126
|
+
"@stacksjs/sanitizer": "0.2.455",
|
|
127
127
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
128
|
-
"bun-plugin-stx": "0.2.
|
|
128
|
+
"bun-plugin-stx": "0.2.455",
|
|
129
129
|
"bunfig": "^0.15.19",
|
|
130
|
-
"stx-router": "0.2.
|
|
130
|
+
"stx-router": "0.2.455",
|
|
131
131
|
"ts-broadcasting": "^0.0.11",
|
|
132
132
|
"ts-images": "^0.2.22",
|
|
133
133
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-14x69rt4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Yl,ho,Ea,Zl,Ql,eu,tu,nu,Ta,_a,ru,su,ou,iu}from"./chunk-3nydw825.js";import"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{Ea as SUSPENSE_RESOLVER_RUNTIME,ho as buildSuspenseResolveScript,nu as createStreamRenderer,eu as extractStreamBoundaries,iu as generateHydrationRuntime,_a as islandDirective,su as processSectionDirectives,Ql as processStreamDirectives,ru as registerStreamingDirectives,Zl as renderStreamingPage,Yl as streamTemplate,tu as streamTemplateSimple,ou as streamToResponse,Ta as streamingSuspenseDirective};
|
package/dist/chunk-1kmd0g1k.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{V,ae}from"./chunk-nrp8qg9j.js";import{le,S,Ke}from"./chunk-jwpcck1b.js";import{Ze,X,xe}from"./chunk-s59r34p5.js";import{_e,ne,C,re,ao,xr,co,Pt}from"./chunk-9zbjk8pg.js";import{Vr}from"./chunk-qbhbe9cw.js";import{It}from"./chunk-rdq113p4.js";import H from"zlib";import{promisify as Y}from"util";var Q=Y(H.brotliCompress),Z=Y(H.gzip),K=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],ee=["text/event-stream","multipart/x-mixed-replace"],te=1024;function se(t){if(!t)return!1;let e=t.toLowerCase();if(ee.some((i)=>e.startsWith(i)))return!1;return K.some((i)=>e.startsWith(i))}function oe(t){let e=new Map;for(let i of t.split(",")){let[s,...c]=i.trim().split(";"),l=s.trim().toLowerCase();if(!l)continue;let m=1;for(let f of c){let x=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(f);if(!x)continue;let g=Number.parseFloat(x[1]);if(Number.isFinite(g))m=g}e.set(l,m)}return e}function ie(t){if(!t)return null;let e=oe(t),i=e.get("*"),s=(c)=>e.get(c)??i??0;if(s("br")>0)return"br";if(s("gzip")>0)return"gzip";return null}async function At(t,e,i={}){if(e.headers.get("content-encoding"))return e;if(e.status===204||e.status===304||!e.body)return e;if(!se(e.headers.get("content-type")))return e;let s=ie(t.headers.get("accept-encoding"));if(!s)return e;let c;try{c=new Uint8Array(await e.arrayBuffer())}catch{return e}let l=()=>new Response(c,{status:e.status,statusText:e.statusText,headers:q(e.headers)});if(c.length<(i.threshold??te))return l();try{let m=s==="br"?await Q(c,{params:{[H.constants.BROTLI_PARAM_QUALITY]:i.quality??5,[H.constants.BROTLI_PARAM_SIZE_HINT]:c.length}}):await Z(c);if(m.length>=c.length)return l();let f=q(e.headers);return f.set("Content-Encoding",s),f.set("Content-Length",String(m.length)),new Response(m,{status:e.status,statusText:e.statusText,headers:f})}catch{return l()}}function q(t){let e=new Headers(t),i=e.get("Vary");if(!i)return e.set("Vary","Accept-Encoding"),e;if(!i.split(",").some((c)=>c.trim().toLowerCase()==="accept-encoding"))e.set("Vary",`${i}, Accept-Encoding`);return e}import J from"fs";import M from"path";var{serve:ce}=globalThis.Bun;class G{now;entries=new V(1000,{maxBytes:33554432,sizeOf:(t)=>t.body.byteLength+JSON.stringify(t.headers).length*2});pending=new Map;generation=0;constructor(t=Date.now){this.now=t}invalidate(t){this.generation++,this.pending.clear();for(let e of Array.from(this.entries.keys()))if(t===void 0||this.entries.get(e)?.path===t)this.entries.delete(e)}async respond(t,e,i){let s,c=async()=>{let r=s??await i();return r.headers.set("Cache-Control","private, no-store"),r.headers.set("Vary",C(r.headers.get("Vary")).Vary),r};if(!e||t.method!=="GET"||t.headers.has("Cookie")||t.headers.has("Authorization")||t.headers.has("Range"))return c();let l=new URL(t.url),m=`${l.origin}${l.pathname}${l.search}|${ne(t)?"fragment":"document"}`,f=this.entries.get(m),x=(r)=>{let T=new Headers(r.headers);return T.set("Cache-Control","private, no-store"),T.set("Age",String(Math.max(0,Math.floor((this.now()-r.created)/1000)))),new Response(r.body.slice(0),{headers:T})},g=f?(this.now()-f.created)/1000:1/0;if(f&&g<e.maxAge)return x(f);let b=this.generation,O=async()=>{let r=await i();s=r;let T=(r.headers.get("Vary")??"").toLowerCase().split(",").map((R)=>R.trim()).filter(Boolean);if(r.status!==200||r.headers.has("Set-Cookie")||/(?:private|no-store|no-cache)/i.test(r.headers.get("Cache-Control")??"")||T.some((R)=>R!=="x-stx-router"&&R!=="accept-encoding"))return null;let L=await r.clone().arrayBuffer();if(L.byteLength>1048576)return null;r.headers.set("Vary",C(r.headers.get("Vary")).Vary);let n={body:L,headers:Array.from(r.headers.entries()),created:this.now(),path:l.pathname};if(this.generation===b)this.entries.set(m,n);return n},v=this.pending.get(m);if(!v){if(this.pending.size>=1000)return c();v=O().finally(()=>{if(this.pending.get(m)===v)this.pending.delete(m)}),this.pending.set(m,v)}if(f&&g<e.maxAge+(e.swr??0))return v.catch(()=>{}),x(f);let E=await v;return E?x(E):c()}}var pe={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function al(t={}){let e=M.resolve(t.outputDir||".output"),i=t.port??3000,s=ao(e);if(!s)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${s.routes.length} routes...`);let c=It(s.routeRules),l=new G,m=Vr(e,s.apiRoutes??[]),f=Bun.file(M.join(e,"server/runtime-config.json")),x=t.runtimeConfig??(await f.exists()?await f.json():void 0),g=x?S(x):void 0,b=new Map,O=new Map,v=new Map,E=new Map;for(let n of s.routes)try{let R=M.join(e,n.compiledPath),o=JSON.parse(await Bun.file(R).text());if(g)o.html=Ke(o.html,g);b.set(n.pattern,o),v.set(n.pattern,xe(o.html)),E.set(n.pattern,ae(o.html));let _=M.join(e,n.fragmentPath);if(await Bun.file(_).exists()){let A=await Bun.file(_).text();O.set(n.pattern,g?Ke(A,g):A)}}catch(R){console.warn(`[stx] Failed to load route ${n.pattern}:`,R)}let r=new Map,T=[];for(let n of s.routes)if(n.hasParams){let{regex:R,params:o}=X(n.pattern,{page:!0});T.push({regex:R,route:n,paramNames:o})}else r.set(n.pattern,n);let L=ce({port:i,async fetch(n){return At(n,await le(g??S(),async()=>{let o=new URL(n.url).pathname;if(t.onRequest){let p=await t.onRequest(n);if(p)return p}if(t.apiRouter){let p=await t.apiRouter.handleRequest(n);if(p.status!==404)return p}if(t.apiRoutes?.[o])return t.apiRoutes[o](n);let _=await m(n);if(_)return _;if((n.method==="GET"||n.method==="HEAD")&&o!=="/"){let p=M.resolve(e,"public"),d;try{d=decodeURIComponent(o)}catch{d=o}if(!d.includes("\x00")){let u=M.resolve(p,`.${d}`);if(u===p||u.startsWith(`${p}${M.sep}`))try{if(J.existsSync(u)&&J.statSync(u).isFile()){let h=M.extname(u).toLowerCase(),j=pe[h]||"application/octet-stream",B=o.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(o);return new Response(Bun.file(u),{headers:{"Content-Type":j,"Cache-Control":B?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let A=ne(n),y=null,U={};if(y=r.get(o)||null,!y)for(let{regex:p,route:d,paramNames:u}of T){let a=o.match(p);if(a){y=d,u.forEach((h,j)=>{U[h]=a[j+1]});break}}if(!y){let p=Ze(o)?null:r.get("/404")||null;if(p){let d=b.get(p.pattern);if(d)return new Response(d.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain; charset=utf-8"}})}let k=c(o),W=Object.keys(k).length>0;return l.respond(n,k.cache,async()=>{let p=b.get(y.pattern);if(A&&n.method==="GET"&&p&&!p.hasServerScripts&&Object.keys(p.placeholders).length===0){let a=O.get(y.pattern);if(a){let h=v.get(y.pattern);return new Response(a,{status:p.status??200,headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...E.has(y.pattern)?{"X-STX-Runtime":E.get(y.pattern)?"true":"false"}:{},...h?{"X-STX-Layout":h.layout,"X-STX-Layout-Group":h.group}:{},...C(),...k.cache?{}:{"Cache-Control":_e}}})}}let d=xr(n.method),u=b.get(y.pattern);if(!u){let a=r.get("/500")||null;if(a){let h=b.get(a.pattern);if(h)return new Response(h.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(y.prerendered&&d)return new Response("Prerendered pages do not accept actions",{status:405,headers:{Allow:"GET, HEAD"}});if(!d&&!u.hasServerScripts&&Object.keys(u.placeholders).length===0)return new Response(u.html,{status:u.status??200,headers:{"Content-Type":"text/html",...C(),"Cache-Control":"public, max-age=60"}});try{let{html:a,boundaries:h,redirect:j,cookies:B,status:I,headers:z}=await Pt(u,{params:U,request:n,method:n.method,__stx_strict_hydration:W,__stx_runtime_config:g});if(j)return co(j,B,z);if(h&&h.length>0){let{renderStreamingPage:P,streamToResponse:D}=await import("./chunk-14x69rt4.js"),N=new Headers({...C(),...z,"Cache-Control":"private, no-store"});for(let F of B??[])N.append("Set-Cookie",F);if(A&&!d){let F=xe(a);N.set("X-STX-Fragment","true"),N.set("X-STX-Runtime",ae(a)?"true":"false"),N.set("X-STX-Layout",F.layout),N.set("X-STX-Layout-Group",F.group)}return D(P(A&&!d?re(a,s.routerContainer||"main"):a,h,{timeoutMs:30000}),{status:I??u.status??200,headers:N})}let w=new Headers({"Content-Type":"text/html",...C(),...k.cache?{}:{"Cache-Control":"private, no-store"}});for(let P of B??[])w.append("Set-Cookie",P);for(let[P,D]of Object.entries(z??{}))w.set(P,D);if(w.set("Vary",C(w.get("Vary")).Vary),A&&!d){let P=xe(a);return w.set("X-STX-Fragment","true"),w.set("X-STX-Runtime",ae(a)?"true":"false"),w.set("X-STX-Layout",P.layout),w.set("X-STX-Layout-Group",P.group),new Response(re(a,s.routerContainer||"main"),{status:I??u.status??200,headers:w})}return new Response(a,{status:I??u.status??200,headers:w})}catch(a){if(console.error(`[stx] Hydration error for ${o}:`,a),W)return new Response("Internal Server Error",{status:500});return new Response(u.html,{headers:{"Content-Type":"text/html"}})}})}))}});return console.log(`[stx] Production server running at http://localhost:${L.port}`),console.log(`[stx] Serving ${s.routes.length} routes (${b.size} pre-loaded)`),{port:L.port,stop:()=>{l.invalidate(),L.stop()},invalidate:(n)=>l.invalidate(n)}}
|
|
3
|
-
export{At,al};
|
package/dist/chunk-3wezvz6m.js
DELETED
package/dist/chunk-5402rpwg.js
DELETED
package/dist/chunk-58ymq1h4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ul,Wl}from"./chunk-ph6xg67j.js";import"./chunk-6sw7sxh2.js";import"./chunk-qbhbe9cw.js";import"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{Wl as clearStoreCache,Ul as getStoreScript};
|
package/dist/chunk-5rtbs8zv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{kt,is,Yo,fc}from"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{fc as declareBareLoopHead,kt as parseLoopBinding,Yo as processLoops,is as reportDeferredLoopWarnings};
|
package/dist/chunk-5tx1wqns.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{mr,Xs,vn,hr,yr,Rt,lt,Gs,xn,Sn,br,wr,Fc,zc,Te}from"./chunk-fmj4xvqm.js";export{Te as DeployError,Xs as calculateSha1,vn as collectDeployFiles,Sn as createDefaultNetlifyConfig,hr as createFileManifest,mr as createNetlifyClient,Fc as deploy,xn as detectProjectConfig,yr as filterRequiredFiles,Rt as formatSize,Gs as generateNetlifyToml,lt as getTotalSize,wr as hasNetlifyConfig,zc as initNetlify,br as writeNetlifyConfig};
|
package/dist/chunk-6fw3rfcj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ie,Ma,Oo,ft,gt,mu,Mo,mt,Jt,Na,La,ja,Ba,ht,Fa}from"./chunk-6sw7sxh2.js";import"./chunk-qbhbe9cw.js";import"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{Jt as MODULE_SPECIFIER_PREFIX,ht as bundleClientScript,gt as clearBundleFailures,ie as clientBundleDependencies,ft as getBundleFailures,mt as hasUserImports,La as normalizeRegistrySpecifiers,Ba as queueClientBundleBuild,Oo as recordBundleFailure,Na as registryIdForPath,Mo as resolveBundlerFallback,ja as rewriteRegistryImports,mu as setBundlerFallbackMode,Ma as shouldLogBundlerDiagnostics,Fa as tempBuildName};
|
package/dist/chunk-6nfecsbt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{al}from"./chunk-1kmd0g1k.js";import"./chunk-9zbjk8pg.js";import"./chunk-qbhbe9cw.js";import"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{al as startProductionServer};
|
package/dist/chunk-6sw7sxh2.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{y,Me,I,Yt,o,T}from"./chunk-nrp8qg9j.js";import{Ur}from"./chunk-qbhbe9cw.js";import{s,be}from"./chunk-56rk985x.js";import{a}from"./chunk-90562q79.js";import m from"path";import j from"fs";function pe(e){if(!e||typeof e!=="object")return!1;let t=e;return typeof t.message==="string"&&(t.name==="BuildMessage"||t.name==="ResolveMessage"||("position"in t))}function fe(e){if(e&&typeof e==="object"&&Array.isArray(e.errors))return e.errors;return[e]}function J(e,t){let r=[];for(let l of fe(e)){if(pe(l)){let u=l.position||void 0;r.push({file:t||u?.file,line:u?.line,column:u?.column,message:l.message??"",lineText:u?.lineText});continue}r.push({file:t,message:l instanceof Error?l.message:String(l)})}return r}function De(e,t){return J(e,t).map((r)=>{let l=r.file?`${r.file}${r.line?`:${r.line}${r.column?`:${r.column}`:""}`:""}`:"",u=r.lineText?`
|
|
3
|
-
${r.lineText.trim()}`:"";return l?`${l}: ${r.message}${u}`:`${r.message}${u}`}).join(`
|
|
4
|
-
`)}var me=10;function P(e,t,r){return/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/.test(m.basename(e))||Ur(e,t,r)}var re=1,se=new Map,W=600,ge=100,G=new Map;async function he(e){let t=G.get(e)??0;if(t>0&&t<ge){G.set(e,t+1);return}G.set(e,1);try{let r=(await j.promises.readdir(e)).filter((p)=>p.endsWith(".js"));if(r.length<=W)return;let u=(await Promise.all(r.map(async(p)=>{try{return{name:p,at:(await j.promises.stat(m.join(e,p))).mtimeMs}}catch{return null}}))).filter((p)=>p!==null);u.sort((p,d)=>d.at-p.at);for(let p of u.slice(W)){let d=p.name.slice(0,-3);await j.promises.rm(m.join(e,`${d}.js`),{force:!0}),await j.promises.rm(m.join(e,`${d}.deps.json`),{force:!0})}A("pruned bundle cache to",W,"entries")}catch{}}function ie(e){return se.get(e)??[]}function q(e,t){if(e)se.set(e,t)}function Ma(e=process.env){return e.STX_DEBUG==="true"||e.STX_DEBUG==="1"}function A(...e){if(Ma())console.log("[stx:bundler]",...e)}var Y=[];function Oo(e,t,r){Y.push({filePath:e||"<inline>",message:t,details:r})}function ft(){return Y.slice()}function gt(){Y.length=0}var H;function mu(e){H=e}function Mo(){if(H)return H;try{let e=T.strict;return typeof e==="object"&&e!==null?e.bundlerFallback??"warn":"warn"}catch{return"warn"}}var Z=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function mt(e){let t=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,r;while((r=t.exec(e))!==null){let u=r[1];if(!Z.some((d)=>d.test(u)))return A("detected user import:",u),!0}let l=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while((r=l.exec(e))!==null){let u=r[1];if(/\.css(?:\?.*)?$/.test(u))continue;if(!Z.some((d)=>d.test(u)))return A("detected side-effect import:",u),!0}return!1}var Jt="stx-module:",xe=/\.(?:[cm]?[jt]sx?|json)$/i;function Na(e,t){return m.relative(e,t).split(m.sep).join("/")}function La(e,t){if(t.size===0)return e;return e.replace(/^([ \t]*import\s+(?:[^;"']*?\s+from\s+)?)(["'])([^"']+)\2/gm,(r,l,u,p)=>{let d=t.get(p);return d&&!p.startsWith(Jt)?`${l}${u}${d}${u}`:r})}function ja(e,t){let r=0,l=(p)=>{let d=`__stxMod${r++}`,b=JSON.stringify(p);return t.push(`var ${d} = globalThis.__stxModules && globalThis.__stxModules[${b}];`,`if (${d} === undefined) throw new Error("[stx] module " + ${JSON.stringify(b)} + " is not registered on this page (#1957)");`),d},u=(p,d)=>{for(let b of p.split(",")){let M=b.trim();if(!M)continue;let c=M.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!c)continue;let n=c[1].startsWith('"')?JSON.parse(c[1]):c[1],i=c[2]??n;t.push(`var ${i} = ${d}[${JSON.stringify(n)}];`)}};return e=e.replace(/^[ \t]*import\s+([^;"']*?)\s+from\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(p,d,b)=>{let M=b.slice(Jt.length),c=l(M),n=d.trim(),i=n.match(/^([\w$]+)\s*(?:,\s*|$)/);if(i&&!n.startsWith("{")&&!n.startsWith("*"))t.push(`var ${i[1]} = ${c}.default;`),n=n.slice(i[0].length).trim();let f=n.match(/^\*\s*as\s+([\w$]+)$/);if(f)t.push(`var ${f[1]} = ${c};`);else if(n.startsWith("{"))u(n.replace(/^\{|\}$/g,""),c);return""}),e=e.replace(/^[ \t]*import\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(p,d)=>(l(d.slice(Jt.length)),"")),e}function te(e){let t=[e,`${e}.ts`,`${e}.tsx`,`${e}.js`,`${e}.mjs`,`${e}.jsx`,m.join(e,"index.ts"),m.join(e,"index.tsx"),m.join(e,"index.js"),m.join(e,"index.mjs")];for(let r of t)try{if(j.existsSync(r)&&j.statSync(r,{throwIfNoEntry:!1})?.isFile())return r}catch{}return}function $e(e,t,r,l,u,p=new Map,d){let b=(c,n,i)=>{if(P(n,e,d))return null;if(!u||c!==r||!xe.test(n))return null;try{if(!j.statSync(n,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}l.add(n);let f=`${Jt}${Na(process.cwd(),n)}`;return p.set(i,f),{path:f,external:!0}},M=(c,n)=>{let i=c===r?t:m.dirname(c),f=m.resolve(i,n);return te(f)??f};return{name:"stx-client-bundle",setup(c){if(c.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(n)=>({path:n.path,external:!0})),c.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(n)=>({path:n.path,external:!0})),c.onResolve({filter:/^\//},(n)=>{let i=te(n.path);if(i){let f=b(n.importer,i,n.path);if(f)return f;if(i!==r)l.add(i);return{path:i}}return{path:n.path,external:!0}}),c.onResolve({filter:/^\.\.?\//},(n)=>{let i=M(n.importer,n.path),f=b(n.importer,i,n.path);if(f)return f;return l.add(i),{path:i}}),c.onResolve({filter:/^[@~]\//},(n)=>{let i=m.resolve(e,n.path.slice(2)),f=[i,`${i}.ts`,`${i}.tsx`,`${i}.js`,`${i}.mjs`,`${i}.jsx`,m.join(i,"index.ts"),m.join(i,"index.tsx"),m.join(i,"index.js"),m.join(i,"index.mjs")];for(let E of f)if(j.existsSync(E)&&j.statSync(E,{throwIfNoEntry:!1})?.isFile()){let N=b(n.importer,E,n.path);if(N)return N;return A(`resolved ${n.path[0]}/ import:`,n.path,"\u2192",E),l.add(E),{path:E}}return console.warn(`[stx:bundler] could not resolve ${n.path[0]}/ import:`,n.path),{path:i}}),u)c.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(n)=>{if(n.importer!==r)return;let i=`${Jt}npm:${n.path}`;return p.set(n.path,i),{path:i,external:!0}});c.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(n)=>{if(P(n.path,e,d))throw Error(`Server-only API source cannot be imported by a client script: ${n.path}`);let i=m.extname(n.path).toLowerCase(),f=i===".json"?"json":i===".tsx"?"tsx":i===".jsx"?"jsx":i===".ts"||i===".mts"||i===".cts"?"ts":"js";if(n.path!==r)l.add(n.path);return{contents:j.readFileSync(n.path,"utf8"),loader:f}})}}}var X=new Map,U=I(64),ne=Symbol.for("stx.client-bundle-build-queue");function Ba(e){let t=globalThis,l=(t[ne]??Promise.resolve()).then(e,e);return t[ne]=l.then(()=>{return},()=>{return}),l}async function ht(e,t,r={}){let l=r.projectRoot||process.cwd(),u=(await o(l)).serverApi,p=r.minify??!1,d=r.externalizeUserModules??!0,b=r.cacheDir||a(l,"bundle-cache"),M=new Bun.CryptoHasher("md5");M.update(`${me}\x00${Me()}\x00${JSON.stringify(u??!1)}\x00${d?"registry":"inline"}\x00${e}\x00${t}`);let c=M.digest("hex").slice(0,12),n=m.join(b,`${c}.js`),i=U.get(n);if(i){if(Yt(i.files)&&i.files.every((F)=>!P(F.path,l,u))){A("memo hit:",c);let F=i.files.map((_)=>_.path);return q(t,F),r.collectInputs?.push(...F),i.code}U.delete(n),A("memo invalidated by dep change:",c)}let f=m.join(b,`${c}.deps.json`),E=Bun.file(n);if(await E.exists()){let F=Bun.file(f),_=!1,v=null;if(await F.exists())try{let D=JSON.parse(await F.text());if(D.metadataVersion!==re||!Array.isArray(D.files))_=!1;else v=D.files,_=!0;if(v&&(!Yt(v)||v.some((k)=>P(k.path,l,u))))_=!1}catch{_=!1}if(_){if(A("cache hit:",c),v)q(t,v.map((k)=>k.path)),r.collectInputs?.push(...v.map((k)=>k.path));let D=await E.text();if(v)U.set(n,{code:D,files:v});return D}A("cache invalidated by dep change:",c)}let N=X.get(c);if(N){let F=await N;if(r.collectInputs)r.collectInputs.push(...(U.get(n)?.files??[]).map((_)=>_.path));return F}let S=Ba(()=>ye(e,t,{projectRoot:l,minify:p,cacheDir:b,hash:c,cachePath:n,depsPath:f,collectInputs:r.collectInputs,externalizeUserModules:d,serverApi:u}));X.set(c,S);try{return await S}finally{X.delete(c)}}var we=0;function Fa(e){return`${e}-${process.pid}-${++we}`}async function ye(e,t,r){let{projectRoot:l,minify:u,cacheDir:p,hash:d,cachePath:b,depsPath:M,externalizeUserModules:c}=r,n=a(l,"bundle-tmp"),i=Fa(d),f=m.join(n,`${i}.ts`),E=m.join(n,"out",i);j.mkdirSync(n,{recursive:!0}),j.mkdirSync(E,{recursive:!0});let N=m.dirname(t),S=new Set,F=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,_=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,v=s(e),{depths:D,balanced:k}=be(v),V=(w)=>!k||D[w]===0,h;while((h=F.exec(v))!==null){if(h[1])continue;if(!V(h.index))continue;if(h[2])h[2].split(",").forEach((w)=>{let g=Be(w);if(g)S.add(g)});else if(h[3])S.add(h[3])}while((h=_.exec(v))!==null){if(h[1])continue;if(!V(h.index))continue;S.add(h[2])}let oe=/^[ \t]*import\s+(?!type\b)(?:(\w+)\s*(?:,\s*)?)?(?:\*\s+as\s+(\w+)|\{([^}]+)\})?\s+from\b/gm;while((h=oe.exec(v))!==null){if(!V(h.index))continue;let w=/^\s*['"]([^'"]+)['"]/.exec(e.slice(h.index+h[0].length))?.[1];if(w&&Z.some((g)=>g.test(w)))continue;if(h[1])S.add(h[1]);if(h[2])S.add(h[2]);for(let g of(h[3]??"").split(",")){let B=g.trim();if(!B||/^type\s/.test(B))continue;let L=/\bas\s+(\w+)\s*$/.exec(B)?.[1]??/^\w+$/.exec(B)?.[0];if(L)S.add(L)}}for(let w of v.matchAll(/\bexport\s*\{([^}]+)\}/g))for(let g of w[1].split(",")){let B=/\bas\s+(\w+)\s*$/.exec(g)?.[1]??/^\s*(\w+)\s*$/.exec(g)?.[1];if(B)S.delete(B)}let le=S.size>0?`
|
|
5
|
-
export { ${[...S].join(", ")} }`:"";await Bun.write(f,e+le),A("bundling:",d,"from:",m.basename(t));let Q=new Set,K=new Map;try{let w=await Bun.build({entrypoints:[f],outdir:E,target:"browser",format:"esm",minify:u,plugins:[$e(l,N,f,Q,c,K,r.serverApi)],define:{"process.env.NODE_ENV":u?'"production"':'"development"',...y()},root:l});if(!w.success){let R=w.logs.filter((C)=>C.level==="error").map((C)=>C.message).join(", ")||`Unable to bundle ${m.basename(t)}`,O=J(w.logs,t||void 0);if(console.warn("[stx:bundler] build failed:",R),Oo(t||"",R,O),Mo()==="error")throw Error(R);return e}let g="";for(let x of w.outputs){g=await x.text();break}let B=[];for(let x of g.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let R of x[1].split(",")){let O=R.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(O){B.push([O[2],O[1]]);continue}let C=R.trim();if(/^[A-Za-z_$][\w$]*$/.test(C))B.push([C,C])}let L=[];g=ja(La(g,K),L);let ae=g.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];g=g.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let ee=`__stxBundle_${d}`,ce=B.map(([x,R])=>`${JSON.stringify(x)}: ${R}`).join(", "),ue=B.map(([x])=>`var ${x} = undefined;`).join(`
|
|
6
|
-
`),de=B.map(([x])=>`${x} = ${ee}[${JSON.stringify(x)}];`).join(`
|
|
7
|
-
`);if(g=`${ae.join(`
|
|
8
|
-
`)}
|
|
9
|
-
${ue}
|
|
10
|
-
var ${ee} = (function() {
|
|
11
|
-
${L.join(`
|
|
12
|
-
`)}
|
|
13
|
-
${g}
|
|
14
|
-
return { ${ce} };
|
|
15
|
-
})();
|
|
16
|
-
${de}`.trim(),A("bundled:",d,"output:",g.length,"bytes"),S.size>0&&B.length===0)return console.warn(`[stx:bundler] dropped every binding for ${m.basename(t)} (${d}); serving the unbundled source and not caching this result`),e;j.mkdirSync(p,{recursive:!0}),await Bun.write(b,g);let z=Array.from(Q).map((x)=>{try{return{path:x,mtimeMs:j.statSync(x).mtimeMs}}catch{return null}}).filter((x)=>x!==null);return await Bun.write(M,JSON.stringify({metadataVersion:re,files:z})),q(t,z.map((x)=>x.path)),r.collectInputs?.push(...z.map((x)=>x.path)),U.set(b,{code:g,files:z}),await he(p),g}catch(w){let g=J(w,t||void 0),B=De(w,t||void 0);if(console.warn(`[stx:bundler] error: ${B}`),Oo(t||"",B,g),Mo()==="error")throw w;return e}finally{try{j.rmSync(f,{force:!0}),j.rmSync(E,{recursive:!0,force:!0})}catch{}}}function Be(e){let t=e.trim();if(!t)return null;let r=t.indexOf("=");if(r!==-1)t=t.slice(0,r).trim();let l=t.indexOf(":");if(l!==-1)t=t.slice(l+1).trim();if(t.startsWith("..."))t=t.slice(3).trim();return/^[A-Za-z_$][\w$]*$/.test(t)?t:null}
|
|
17
|
-
export{De,ie,Ma,Oo,ft,gt,mu,Mo,mt,Jt,Na,La,ja,Ba,ht,Fa};
|
package/dist/chunk-7qbv0xh6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{il}from"./chunk-d1xbamr1.js";import"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{il as buildApp};
|
package/dist/chunk-7vdsd9rn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{L,j,B,Dt,G,se,Cn,Gi,Re,ut,Ot,Mt,Nt,F,Lt,jt,$n}from"./chunk-g3h7j2n7.js";export{j as DEFAULT_FORMATS,B as DEFAULT_QUALITY,L as DEFAULT_WIDTHS,$n as ImageProcessingError,jt as formatSize,ut as generateSizes,Re as generateSrcSet,Ot as getFallbackVariant,Cn as getImageMetadata,F as getMimeType,Lt as getTotalSize,Mt as groupVariantsByFormat,G as isImageBackendAvailable,Nt as isImageFile,Dt as isSharpAvailable,se as processImage,Gi as resizeAndConvert};
|
package/dist/chunk-8gk34047.js
DELETED
package/dist/chunk-8nsfkr5n.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{kr,Cr,$r,Qi,ea,ta,uo,na,ra}from"./chunk-19h1j59a.js";export{kr as ImageProcessorCache,uo as applyTransformations,Qi as clearImageCache,na as generateResponsiveVariants,ra as generateSrcset,Cr as getCachedImageResult,ta as optimizeImage,ea as processImage,$r as setCachedImageResult};
|
package/dist/chunk-90562q79.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import i from"path";var Ct=".stx",o="STX_DIR",e=null;function bi(t){e=t?.trim()||null}function sn(){return process.env[o]?.trim()||e||Ct}function a(t=process.cwd(),...n){let r=sn();return i.isAbsolute(r)?i.join(r,...n):i.join(t,r,...n)}function on(t){if(!t||i.isAbsolute(t))return t;let n=t.replace(/\\/g,"/");if(n!==Ct&&!n.startsWith(`${Ct}/`))return t;let r=n.slice(Ct.length+1);return r?i.join(sn(),r):sn()}
|
|
3
|
-
export{Ct,bi,sn,a,on};
|
package/dist/chunk-a1dggchm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pe,Ut,ql}from"./chunk-2428rqy1.js";import{z,En,Wt,Or,Mr,Tn,Kl,Xl,Gl,qt,Kt,Nr,_n,Jl}from"./chunk-149r1q6c.js";import"./chunk-afhkvj3k.js";export{Or as batch,ql as default,En as derived,Wt as effect,Pe as generateSignalsRuntime,Ut as generateSignalsRuntimeDev,Kt as isDerived,qt as isSignal,Tn as onDestroy,Mr as onMount,_n as peek,Gl as pendingLifecycleCounts,Xl as runDestroyCallbacks,Kl as runMountCallbacks,z as state,Nr as untrack,Jl as useOptimistic};
|
package/dist/chunk-a1kv42kp.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kc}from"./chunk-z68rb7qp.js";import"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{Kc as startInteractive};
|
package/dist/chunk-a5695s8k.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ss,ks,Cs,$s,Jn,Yn,zu,Hu,Vu,Uu,Zn,Wu}from"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";export{Wu as generateDefaultRobotsTxt,Zn as generateRobotsTxt,Hu as generateSitemap,Vu as generateSitemapIndex,$s as injectSeoTags,Jn as metaDirective,Ss as processMetaDirectives,Cs as processSeoDirective,ks as processStructuredData,zu as registerSeoDirectives,Uu as scanForSitemapEntries,Yn as structuredDataDirective};
|
package/dist/chunk-avjgetkh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mu,rc,ts,ns,Wo,qo,rs,ss,jn,sc,Ko,Xo,oc,ze}from"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{Mu as clearScriptScanCache,rs as convertServerLoopAttributesToDirectives,Wo as convertSignalDirectivesToAttributes,ss as convertSignalLoopsToAttributes,sc as extractExports,Xo as findMarkupIndexOutsideScripts,ns as hasSignalsSyntax,ts as parseLoopExpression,qo as preEvalLiteralReactiveIfs,jn as processScriptSetup,Ko as processSignals,oc as rewriteStxImportSpecifiers,rc as scanScriptTags,ze as stripStxRuntimeImports};
|
package/dist/chunk-bcgth8qf.js
DELETED
package/dist/chunk-bemksdz5.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{m}from"./chunk-afhkvj3k.js";import{R,Tt}from"./chunk-axydabse.js";import{y,ze,N,o}from"./chunk-nrp8qg9j.js";import{ie,mt,ht}from"./chunk-6sw7sxh2.js";import{Ae,Vt,J}from"./chunk-j7zywbq0.js";import _ from"path";var g=new Map,v=new Map,P=["composables","functions"];function E(n){let t=_.basename(n,".ts");return t==="index"||t==="types"||n.endsWith(".d.ts")}async function G(n){if(n)return _.resolve(n);let t=`<default>:${process.cwd()}`,l=v.get(t);if(l!==void 0)return l;let s=await T();if(s!==null)v.set(t,s);return s}async function T(){let n=await o(),t=n.root||process.cwd(),l=n.composablesDir;if(l)return _.resolve(t,l);for(let s of P){let i=_.resolve(t,s);try{let c=new Bun.Glob("**/*.ts");for await(let a of c.scan({cwd:i,absolute:!0}))if(!E(a))return i}catch{}}return null}async function j(n){let t=Array.isArray(n)?n:n?[_.resolve(n)]:(await o())._layerComposableDirs??[await G()].filter((s)=>!!s),l=new Map;for(let s of t){let i=new Bun.Glob("**/*.ts");try{for await(let c of i.scan({cwd:s,absolute:!0})){let a=_.relative(s,c);if(!E(c)&&!l.has(a))l.set(a,c)}}catch{}}return{key:t.join("\x00"),files:[...l.values()].sort()}}async function Dr(n){let{files:t}=await j(n),l=N({loader:"ts",target:"browser",define:y()}),s=[];for(let i of t)try{let c=await Bun.file(i).text(),a=l.scan(c).exports.filter((d)=>d!=="default");if(a.length>0)s.push({file:i,names:a})}catch{}return s}function z(n,t){return new RegExp(`\\b${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(n)}function U(n,t,l){let s=new Map;for(let{file:d,names:f}of n)for(let u of f)if(!s.has(u))s.set(u,d);let i=(d)=>{let f=[];for(let[u,w]of s)if(z(d,u))f.push(w);return f},c=new Set,a=l.flatMap(i);while(a.length>0){let d=[];for(let f of a){if(c.has(f))continue;c.add(f);for(let u of i(t.get(f)??""))if(!c.has(u))d.push(u)}a=d}return c}async function hl(n,t,l){let{key:s,files:i}=await j(n);if(!s)return null;let c=()=>[...new Set([...i,...i.flatMap((e)=>ie(e))])],a=Ae(c());if(i.length===0)return J(g,s,a,""),null;i.sort();let d=N({loader:"ts",target:"browser",define:y()}),f=new Map,u=[];for(let e of i)try{let r=await Bun.file(e).text();f.set(e,r);let h=d.scan(r).exports.filter((p)=>p!=="default");if(h.length>0)u.push({file:e,names:h})}catch{f.set(e,"")}let w=t===void 0?new Set(i):U(u,f,l?[t,...l]:[t]);if(w.size===0)return null;let B=i.filter((e)=>w.has(e)),x=`${s}\x00${B.join("\x00")}`,M=Vt(g,x,a);if(M!==void 0)return M||null;let S=[],b=new Set,D=new Set;for(let e of B)try{let r=f.get(e)??await Bun.file(e).text(),h=_.basename(e,".ts");for(let p of r.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(p[1])D.add(p[1]);try{for(let p of d.scan(r).exports)if(p!=="default")b.add(p)}catch{}if(r=R(r),mt(r))r=await ht(r,e,{projectRoot:process.cwd(),externalizeUserModules:!1}),r=ze(r);r=Tt(r),r=r.replace(/^export\s+(default\s+)?/gm,""),r=d.transformSync(r),S.push(`// Composable: ${h}
|
|
3
|
-
${r.trim()}`)}catch(r){console.warn(`[stx] Failed to load composable ${e}:`,r)}if(S.length===0||b.size===0)return J(g,x,a,""),null;let F=[...b].map((e)=>` try { if (!(${JSON.stringify(e)} in __c)) __c[${JSON.stringify(e)}] = ${e}; } catch (e) {}`).join(`
|
|
4
|
-
`),k=JSON.stringify([...b]),C=S.join(`
|
|
5
|
-
|
|
6
|
-
`),O=m.filter((e)=>!D.has(e)&&new RegExp(`\\b${e}\\b`).test(C)).map((e)=>`var ${e} = __stx[${JSON.stringify(e)}];`).join(`
|
|
7
|
-
`),I=JSON.stringify(new Bun.CryptoHasher("md5").update(`${k}\x00${C}`).digest("hex").slice(0,12)),A=`;(function(){
|
|
8
|
-
var __bundles = window.__stxComposableBundles || (window.__stxComposableBundles = {});
|
|
9
|
-
if (__bundles[${I}]) return;
|
|
10
|
-
__bundles[${I}] = true;
|
|
11
|
-
var __published = window.__stxComposableGlobals || (window.__stxComposableGlobals = {});
|
|
12
|
-
window.__composables = window.__composables || {};
|
|
13
|
-
var __c = window.__composables;
|
|
14
|
-
var __stx = window.stx || {};
|
|
15
|
-
${O}
|
|
16
|
-
${C}
|
|
17
|
-
${F}
|
|
18
|
-
var __names = ${k};
|
|
19
|
-
for (var __i = 0; __i < __names.length; __i++) {
|
|
20
|
-
var __n = __names[__i];
|
|
21
|
-
if (!(__n in __c) || __published[__n]) continue;
|
|
22
|
-
var __takenByBuiltin = !!(window.stx && __n in window.stx);
|
|
23
|
-
if (__takenByBuiltin || __n in window) {
|
|
24
|
-
console.warn('[stx] composable "' + __n + '" is not available as a bare identifier: '
|
|
25
|
-
+ (__takenByBuiltin ? 'a built-in of that name already exists' : 'window already defines that property')
|
|
26
|
-
+ '. Rename it, or use: import { ' + __n + ' } from "@composables"');
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
window[__n] = __c[__n];
|
|
30
|
-
__published[__n] = true;
|
|
31
|
-
}
|
|
32
|
-
})();`;return a=Ae(c()),J(g,x,a,A),A}function yl(){g.clear(),v.clear()}
|
|
33
|
-
export{Dr,hl,yl};
|
package/dist/chunk-br3ktpyq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xo,So,ko,fu}from"./chunk-rbkna5rw.js";import"./chunk-vraddzkf.js";import"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{xo as buildNative,fu as default,ko as getAvailableFormats,So as getAvailableTargets};
|
package/dist/chunk-by1s70jp.js
DELETED
package/dist/chunk-cwc3p6p7.js
DELETED
package/dist/chunk-e593pr1r.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ts,qu,Ku,wi,pe,Ec,tr,Xu,Gu,Ju,Yu,Zu,Qu,ed,td,nd}from"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";export{Qu as applyHead,Xu as definePageMeta,Ts as getHead,qu as getPageMeta,pe as mergeHeadConfigs,ed as processHeadDirective,nd as processMetaDirective,td as processTitleDirective,Zu as renderBodyAttrs,Ju as renderHead,Yu as renderHtmlAttrs,Ku as resetHead,tr as seoMetaToHeadConfig,wi as useHead,Gu as usePageTitle,Ec as useSeoMeta,Gu as useTitle};
|
package/dist/chunk-e8y69gg0.js
DELETED
package/dist/chunk-eam7eann.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{In,Ha,bu,Va,wu,Ua,Dn,h,wt,he,Wa,Jr,qa,vu,W,Ka,xu,b,Su}from"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{Ka as applyFilters,wu as clearCustomFilters,Wa as clientLoopScopes,In as defaultFilters,h as escapeHtml,wt as escapeHtmlValue,b as evaluateExpression,Ua as findMustacheEnd,Va as getAllFilters,qa as interpolateScriptAttributes,Jr as interpolateScriptExpressions,vu as interpolateScriptsInTemplate,W as processExpressions,Ha as registerFilter,bu as registerFilters,Dn as replaceInterpolations,xu as resetRejectedExpressionWarnings,Su as unescapeHtml,he as usesSignalsInScript};
|
package/dist/chunk-ej7m406s.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Me,Xa,ku,Cu,$u,Eu,Ga,Ja,Tu,_u,zo,Ru,Zt,Qt,On}from"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{Eu as __setSignalsGeneratorsForTest,Me as cacheEngineFingerprint,Qt as cacheTemplate,Zt as checkCache,Ru as clearDevCaches,Ja as getCachedRouterScript,Ga as getCachedSignalsRuntime,Tu as getServeClientAsset,zo as getServeModuleBundle,On as hashFilePath,Cu as invalidateFileCache,$u as invalidateFileCacheByDir,ku as readFileCached,_u as registerServeModuleBundle,Xa as templateCache};
|
package/dist/chunk-es85mgdw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mi,Js,Ni,Li,Ys,ji,Bi,Fi,zi,Zs,Hi,Hc}from"./chunk-tehvry9a.js";import{eo,Xi}from"./chunk-x4ztj64h.js";import{L,j,B,Dt,G,se,Cn,Re,ut,Ot,Mt,Nt,F,Lt,jt,$n}from"./chunk-g3h7j2n7.js";import{$a}from"./chunk-7mbx7dzg.js";export{j as DEFAULT_FORMATS,B as DEFAULT_QUALITY,L as DEFAULT_WIDTHS,$n as ImageProcessingError,Li as clearImageCache,Ys as createImageDirective,Xi as createImageHandler,Bi as createImagePlugin,Hc as defaultImageConfig,jt as formatSize,Zs as generateImageManifest,ut as generateSizes,Re as generateSrcSet,Ot as getFallbackVariant,Cn as getImageMetadata,F as getMimeType,Lt as getTotalSize,Mt as groupVariantsByFormat,eo as handleImageRequest,ji as imageDirective,G as isImageBackendAvailable,Nt as isImageFile,Dt as isSharpAvailable,zi as optimizeDirectory,Fi as optimizeImage,Js as parseImageComponent,se as processImage,Ni as processImageComponents,Mi as renderImageComponent,$a as rewriteImagesWithSiblings,Hi as writeImageManifest};
|
package/dist/chunk-fa5x9zbk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{yt,zr,Hr,Vr,hu,Ur}from"./chunk-qbhbe9cw.js";import"./chunk-yx37nrgr.js";import"./chunk-jwpcck1b.js";import"./chunk-s59r34p5.js";export{Hr as buildServerApi,hu as createServerApi,yt as discoverServerApi,zr as generateApiTypes,Ur as isServerApiSource,Vr as productionApiDispatcher};
|
package/dist/chunk-fkrzsk74.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ji,ll,Yi,Zi,ul,dl}from"./chunk-47jq9j1w.js";import"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{dl as applySlots,ul as extractSlotContent,ll as parseSlotElement,Ji as parseSlots,Zi as processSlots,Yi as renderSlot};
|
package/dist/chunk-fm3k5v8s.js
DELETED
package/dist/chunk-fmc9fj4a.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Er,Tr,_r,sa,Rr,Ar,oa,Pr,Ir,po,ia}from"./chunk-b1q5sh7x.js";export{Er as VideoProcessorCache,po as analyzeVideo,sa as clearVideoCache,Ir as generateDASHManifest,Pr as generateHLSManifest,Rr as generatePoster,oa as generateSpriteSheet,Ar as generateThumbnails,Tr as getCachedVideoResult,ia as processVideo,_r as setCachedVideoResult};
|
package/dist/chunk-fn863yek.js
DELETED
package/dist/chunk-fv30avp2.js
DELETED
package/dist/chunk-gpmk4s4f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ds,Os,Ze,X,gn,or,mn,ir,ar,Tc,_c,Rc,hn,Ac,Pc,Ic,Dc,Ri,Ai,Pi,Ms,Ii,Oc,Qe,et,tt,nt,rt,st,Se,Mc}from"./chunk-s59r34p5.js";export{mn as Router,Ic as abortNavigation,or as bracketPathToRegex,Qe as clearMiddleware,Ai as createClientCookieManager,rt as createMiddlewareContext,nt as createRouteLocation,Ri as createServerCookieManager,Pi as createStorageManager,Dc as defineMiddleware,_c as defineRoute,Rc as defineRoutes,ir as findErrorPage,ar as formatRoutes,Os as generateRouteManifest,Ds as generateRouteTypes,Ii as getMiddleware,et as getMiddlewareNames,Se as getRouterScript,Mc as getRouterScriptDev,Oc as hasMiddleware,Ze as isFileRequestPath,tt as loadMiddlewareFromDirectory,gn as matchRoute,Pc as navigateTo,X as patternToRegex,Ms as registerMiddleware,Ac as resetRoutes,hn as route,st as runMiddleware,Tc as setAppUrl};
|
package/dist/chunk-hd64hz1n.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{St,ic,ac,cc,lc,uc,d,dc,os,pc,Go,Jo}from"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{St as STX_ENGINE_BINDING_NAMES,os as convertToCommonJS,Go as extractScriptFromTemplate,d as extractVariables,Jo as hasVariables,dc as isCompleteImport,uc as isMissingBindingFailure,cc as isModuleResolutionFailure,lc as isSyntaxFailure,pc as splitDeclaration,ic as stripTypeScript,ac as withoutStxReferrer};
|
package/dist/chunk-hd75916k.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pe,Ut}from"./chunk-2428rqy1.js";import{Se}from"./chunk-s59r34p5.js";import{jo,Bo,f,xt,M,Fn,zn,Hn,n,Q,A,o}from"./chunk-nrp8qg9j.js";import{S}from"./chunk-jwpcck1b.js";import{vs}from"./chunk-aem9hs8n.js";import{ln,de}from"./chunk-zqzv5jy2.js";import{yi}from"./chunk-yx37nrgr.js";import{ge,re,oo,io,Pt}from"./chunk-9zbjk8pg.js";import{yt,Hr}from"./chunk-qbhbe9cw.js";import{It}from"./chunk-rdq113p4.js";import{dt,Xt,Gt}from"./chunk-yd50awqp.js";import{createHash as ee}from"crypto";function J(i){return ee("sha256").update(i).digest("hex").slice(0,8)}function U(i=!1){let l=i?Ut():Pe(),a=J(l);return{content:l,filename:`runtime.${a}.js`,hash:a}}function V(){let i=Se(),l=J(i);return{content:i,filename:`router.${l}.js`,hash:l}}import m from"fs";import c from"path";import q from"path";import{createHash as te}from"crypto";function se(i={}){let l=new Set;return{context:new Proxy(i,{get(r,e){if(e in r)return r[e];if(typeof e==="string"&&!e.startsWith("__"))l.add(e);return},has(r,e){if(e in r)return!0;if(typeof e==="string"&&!e.startsWith("__"))l.add(e);return!1}}),accessedKeys:l}}async function X(i,l,a={}){let r=q.resolve(i),e=await Bun.file(r).text(),_=te("sha256").update(e).digest("hex").slice(0,16);jo();let R={};try{R=await o(a.configDir)}catch{}let y=[],d=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,g;while((g=d.exec(e))!==null){let v=g[1];if(/\bserver\b/.test(v))y.push(g[2])}let u=new Set(y.flatMap((v)=>Q(v))),{context:w}=se({__filename:r,__dirname:q.dirname(r),__stx_serverDeclared:u}),C=new Set,P={...A,...R,...a,buildMode:"compile",strict:!1},b=await n(e,w,r,P,C),T=ge(b),B=Bo();return{route:l,sourceFile:i,html:b,fragment:T,placeholders:B,hasServerScripts:y.length>0,serverScriptContent:y,dependencies:Array.from(C),contentHash:_,status:xt(e),streamTemplates:w.__streamTemplates}}var ne=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function Z(i,l){let a=0,r=0;if(!m.existsSync(i))return{copied:a,bytes:r};m.mkdirSync(l,{recursive:!0});function e(_,R){let y=m.readdirSync(_,{withFileTypes:!0});for(let d of y){if(ne.has(d.name))continue;let g=c.join(_,d.name),u=c.join(R,d.name);if(d.isDirectory())m.mkdirSync(u,{recursive:!0}),e(g,u);else if(d.isFile()){if(m.existsSync(u))continue;m.copyFileSync(g,u),a++,r+=m.statSync(u).size}}}return e(i,l),{copied:a,bytes:r}}async function Xc(i={}){let l=Date.now(),a=c.resolve(i.root||process.cwd()),r=c.resolve(a,i.outputDir||".output");console.log("[stx build] Starting production build...");let e=await o(a),_=c.resolve(a,i.componentsDir??e.componentsDir??"components"),R=c.resolve(a,i.partialsDir??e.partialsDir??"partials"),y=c.resolve(a,i.layoutsDir??e.layoutsDir??"layouts"),d=i.publicDir??e.publicDir??"public",g=de(e.app?.head,{known:ln,source:"app.head"}),u=e.app?.colorMode,w=e.router?.container||"main",C=i.routeRules??e.routeRules??{},P=It(C),b=i.serverApi??e.serverApi,T=typeof b==="object"?b:{};if(b)yt(a,T);if(e.runtimeConfig)S(e.runtimeConfig,{});if(m.existsSync(r))m.rmSync(r,{recursive:!0});let B=[c.join(r,"public","__stx"),c.join(r,"public","assets"),c.join(r,"server","pages"),c.join(r,"server","fragments")];for(let s of B)m.mkdirSync(s,{recursive:!0});console.log("[stx build] Discovering routes...");let v=M(a,{pagesDirs:e._layerPageDirs}),Y=["components","layouts","partials"],O=v.filter((s)=>!Y.some((h)=>s.pattern.startsWith(`/${h}/`)||s.pattern===`/${h}`));console.log(`[stx build] Found ${O.length} page routes (${v.length-O.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let D=U(i.debug),x=V();await Bun.write(c.join(r,"public","__stx",D.filename),D.content),await Bun.write(c.join(r,"public","__stx",x.filename),x.content),console.log(`[stx build] Runtime: ${D.filename} (${(D.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${x.filename} (${(x.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let k=[],H=[];for(let s of O){let h=P(s.pattern),E=h.rendering==="prerender";if(E&&(s.pattern.includes(":")||s.pattern.includes("[")))throw Error(`Cannot prerender parameter route ${s.pattern}; use dynamic rendering (explicit path enumeration is not supported here)`);try{let t=await X(s.filePath,s.pattern,{configDir:a,componentsDir:_,partialsDir:R,layoutsDir:y,debug:i.debug});if(k.push(t),t.html=t.html.replace(/runtime\.__STX_HASH__\.js/g,D.filename).replace(/router\.__STX_HASH__\.js/g,x.filename),t.html=Hn(t.html,g,{bodyScripts:[`<script src="/__stx/${x.filename}"></script>`],...u&&{colorMode:u}}),u)t.html=Fn(t.html,u);if(g.htmlAttrs)t.html=zn(t.html,g.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(t.html)){let p=t.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(p&&p[1]){let W=p[1];t.html=t.html.replace(" "+W,""),t.html=t.html.replace(/<body([^>]*)>/,`<body$1 ${W}>`)}}if(t.html=t.html.replace(/<style data-css="generated">[\s\S]*?<\/style>\s*/g,""),t.html=await f(t.html),E){let p=await Pt(t,{params:{},request:new Request(`http://stx.build${s.pattern}`),method:"GET",__stx_strict_hydration:!0});if(p.redirect||p.cookies?.length||p.boundaries?.length||p.headers&&Object.keys(p.headers).length)throw Error(`Prerendered route ${s.pattern} cannot set response headers/cookies, redirect or stream`);t.html=p.html,t.status=p.status??t.status,t.hasServerScripts=!1,t.serverScriptContent=[],t.placeholders={}}t.fragment=re(t.html,w);let z=s.pattern==="/"?"index":s.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),G=c.join("server","pages",`${z}.compiled.json`),I=c.join("server","fragments",`${z}.html`);await Bun.write(c.join(r,G),JSON.stringify(t,null,2)),await Bun.write(c.join(r,I),t.fragment),H.push({pattern:s.pattern,compiledPath:G,fragmentPath:I,isDynamic:t.hasServerScripts,hasParams:s.pattern.includes(":")||s.pattern.includes("["),prerendered:E}),console.log(`[stx build] \u2713 ${s.pattern}`)}catch(t){if(Object.keys(h).length)throw t;console.error(`[stx build] \u2717 ${s.pattern}:`,t instanceof Error?t.message:t)}}let F=c.resolve(a,d);if(m.existsSync(F)){let{copied:s,bytes:h}=Z(F,c.join(r,"public"));if(s>0)console.log(`[stx build] Copied ${s} public asset${s===1?"":"s"} (${(h/1024).toFixed(1)}KB) from ${d}/`)}let N=Gt(a);if(N){let{copied:s,bytes:h}=Z(N,c.join(r,"public",Xt));if(s>0)console.log(`[stx build] Copied ${s} asset${s===1?"":"s"} (${(h/1024).toFixed(1)}KB) from ${dt}/`)}let K={runtime:D.filename,router:x.filename},j=oo(H,K,r);if(j.routeRules=C,j.routerContainer=w,b)j.apiRoutes=await Hr(a,r,T);if(e.runtimeConfig)await Bun.write(c.join(r,"server/runtime-config.json"),JSON.stringify(e.runtimeConfig)),await vs(a,e.runtimeConfig);if(e._layerGraph)await Bun.write(c.join(r,"server/layers.json"),JSON.stringify(yi(e._layerGraph),null,2));io(j,r);let L=Date.now()-l;return console.log(`
|
|
3
|
-
[stx build] Done in ${L}ms \u2014 ${k.length} pages compiled`),{pageCount:k.length,assets:K,outputDir:r,duration:L}}
|
|
4
|
-
export{Xc};
|
package/dist/chunk-hz6a476h.js
DELETED
package/dist/chunk-j7zywbq0.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import i from"fs";function Ae(e){return[...e].sort().map((n)=>{try{let t=i.statSync(n);return`${n}:${t.size}:${t.mtimeMs}`}catch{return`${n}:missing`}}).join(`
|
|
3
|
-
`)}function Vt(e,n,t){let r=e.get(n);return r!==void 0&&r.signature===t?r.value:void 0}function J(e,n,t,r){return e.set(n,{signature:t,value:r}),r}
|
|
4
|
-
export{Ae,Vt,J};
|
package/dist/chunk-jjm3754f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{H,Wr,qr,za,bt,No,Kr,Lo,yu,Ne,Xr,me}from"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import{gi,s}from"./chunk-56rk985x.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{H as BROWSER_CORE_IMPORTS,za as STX_AUTO_IMPORTS,Wr as extractAndStripCssImports,Ne as extractBridgeData,gi as findInterpolationEnd,Lo as generateAutoImportDestructuring,yu as generateBrowserAutoImportDestructuring,Xr as generateServerDataBridge,bt as injectBrowserCoreAutoImports,me as processClientScript,Kr as referencesName,qr as renderVendorStyleTags,s as stripCommentsAndLiterals,No as transformAutoImports};
|
package/dist/chunk-ktk30f6d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{tn,nc,es}from"./chunk-nrp8qg9j.js";import"./chunk-0xztxj98.js";import"./chunk-73h7qjgq.js";import"./chunk-yx37nrgr.js";import"./chunk-aem9hs8n.js";import"./chunk-jwpcck1b.js";import"./chunk-g8k5rsqq.js";import"./chunk-zqzv5jy2.js";import{ve}from"./chunk-5xj1df83.js";import"./chunk-axydabse.js";import"./chunk-afhkvj3k.js";import"./chunk-s59r34p5.js";import"./chunk-dqr5n49p.js";export{ve as freeIdentifiers,es as processComponents,nc as processESImports,tn as rendersAsElement};
|