@stacksjs/stx 0.2.701 → 0.2.704
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/{chunk-db29j1pc.js → chunk-085ahtvv.js} +1 -1
- package/dist/{chunk-pdeg77hy.js → chunk-220jxx8e.js} +1 -1
- package/dist/{chunk-0vpk16gq.js → chunk-2gzrx4ma.js} +7 -7
- package/dist/chunk-2nj9hgan.js +2 -0
- package/dist/{chunk-cq21rc0g.js → chunk-2nqt1m3m.js} +2 -2
- package/dist/{chunk-x3hw124a.js → chunk-2xtzzx00.js} +1 -1
- package/dist/chunk-3fwj83yq.js +2 -0
- package/dist/chunk-3k6k0rrj.js +2 -0
- package/dist/{chunk-zzgc9dhz.js → chunk-41s97r8a.js} +1 -1
- package/dist/{chunk-nvtk2198.js → chunk-49d8ymjf.js} +1 -1
- package/dist/{chunk-fx2y2wv7.js → chunk-4j49zf6y.js} +10 -10
- package/dist/{chunk-edjgkheg.js → chunk-4t9cggwf.js} +1 -1
- package/dist/{chunk-r6q8m9wz.js → chunk-5j5pv2yp.js} +1 -1
- package/dist/chunk-5ym5r2p6.js +2 -0
- package/dist/{chunk-vm4ab62v.js → chunk-6jvah29c.js} +1 -1
- package/dist/{chunk-a2z5emw7.js → chunk-6ws799sk.js} +1 -1
- package/dist/{chunk-0ztgcyvw.js → chunk-7defwkm1.js} +1 -1
- package/dist/{chunk-6y2vagad.js → chunk-7xv4xa3c.js} +5 -5
- package/dist/{chunk-yw4bs6fh.js → chunk-82q904k7.js} +1 -1
- package/dist/{chunk-g15vfggh.js → chunk-85j04fbh.js} +3 -3
- package/dist/chunk-8dhve9jr.js +2 -0
- package/dist/chunk-8ksv8fxp.js +2 -0
- package/dist/{chunk-55mcxp2b.js → chunk-91mv8zwk.js} +2 -2
- package/dist/{chunk-h2jbgvfs.js → chunk-9j1s520t.js} +5 -5
- package/dist/{chunk-4zsykpm6.js → chunk-9jejxz01.js} +2 -2
- package/dist/{chunk-csrahdyk.js → chunk-a7y23bhb.js} +2 -2
- package/dist/{chunk-12n3tyb2.js → chunk-ae1mpb01.js} +1 -1
- package/dist/{chunk-hc8p4hdr.js → chunk-ak7n6tan.js} +1 -1
- package/dist/{chunk-dyx9zcwy.js → chunk-argjxtx9.js} +1 -1
- package/dist/{chunk-emymxrhc.js → chunk-bh9sjtr2.js} +1 -1
- package/dist/{chunk-mpxnqpyw.js → chunk-ddw8tpdd.js} +1 -1
- package/dist/{chunk-3qtbdrfc.js → chunk-er1hq0jx.js} +1 -1
- package/dist/{chunk-kqkfs9a7.js → chunk-fts29w33.js} +3 -3
- package/dist/{chunk-6vd0vpsj.js → chunk-g31b830p.js} +1 -1
- package/dist/chunk-g4qf1r5f.js +2 -0
- package/dist/chunk-gjsmny7t.js +2 -0
- package/dist/{chunk-y9qbnvq4.js → chunk-gmceftkr.js} +1 -1
- package/dist/chunk-gnt776x9.js +2 -0
- package/dist/{chunk-fkxt007p.js → chunk-h0m8ccfk.js} +9 -9
- package/dist/chunk-ha4vb9a6.js +2 -0
- package/dist/{chunk-yft8yn6y.js → chunk-jkywbfb0.js} +2 -2
- package/dist/{chunk-r27qnema.js → chunk-jp19632h.js} +1 -1
- package/dist/{chunk-hckj9ejj.js → chunk-kw4afzfh.js} +5 -5
- package/dist/{chunk-8mpszaz7.js → chunk-m5k44pc8.js} +1 -1
- package/dist/{chunk-6r5p7p4t.js → chunk-mdnj45xm.js} +2 -2
- package/dist/{chunk-45es05ph.js → chunk-n2ema4wf.js} +2 -2
- package/dist/{chunk-avvngqyb.js → chunk-ndj868mf.js} +1 -1
- package/dist/{chunk-a51avg0f.js → chunk-pd1b2701.js} +3 -3
- package/dist/{chunk-tzvy4pms.js → chunk-qc8dad8g.js} +1 -1
- package/dist/{chunk-0h8k4jbx.js → chunk-qg2hpx3z.js} +1 -1
- package/dist/chunk-qnarcxbe.js +2 -0
- package/dist/{chunk-3e350ywf.js → chunk-qpb02n0q.js} +7 -7
- package/dist/chunk-rba5qbnv.js +2 -0
- package/dist/chunk-rdjqhj99.js +2 -0
- package/dist/{chunk-mt39bh7e.js → chunk-sphfqm8e.js} +4 -4
- package/dist/{chunk-r7m0y6wk.js → chunk-t0bn8qgj.js} +1 -1
- package/dist/{chunk-1rsfpx9h.js → chunk-t4jr8adw.js} +36 -36
- package/dist/{chunk-9qj87w6v.js → chunk-t8ezn4vq.js} +1 -1
- package/dist/{chunk-asr5yx4s.js → chunk-td2s7pz1.js} +1 -1
- package/dist/chunk-tr2qb2dw.js +2 -0
- package/dist/chunk-v8cwgw0g.js +2 -0
- package/dist/{chunk-dg3p7esg.js → chunk-vdr96n1d.js} +11 -11
- package/dist/{chunk-qzkm3ekg.js → chunk-vznwhbm8.js} +1 -1
- package/dist/{chunk-06dv852k.js → chunk-w7e28p74.js} +3 -3
- package/dist/{chunk-hbs0140f.js → chunk-xxz6bkw4.js} +1 -1
- package/dist/{chunk-7wgezbch.js → chunk-yeqszxaz.js} +4 -4
- package/dist/chunk-yg406pd5.js +2 -0
- package/dist/{chunk-meesnrhz.js → chunk-yrvctbgh.js} +2 -2
- package/dist/chunk-yyx89zxs.js +2 -0
- package/dist/chunk-z0x54ynx.js +3 -0
- package/dist/{chunk-dcqjdbkp.js → chunk-z9csfarm.js} +1 -1
- package/dist/{chunk-qe0h2e7e.js → chunk-z9j93yk8.js} +1 -1
- package/dist/chunk-zvz0k84z.js +2 -0
- package/dist/cli.js +9 -9
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/native/compiler/html-to-ir.js +16 -0
- package/dist/native/compiler/ir.d.ts +1 -0
- package/dist/native/prop-names.js +1 -0
- package/dist/native/runtime/native-host.d.ts +1 -1
- package/dist/native/runtime/native-host.js +3 -1
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +8 -8
- package/package.json +5 -5
- package/dist/chunk-2v86a093.js +0 -2
- package/dist/chunk-3sr52w0c.js +0 -2
- package/dist/chunk-3w2b2t27.js +0 -2
- package/dist/chunk-3yb6j6wb.js +0 -2
- package/dist/chunk-4fhawjhe.js +0 -2
- package/dist/chunk-5jw550wk.js +0 -2
- package/dist/chunk-84sfk1ab.js +0 -2
- package/dist/chunk-a3rhve9y.js +0 -2
- package/dist/chunk-amcsa9xc.js +0 -2
- package/dist/chunk-k2hrwk7d.js +0 -3
- package/dist/chunk-kbvtnx10.js +0 -2
- package/dist/chunk-pe086860.js +0 -2
- package/dist/chunk-pksz8dq4.js +0 -2
- package/dist/chunk-s58y73kg.js +0 -2
- package/dist/chunk-sx3gnrpe.js +0 -2
- package/dist/chunk-tmhs3hev.js +0 -2
- package/dist/chunk-vdpmppe9.js +0 -2
- package/dist/chunk-vwdy0xyz.js +0 -2
- package/dist/chunk-zfjqw81c.js +0 -2
package/dist/ssg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-n2ema4wf.js";import{y,Lc}from"./chunk-xc03cdet.js";import"./chunk-2nqt1m3m.js";import"./chunk-k7pmzreg.js";import{Et}from"./chunk-t4jr8adw.js";import"./chunk-3392k9vm.js";import"./chunk-ddw8tpdd.js";import"./chunk-2p34qf9c.js";import{wt,xt,St,kt,_t,Ct}from"./chunk-m4j9gedb.js";import{i}from"./chunk-7xv4xa3c.js";import{us}from"./chunk-p78v88ng.js";import"./chunk-fgr56q3w.js";import"./chunk-91mv8zwk.js";import{Ee,Jt,Yt}from"./chunk-sphfqm8e.js";import"./chunk-t8ezn4vq.js";import{h}from"./chunk-yeqszxaz.js";import{gt,o}from"./chunk-h0m8ccfk.js";import"./chunk-pd1b2701.js";import"./chunk-qpb02n0q.js";import"./chunk-kw4afzfh.js";import"./chunk-yrvctbgh.js";import"./chunk-bsr9wnq4.js";import{Oa,Na,Da}from"./chunk-b3sw5ykg.js";import{Kt,Wn,qn}from"./chunk-z0x54ynx.js";import{Xt}from"./chunk-220jxx8e.js";import"./chunk-cbdyns7r.js";import{q,ye}from"./chunk-9j1s520t.js";import"./chunk-vfjenjez.js";import"./chunk-7defwkm1.js";import{c}from"./chunk-93ft5jea.js";import{r,fe}from"./chunk-hkmewh5h.js";import k from"fs";import p from"path";import{createHash as Pt}from"crypto";function $t(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Dt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Rt(t){return Bun.hash(t).toString(16)}function at(t,n={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let a=new Map,s=t.replace(Dt,(e,u,f,x)=>{let m=x.trim();if(!m)return e;if(/\bdata-stx-src=/.test(f))return e;if(n.minify)m=$t(m);let b=Rt(m);if(!a.has(b))a.set(b,m);let v=n.integrity?` data-stx-integrity="sha384-${Pt("sha384").update(m).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${u}" data-stx-src="/_stx/islands/${b}.js"${v}${f}></script>`}),l=Array.from(a,([e,u])=>({hash:e,code:u}));return{html:s,chunks:l}}var It=new Set(["visible","idle"]);function ot(t){if(!t.includes("data-stx-src="))return t;let n=new Map,a=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,s;while((s=a.exec(t))!==null)n.set(s[1],s[2]);let l=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,u;while((u=e.exec(t))!==null)if(It.has(n.get(u[1])||""))l.add(u[2]);let f=t.lastIndexOf("</head>");if(l.size===0||f===-1)return t;let x=Array.from(l).filter((m)=>!t.includes(`rel="prefetch" href="${m}"`)).map((m)=>`<link rel="prefetch" href="${m}" as="script">`).join("");if(!x)return t;return t.slice(0,f)+x+t.slice(f)}var Bt=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function K(t){let n=t.trim();if(!n)return null;let a=/^https?:\/\//i.test(n)?n:`https://${n}`;try{return new URL(a).origin+new URL(a).pathname.replace(/\/$/,"")}catch{return null}}function jt(t){for(let n of Bt){let a=t[n];if(!a)continue;let s=K(a);if(s)return{url:s,source:"env",via:n}}return null}function ct(t){if(!t||typeof t!=="object")return null;let n=t,a=n.site?.url??n.url??n.app?.url;return typeof a==="string"?K(a):null}async function Ft(t){let{existsSync:n}=await import("fs"),a=await import("path");for(let s of["site.config.ts","site.config.js",".config/site.config.ts"]){let l=a.resolve(t,s);if(!n(l))continue;try{let e=await import(l),u=ct(e.default??e);if(u)return u}catch{}}return null}async function lt(t={}){let n=t.cwd??process.cwd(),a=t.env??process.env;if(t.explicit){let u=K(t.explicit);if(u)return{url:u,source:"option"}}let s=ct(t.stxConfig);if(s)return{url:s,source:"stx.config",via:"site.url"};let l=await Ft(n);if(l)return{url:l,source:"site.config",via:"url"};let e=jt(a);if(e)return e;return{url:"http://localhost",source:"fallback"}}function ut(){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
|
`)}function W(t){return async()=>({paths:await t(),fallback:!1})}var Tt;function Ot(t){let n=r(t),{depths:a}=fe(n),s=/\b(?:async\s+)?function\s+getStaticPaths\s*\(/g,l;while((l=s.exec(n))!==null){if(a[l.index]!==0)continue;let u=y(n,"(",")",s.lastIndex-1),f=n.indexOf("{",u+1),x=y(n,"{","}",f);if(u<0||f<0||x<0)break;return t.slice(l.index,x+1)}let e=/\b(?:const|let|var)\s+getStaticPaths\s*=/g;while((l=e.exec(n))!==null){if(a[l.index]!==0)continue;let u=Lc(n,e.lastIndex).endPos;return t.slice(e.lastIndex,u).trim()}throw SyntaxError("Could not extract getStaticPaths; use a top-level function or const declaration")}async function dt(t){let n="read";try{let a=await Bun.file(t).text();n="parse";let s=Xt(a),l=[...s.server,...s.client,...s.signals].filter((e)=>/(?:^|\s)server(?:\s|=|$)/i.test(r(e.attrs))).sort((e,u)=>a.indexOf(e.fullTag)-a.indexOf(u.fullTag));for(let e of l){if(!/\bgetStaticPaths\b/.test(r(e.content)))continue;let u=(Tt??=new Bun.Transpiler({loader:"ts",target:"bun"})).transformSync(e.content);if(!/\bgetStaticPaths\b/.test(r(u)))continue;let f=Ot(u);if(/\bdefineStaticPaths\b/.test(r(f))&&Et(u,"defineStaticPaths"))throw SyntaxError("Cannot evaluate a module-local defineStaticPaths binding during isolated hook extraction");n="execute";let x=Function("defineStaticPaths",`return (${f})`)(W);if(typeof x!=="function")throw TypeError("getStaticPaths must be a function");let m=await x();n="result";let b=Array.isArray(m)?{paths:m}:m;if(!b||typeof b!=="object"||!("paths"in b)||!Array.isArray(b.paths))throw TypeError("getStaticPaths must return { paths: [...] } or an array of paths");for(let v of b.paths)if(!v||typeof v!=="object"||!v.params||typeof v.params!=="object"||Array.isArray(v.params))throw TypeError("Each getStaticPaths path must contain a params object");return{kind:"ok",value:b}}return{kind:"absent"}}catch(a){return{kind:"error",phase:n,error:a instanceof Error?a:Error(String(a))}}}class pt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,n=""){this.cacheDir=t,this.salt=n}async load(){if(this.loaded)return;let t=p.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let n=JSON.parse(await Bun.file(t).text());for(let[a,s]of Object.entries(n))this.cache.set(a,s)}catch{}this.loaded=!0}async save(){await k.promises.mkdir(this.cacheDir,{recursive:!0});let t=p.join(this.cacheDir,"build-cache.json"),n={};for(let[a,s]of this.cache)n[a]=s;await Bun.write(t,JSON.stringify(n))}getHash(t,n){let a=k.statSync(t),s=`${this.salt}|${t}:${a.mtimeMs}`;for(let e of n)if(k.existsSync(e)){let u=k.statSync(e);s+=`:${e}:${u.mtimeMs}`}let l=0;for(let e=0;e<s.length;e++){let u=s.charCodeAt(e);l=(l<<5)-l+u,l=l&l}return Math.abs(l).toString(36)}get(t,n){let a=this.cache.get(t);if(!a)return null;let s=this.getHash(n,a.dependencies??[]);if(a.hash!==s)return this.cache.delete(t),null;return a.html}set(t,n,a,s){let l=this.getHash(n,a);this.cache.set(t,{hash:l,html:s,generatedAt:Date.now(),dependencies:a})}}class ht{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let n=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return p.join(this.cacheDir,"isr",n)}async get(t){let n=this.getFilePath(t);if(!await Bun.file(n).exists())return null;try{return JSON.parse(await Bun.file(n).text())}catch{return null}}async set(t,n){let a=this.getFilePath(t);await k.promises.mkdir(p.dirname(a),{recursive:!0}),await Bun.write(a,JSON.stringify(n))}async invalidate(t){let n=this.getFilePath(t);if(await Bun.file(n).exists())await k.promises.unlink(n)}async invalidatePattern(t){let n=p.join(this.cacheDir,"isr");if(!k.existsSync(n))return;let a=await k.promises.readdir(n);for(let s of a){let l=s.replace(/_/g,"/").replace(".json","");if(t.test(l))await k.promises.unlink(p.join(n,s))}}async needsRevalidation(t){let n=await this.get(t);if(!n)return!0;return Date.now()>n.revalidateAfter}}async function At(t){let n=[];if(!t.isDynamic)n.push({url:t.pattern,params:{}});else{let a=await dt(t.filePath);if(a.kind==="error")throw Error(`getStaticPaths ${a.phase} failed for ${t.pattern} (${t.filePath}): ${a.error.message}`,{cause:a.error});if(a.kind==="absent")return console.warn(`Warning: Dynamic route ${t.pattern} (${t.filePath}) has no getStaticPaths`),n;let s=a.value;if(s.paths.length===0)return console.info(`getStaticPaths returned no paths for dynamic route ${t.pattern} (${t.filePath})`),n;for(let l of s.paths){let e=t.pattern;for(let[u,f]of Object.entries(l.params))e=e.replace(`:${u}`,f).replace(`:${u}*`,f);n.push({url:e,params:l.params,props:l.props,revalidate:l.revalidate})}}return n}async function Lt(t){let n=[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"];for(let a of n)if(await Bun.file(a).exists())try{let s=await import(a);if(typeof s.default==="function")return await s.default();else if(typeof s.default==="object")return s.default;else if(typeof s.getData==="function")return await s.getData();else{let{default:l,...e}=s;return e}}catch(s){console.error(`Error loading data file ${a}:`,s)}return null}async function Ut(t,n,a){let s=t.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!s)return null;let l=s[1];if(!l.includes("getStaticProps"))return null;try{let e=l.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticProps\s*\([^)]*\)\s*\{([\s\S]*?)\n\}/);if(!e)return null;return await Function("params",`
|
|
4
4
|
return (async function getStaticProps() {
|
|
5
5
|
${e[1]}
|
|
@@ -7,7 +7,7 @@ import"./chunk-45es05ph.js";import{y,Lc}from"./chunk-xc03cdet.js";import"./chunk
|
|
|
7
7
|
`)(n)}catch(e){return console.error(`Error executing getStaticProps in ${a}:`,e),null}}function Mt(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 ft(t,n,a={},s,l){let e=await Bun.file(t.filePath).text(),u=await Lt(t.filePath),f=await Ut(e,n,t.filePath),x={...u||{},...f||{},...a,params:n,$route:{path:t.pattern,params:n}},m=new Set,b=[],v=[],R={...l,minifyClient:!0,...s.partialsDir?{partialsDir:s.partialsDir}:{},...s.componentsDir?{componentsDir:s.componentsDir}:{},debug:!1,cache:!1,autoShell:!0,onIncludeError:(D)=>{b.push(`${p.relative(process.cwd(),D.templatePath)}: ${D.message}
|
|
8
8
|
resolved against partialsDir: ${D.partialsDir}`)},onServerScriptError:(D)=>{v.push(`${p.relative(process.cwd(),D.sourcePath)} (${D.kind}): ${D.message}`)}};if(Mt(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 S=await o(e,x,t.filePath,R,m);for(let D of[t.filePath,...m])for(let F of Ee(D))m.add(F);if(Object.keys(n).length>0){let D=`<script>if(window.stx)window.stx._rp=${JSON.stringify(n)};else window.__stx_rp=${JSON.stringify(n)};</script>`;if(S.includes("</head>"))S=S.replace("</head>",`${D}
|
|
9
9
|
</head>`);else S=`${D}
|
|
10
|
-
${S}`}if(S=await ye(S,{router:s.router}),S=await h(S),s.minify!==!1)return{html:
|
|
10
|
+
${S}`}if(S=await ye(S,{router:s.router}),S=await h(S),s.minify!==!1)return{html:Gt(S),dependencies:Array.from(m),includeFailures:b,serverScriptFailures:v};return{html:S,dependencies:Array.from(m),includeFailures:b,serverScriptFailures:v}}function Gt(t){let n=[],a=0,s=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,l;while((l=s.exec(t))!==null){let u=t.slice(a,l.index);n.push(u.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><"));let f=l[1],x=l[2],m=l[3];x=x.replace(/([^:"\\'`])\/\/(?!\/)(?![*!])([^\n]*)/g,"$1"),n.push(f+x+m),a=l.index+l[0].length}let e=t.slice(a);return n.push(e.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><")),n.join("").trim()}function Nt(t){let n=0;for(let a=0;a<t.length;a++){let s=t.charCodeAt(a);n=(n<<5)-n+s,n=n&n}return`"${Math.abs(n).toString(36)}"`}function zt(t,n,a,s){if(a?.sitemap===!1)return!0;if(/<meta[^>]+name=["']robots["'][^>]+content=["'][^"']*noindex/i.test(n))return!0;return s.some((l)=>{if(l instanceof RegExp)return l.test(t);return l.endsWith("/")?t===l.slice(0,-1)||t.startsWith(l):t===l})}function Ht(t,n){return`<?xml version="1.0" encoding="UTF-8"?>
|
|
11
11
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
12
12
|
${t.map((s)=>{let l=new URL(s.loc,n).href,e=` <url>
|
|
13
13
|
<loc>${j(l)}</loc>`;if(s.lastmod)e+=`
|
|
@@ -16,7 +16,7 @@ ${t.map((s)=>{let l=new URL(s.loc,n).href,e=` <url>
|
|
|
16
16
|
<priority>${s.priority}</priority>`;return e+=`
|
|
17
17
|
</url>`,e}).join(`
|
|
18
18
|
`)}
|
|
19
|
-
</urlset>`}function j(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function
|
|
19
|
+
</urlset>`}function j(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Wt(t,n){let a=n.map((s)=>{let l=" <item>";if(l+=`
|
|
20
20
|
<title>${j(s.title)}</title>`,l+=`
|
|
21
21
|
<link>${j(s.link)}</link>`,s.description)l+=`
|
|
22
22
|
<description>${j(s.description)}</description>`;if(s.pubDate)l+=`
|
|
@@ -37,7 +37,7 @@ ${t.map((s)=>{let l=new URL(s.loc,n).href,e=` <url>
|
|
|
37
37
|
${a.join(`
|
|
38
38
|
`)}
|
|
39
39
|
</channel>
|
|
40
|
-
</rss>`}async function
|
|
40
|
+
</rss>`}async function qt(t={}){let n=Date.now();Yt();let a=await i(process.cwd()),s=a.build||{},l=await lt({explicit:t.domain||s.domain,stxConfig:a});if(l.source==="fallback"&&(t.sitemap??s.sitemap??!0))console.warn(ut());let e={router:t.router??a?.router??{},pagesDir:t.pagesDir||s.pagesDir||"pages",outputDir:t.outputDir||s.outputDir||"dist",baseUrl:t.baseUrl||s.baseUrl||"/",domain:l.url,revalidate:t.revalidate??s.revalidate??!1,sitemap:t.sitemap??s.sitemap??!0,sitemapExclude:t.sitemapExclude||s.sitemapExclude||[],robots:t.robots??s.robots??!0,rss:t.rss??s.rss??!1,concurrency:t.concurrency||s.concurrency||10,cache:t.cache??s.cache??!0,cacheDir:t.cacheDir||s.cacheDir||c(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??s.minify??!0,generate404:t.generate404??s.generate404??!0,publicDir:t.publicDir||s.publicDir||"public",trailingSlash:t.trailingSlash??s.trailingSlash??!1,cleanOutput:t.cleanOutput??s.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||a?.partialsDir||"",componentsDir:t.componentsDir||a?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},f=new Set,x=0,m={},b={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&k.existsSync(e.outputDir))await k.promises.rm(e.outputDir,{recursive:!0});await k.promises.mkdir(e.outputDir,{recursive:!0});let R=e.cacheSalt;if(!R){let{resolveUserCssConfig:d,fingerprintConfig:w}=await import("./chunk-8ksv8fxp.js");try{R=w(await d(process.cwd()))}catch{}}let{prepareImageDelivery:S}=await import("./chunk-xxz6bkw4.js"),D=await S(e.publicDir,e.outputDir);if(D.count>0)console.log(`Optimized ${D.count} image(s) for responsive delivery`),R=[R,D.fingerprint].filter(Boolean).join(":");let F=new pt(e.cacheDir,R);if(e.cache)await F.load();try{let{generateCss:d}=await import("./chunk-8ksv8fxp.js");await d('<div class="bg-black"></div>')}catch{}wt();let mt=a?.routeMiddleware?.dir||"middleware";await St(process.cwd(),mt);let J=xt();if(J.length>0)console.log(`Loaded ${J.length} middleware: ${J.join(", ")}`);let yt=a?.routeMiddleware?.global||[];Da(a?.layoutsDir,c(process.cwd()));let Y=q(".",{pagesDir:e.pagesDir,pagesDirs:a?._layerPageDirs});console.log(`Found ${Y.length} routes`);let U=[];for(let d of Y)try{let w=await At(d);for(let P of w)U.push({route:d,url:P.url,params:P.params,props:P.props,revalidate:P.revalidate??e.revalidate})}catch(w){let P=w instanceof Error?w:Error(String(w));u.failedCount++,u.errors.push({route:d.pattern,error:P}),await e.hooks.onError?.(P,d.pattern),console.error(`Error discovering paths for ${d.pattern}:`,P)}u.totalPages=U.length+u.failedCount,console.log(`Generating ${U.length} pages...`);let M=[],Z=[];for(let d=0;d<U.length;d+=e.concurrency)Z.push(U.slice(d,d+e.concurrency));for(let d of Z)await Promise.all(d.map(async(w)=>{let{route:P,url:g,params:_,props:bt,revalidate:et}=w;try{await e.hooks.onPageStart?.(g);let T=await Bun.file(P.filePath).text(),O=Qt(T),vt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],rt=[...yt,...vt];if(rt.length>0){let I=kt(g,_,O||{}),A=_t(I,null,void 0,{isServer:!0}),B=await Ct(rt,A);if(B.redirect){let E=typeof B.redirect==="string"?B.redirect:B.redirect.path||B.redirect,N=te(String(E),g),L=ee(g,e);await k.promises.mkdir(p.dirname(L),{recursive:!0}),await Bun.write(L,N),u.successCount++,u.pages.push({route:g,outputPath:L,size:Buffer.byteLength(N),cached:!1}),M.push({loc:g,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${g} \u2192 redirect to ${E}`);return}if(B.abort){let E=typeof B.abort==="string"?B.abort:B.abort?.error?.message||"aborted";console.warn(` \u21B3 ${g} \u2014 middleware aborted: ${E}`);return}}let nt=T.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(nt)try{if(!await Function("route",`
|
|
41
41
|
const validate = ${nt[1]};
|
|
42
42
|
return validate(route);
|
|
43
43
|
`)({params:_})){console.warn(`Validation failed for ${g}, skipping...`);return}}catch{}let C=null,it=!1;if(e.cache){if(C=F.get(g,P.filePath),C)it=!0,u.cachedCount++}if(!C){let I=await ft(P,_,bt,e,a);if(C=I.html,e.failOnIncludeError&&I.includeFailures.length>0)throw Error(`${I.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
|
@@ -46,7 +46,7 @@ ${a.join(`
|
|
|
46
46
|
Set ssg.failOnIncludeError to false to build anyway.`);if(e.failOnServerScriptError&&I.serverScriptFailures.length>0)throw Error(`${I.serverScriptFailures.length} <script server> block(s) failed, so this page would have shipped with the content they produce missing:
|
|
47
47
|
${I.serverScriptFailures.join(`
|
|
48
48
|
`)}
|
|
49
|
-
Set ssg.failOnServerScriptError to false to build anyway.`);if(e.cache)F.set(g,P.filePath,I.dependencies,C)}let G;if(e.trailingSlash)G=p.join(e.outputDir,g,"index.html");else G=g==="/"?p.join(e.outputDir,"index.html"):p.join(e.outputDir,`${g}.html`);if(e.chunkIslands){let{html:I,chunks:A}=at(C,{integrity:e.integrityIslands,minify:e.minify});if(A.length>0){let B=p.join(e.outputDir,"_stx","islands");await k.promises.mkdir(B,{recursive:!0});for(let E of A){let N=p.join(B,`${E.hash}.js`);if(!await Bun.file(N).exists())await Bun.write(N,E.code);if(!f.has(E.hash)){f.add(E.hash);let L=Buffer.byteLength(E.code,"utf8");x+=L,m[E.hash]={bytes:L,file:`/_stx/islands/${E.hash}.js`}}}if(b[g]=A.map((E)=>E.hash),C=I,e.prefetchIslands)C=ot(C)}}if(await k.promises.mkdir(p.dirname(G),{recursive:!0}),await Bun.write(G,C),!
|
|
49
|
+
Set ssg.failOnServerScriptError to false to build anyway.`);if(e.cache)F.set(g,P.filePath,I.dependencies,C)}let G;if(e.trailingSlash)G=p.join(e.outputDir,g,"index.html");else G=g==="/"?p.join(e.outputDir,"index.html"):p.join(e.outputDir,`${g}.html`);if(e.chunkIslands){let{html:I,chunks:A}=at(C,{integrity:e.integrityIslands,minify:e.minify});if(A.length>0){let B=p.join(e.outputDir,"_stx","islands");await k.promises.mkdir(B,{recursive:!0});for(let E of A){let N=p.join(B,`${E.hash}.js`);if(!await Bun.file(N).exists())await Bun.write(N,E.code);if(!f.has(E.hash)){f.add(E.hash);let L=Buffer.byteLength(E.code,"utf8");x+=L,m[E.hash]={bytes:L,file:`/_stx/islands/${E.hash}.js`}}}if(b[g]=A.map((E)=>E.hash),C=I,e.prefetchIslands)C=ot(C)}}if(await k.promises.mkdir(p.dirname(G),{recursive:!0}),await Bun.write(G,C),!zt(g,C,O,e.sitemapExclude))M.push({loc:g,lastmod:new Date().toISOString().split("T")[0],priority:g==="/"?1:0.8});let st={route:g,outputPath:G,size:Buffer.byteLength(C,"utf8"),cached:it};if(et!==!1)st.revalidateAt=Date.now()+et*1000;u.pages.push(st),u.successCount++,await e.hooks.onPageEnd?.(g,C)}catch(T){u.failedCount++,u.errors.push({route:g,error:T}),await e.hooks.onError?.(T,g),console.error(`Error generating ${g}:`,T)}}));let Q=Jt();if(Q.length>0){let d=Q.map((w)=>`${w.filePath}: ${w.message}`).join(`
|
|
50
50
|
`);throw Error(`Client script bundling failed:
|
|
51
51
|
${d}`)}if(e.cache)await F.save();if(e.generate404){let d=p.join(e.pagesDir,"404.stx");if(await Bun.file(d).exists()){let w=new Set,P={...a,minifyClient:!0,debug:!1,cache:!1},g=await o(await Bun.file(d).text(),{},d,P,w);await Bun.write(p.join(e.outputDir,"404.html"),g)}else await Bun.write(p.join(e.outputDir,"404.html"),`<!DOCTYPE html>
|
|
52
52
|
<html lang="en">
|
|
@@ -69,7 +69,7 @@ ${d}`)}if(e.cache)await F.save();if(e.generate404){let d=p.join(e.pagesDir,"404.
|
|
|
69
69
|
<a href="/">Go home</a>
|
|
70
70
|
</div>
|
|
71
71
|
</body>
|
|
72
|
-
</html>`)}for(let d of[500]){let w=p.join(e.pagesDir,`${d}.stx`);if(await Bun.file(w).exists()){let P=new Set,g={...a,minifyClient:!0,debug:!1,cache:!1},_=await o(await Bun.file(w).text(),{},w,g,P);await Bun.write(p.join(e.outputDir,`${d}.html`),_)}}let V=p.join(e.pagesDir,"error.stx");if(await Bun.file(V).exists()){let d=new Set,w={...a,minifyClient:!0,debug:!1,cache:!1},P=await o(await Bun.file(V).text(),{},V,w,d);await Bun.write(p.join(e.outputDir,"error.html"),P)}if(e.sitemap&&M.length>0){let d=
|
|
72
|
+
</html>`)}for(let d of[500]){let w=p.join(e.pagesDir,`${d}.stx`);if(await Bun.file(w).exists()){let P=new Set,g={...a,minifyClient:!0,debug:!1,cache:!1},_=await o(await Bun.file(w).text(),{},w,g,P);await Bun.write(p.join(e.outputDir,`${d}.html`),_)}}let V=p.join(e.pagesDir,"error.stx");if(await Bun.file(V).exists()){let d=new Set,w={...a,minifyClient:!0,debug:!1,cache:!1},P=await o(await Bun.file(V).text(),{},V,w,d);await Bun.write(p.join(e.outputDir,"error.html"),P)}if(e.sitemap&&M.length>0){let d=Ht(M,e.domain),w=p.join(e.outputDir,"sitemap.xml");await Bun.write(w,d),u.sitemapPath=w,console.log(`Generated sitemap.xml with ${M.length} URLs`)}if(e.robots!==!1){let d=typeof e.robots==="object"?e.robots:{},w=[...e.sitemapExclude.filter((g)=>typeof g==="string"),...d.disallow||[]],P=us({rules:[{userAgent:d.userAgent||"*",allow:d.allow||["/"],...w.length>0?{disallow:w}:{}}],...d.sitemap!==!1&&u.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(p.join(e.outputDir,"robots.txt"),P),console.log("Generated robots.txt")}if(e.rss){let d=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},w=[];if(d.getItems)w=await d.getItems();let P=Wt(d,w),g=p.join(e.outputDir,"rss.xml");await Bun.write(g,P),u.rssPath=g,console.log(`Generated rss.xml with ${w.length} items`)}let z=Oa(e.outputDir);if(z.assets>0)console.log(`Externalized ${z.assets} asset(s) from ${z.pages} page(s) (${(z.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);let H=Na(e.outputDir);if(H.assets>0)console.log(`Externalized ${H.assets} repeated asset(s) from ${H.pages} page(s) (${(H.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);if(e.publicDir&&k.existsSync(e.publicDir))await X(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let tt=qn();if(tt)await X(tt,p.join(e.outputDir,Wn)),console.log(`Copied assets from ${Kt}`)}catch(R){throw await e.hooks.onError?.(R),R}if(u.buildTime=Date.now()-n,f.size>0){u.islandChunks={count:f.size,totalBytes:x};let R={generatedChunks:f.size,totalBytes:x,chunks:m,pages:b};await Bun.write(p.join(e.outputDir,"_stx","islands-manifest.json"),JSON.stringify(R,null,2))}await e.hooks.onBuildEnd?.(u);let v=u.islandChunks?`
|
|
73
73
|
Island chunks: ${u.islandChunks.count} (${(u.islandChunks.totalBytes/1024).toFixed(1)} KB lifted out of inline HTML)`:"";return console.log(`
|
|
74
74
|
Build complete!
|
|
75
75
|
Total: ${u.totalPages} pages
|
|
@@ -77,7 +77,7 @@ Build complete!
|
|
|
77
77
|
Cached: ${u.cachedCount}
|
|
78
78
|
Failed: ${u.failedCount}
|
|
79
79
|
Time: ${u.buildTime}ms${v}
|
|
80
|
-
`),u}async function X(t,n){await k.promises.mkdir(n,{recursive:!0});let a=await k.promises.readdir(t,{withFileTypes:!0});for(let s of a){let l=p.join(t,s.name),e=p.join(n,s.name);if(s.isDirectory())await k.promises.mkdir(e,{recursive:!0}),await X(l,e);else await k.promises.copyFile(l,e)}}function
|
|
80
|
+
`),u}async function X(t,n){await k.promises.mkdir(n,{recursive:!0});let a=await k.promises.readdir(t,{withFileTypes:!0});for(let s of a){let l=p.join(t,s.name),e=p.join(n,s.name);if(s.isDirectory())await k.promises.mkdir(e,{recursive:!0}),await X(l,e);else await k.promises.copyFile(l,e)}}function Vt(t={}){let n=t.cacheDir||c(process.cwd(),"ssg-cache"),a=new ht(n),s=t.revalidate||3600;return{async get(l){let e=await a.get(l);if(!e)return null;if(Date.now()>e.revalidateAfter)this.revalidate(l).catch(console.error);return{html:e.html,headers:{"Cache-Control":`public, max-age=${s}, stale-while-revalidate=${s*2}`,ETag:e.etag,"X-ISR-Generated":new Date(e.generatedAt).toISOString(),...e.headers}}},async revalidate(l){let u=q(".",{pagesDir:t.pagesDir||"pages"}).find((v)=>l.match(v.regex)!==null);if(!u){console.warn(`Route not found for revalidation: ${l}`);return}let f=l.match(u.regex),x={};if(f)u.params.forEach((v,R)=>{x[v]=f[R+1]});let m=await i(),{html:b}=await ft(u,x,{},t,m);await a.set(l,{html:b,generatedAt:Date.now(),revalidateAfter:Date.now()+s*1000,etag:Nt(b)}),console.log(`Revalidated: ${l}`)},async invalidate(l){if(typeof l==="string")await a.invalidate(l);else await a.invalidatePattern(l)}}}function Zt(){return{name:"markdown",extensions:[".md",".mdx"],async load(t){let n=await Bun.file(t).text(),a=n.match(/^---\n([\s\S]*?)\n---/),s={},l=n;if(a){let m=a[1];l=n.slice(a[0].length).trim();for(let b of m.split(`
|
|
81
81
|
`)){let v=b.indexOf(":");if(v>0){let R=b.slice(0,v).trim(),S=b.slice(v+1).trim();if(S==="true")S=!0;else if(S==="false")S=!1;else if(/^\d+$/.test(S))S=parseInt(S,10);else if(/^\d+\.\d+$/.test(S))S=parseFloat(S);else if(S.startsWith("[")&&S.endsWith("]"))S=S.slice(1,-1).split(",").map((D)=>D.trim().replace(/^['"]|['"]$/g,""));s[R]=S}}}let e=l.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>"),u=[],f=/<h([1-6])>([^<]+)<\/h[1-6]>/gi,x;while((x=f.exec(e))!==null){let m=parseInt(x[1],10),b=x[2],v=b.toLowerCase().replace(/[^a-z0-9]+/g,"-");u.push({id:v,text:b,level:m})}return{content:e,data:s,toc:u}}}}function Qt(t){return gt(t)}function te(t,n){return`<!DOCTYPE html>
|
|
82
82
|
<html>
|
|
83
83
|
<head>
|
|
@@ -90,4 +90,4 @@ Build complete!
|
|
|
90
90
|
<p>Redirecting to <a href="${t}">${t}</a>...</p>
|
|
91
91
|
<script>window.location.replace('${t}')</script>
|
|
92
92
|
</body>
|
|
93
|
-
</html>`}function ee(t,n){if(t==="/"||t==="")return p.join(n.outputDir,"index.html");let a=t.replace(/^\/|\/$/g,"");if(n.trailingSlash)return p.join(n.outputDir,a,"index.html");return p.join(n.outputDir,`${a}.html`)}var je={generateStaticSite:
|
|
93
|
+
</html>`}function ee(t,n){if(t==="/"||t==="")return p.join(n.outputDir,"index.html");let a=t.replace(/^\/|\/$/g,"");if(n.trailingSlash)return p.join(n.outputDir,a,"index.html");return p.join(n.outputDir,`${a}.html`)}var je={generateStaticSite:qt,createISRHandler:Vt,defineStaticPaths:W,createMarkdownLoader:Zt};export{Vt as createISRHandler,Zt as createMarkdownLoader,Mt as declaresPageAction,je as default,W as defineStaticPaths,qt as generateStaticSite,zt as isExcludedFromSitemap};
|
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.704",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@stacksjs/ts-css": "^0.3.11",
|
|
130
130
|
"@stacksjs/clapp": "^0.2.16",
|
|
131
|
-
"@stacksjs/desktop": "0.2.
|
|
132
|
-
"@stacksjs/sanitizer": "0.2.
|
|
131
|
+
"@stacksjs/desktop": "0.2.704",
|
|
132
|
+
"@stacksjs/sanitizer": "0.2.704",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
|
-
"bun-plugin-stx": "0.2.
|
|
134
|
+
"bun-plugin-stx": "0.2.704",
|
|
135
135
|
"bunfig": "^0.15.21",
|
|
136
|
-
"stx-router": "0.2.
|
|
136
|
+
"stx-router": "0.2.704",
|
|
137
137
|
"ts-broadcasting": "^0.0.11",
|
|
138
138
|
"ts-images": "^0.2.22",
|
|
139
139
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-2v86a093.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Lg}from"./chunk-nvtk2198.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{Lg as buildApp};
|
package/dist/chunk-3sr52w0c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{qg,ta,Ul,Kg,Gg,Xg,Jg,Yg,Wl,ql,Zg,Qg,em,tm}from"./chunk-g15vfggh.js";import"./chunk-fkxt007p.js";import"./chunk-7wgezbch.js";import"./chunk-bsr9wnq4.js";import"./chunk-meesnrhz.js";import"./chunk-3e350ywf.js";import"./chunk-a51avg0f.js";import"./chunk-cbdyns7r.js";import"./chunk-hckj9ejj.js";import"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import"./chunk-9qj87w6v.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{Ul as SUSPENSE_RESOLVER_RUNTIME,ta as buildSuspenseResolveScript,Yg as createStreamRenderer,Xg as extractStreamBoundaries,tm as generateHydrationRuntime,ql as islandDirective,Qg as processSectionDirectives,Gg as processStreamDirectives,Zg as registerStreamingDirectives,Kg as renderStreamingPage,qg as streamTemplate,Jg as streamTemplateSimple,em as streamToResponse,Wl as streamingSuspenseDirective};
|
package/dist/chunk-3w2b2t27.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{pf,Zr}from"./chunk-a51avg0f.js";import"./chunk-cbdyns7r.js";import"./chunk-vfjenjez.js";import{mr}from"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import{tt}from"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{tt as freeIdentifiers,Zr as processComponents,pf as processESImports,mr as rendersAsElement};
|
package/dist/chunk-3yb6j6wb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ml,Hi,xg,hl,yl,Sg,kg}from"./chunk-csrahdyk.js";import"./chunk-r7m0y6wk.js";import"./chunk-mt39bh7e.js";import"./chunk-55mcxp2b.js";import"./chunk-45es05ph.js";import"./chunk-hckj9ejj.js";import"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import{Rt,Rf}from"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{ml as buildVirtualSource,Rt as extractScriptBlocks,Rf as extractTemplateExpressions,hl as findRuntimeTypeDeclarations,yl as findStxModuleDeclarations,kg as formatTypecheckDiagnostics,xg as sourcePathFor,Sg as typecheckStxFiles,Hi as virtualPathFor};
|
package/dist/chunk-4fhawjhe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{yg}from"./chunk-6vd0vpsj.js";import"./chunk-kqkfs9a7.js";import"./chunk-pdeg77hy.js";import"./chunk-55mcxp2b.js";import"./chunk-h2jbgvfs.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{yg as startProductionServer};
|
package/dist/chunk-5jw550wk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xl,Bg,Sl,kl,Fg,zg}from"./chunk-a2z5emw7.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{zg as applySlots,Fg as extractSlotContent,Bg as parseSlotElement,xl as parseSlots,kl as processSlots,Sl as renderSlot};
|
package/dist/chunk-84sfk1ab.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zm,df,Ke,za,Qm,Gr,Xr,Jr}from"./chunk-3e350ywf.js";import"./chunk-a51avg0f.js";import"./chunk-cbdyns7r.js";import"./chunk-vfjenjez.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{Qm as clearOnceStore,za as onceStore,Ke as partialsCache,Gr as processIncludes,Xr as processStackPushDirectives,Jr as processStackReplacements,Zm as resetUnscopedSignalWarnings,df as topLevelElements};
|
package/dist/chunk-a3rhve9y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$m,Rm}from"./chunk-avvngqyb.js";import"./chunk-mt39bh7e.js";import"./chunk-55mcxp2b.js";import"./chunk-45es05ph.js";import"./chunk-hckj9ejj.js";import"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{Rm as clearStoreCache,$m as getStoreScript};
|
package/dist/chunk-amcsa9xc.js
DELETED
package/dist/chunk-k2hrwk7d.js
DELETED
package/dist/chunk-kbvtnx10.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ia,aa,ca,la,Um}from"./chunk-12n3tyb2.js";import"./chunk-0vpk16gq.js";import"./chunk-4zsykpm6.js";import"./chunk-9ra3ne11.js";import"./chunk-fkxt007p.js";import"./chunk-7wgezbch.js";import"./chunk-bsr9wnq4.js";import"./chunk-meesnrhz.js";import"./chunk-3e350ywf.js";import"./chunk-a51avg0f.js";import"./chunk-cbdyns7r.js";import"./chunk-hckj9ejj.js";import"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import"./chunk-9qj87w6v.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{ia as buildNative,Um as default,aa as findCraftBinary,la as getAvailableFormats,ca as getAvailableTargets};
|
package/dist/chunk-pe086860.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{eo,Am,Pm}from"./chunk-r7m0y6wk.js";import"./chunk-mt39bh7e.js";import"./chunk-55mcxp2b.js";import"./chunk-45es05ph.js";import"./chunk-hckj9ejj.js";import"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{Pm as clearComposableCache,Am as getComposableScript,eo as listComposableModules};
|
package/dist/chunk-pksz8dq4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{qs,Li,Or,Ks,Gs,Cn,Ut,ji,Nr,Dr,Xs,Js,bg,vg,lt}from"./chunk-06dv852k.js";export{lt as DeployError,Li as calculateSha1,Or as collectDeployFiles,Dr as createDefaultNetlifyConfig,Ks as createFileManifest,qs as createNetlifyClient,bg as deploy,Nr as detectProjectConfig,Gs as filterRequiredFiles,Cn as formatSize,ji as generateNetlifyToml,Ut as getTotalSize,Js as hasNetlifyConfig,vg as initNetlify,Xs as writeNetlifyConfig};
|
package/dist/chunk-s58y73kg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hg}from"./chunk-qe0h2e7e.js";import"./chunk-fkxt007p.js";import"./chunk-7wgezbch.js";import"./chunk-bsr9wnq4.js";import"./chunk-meesnrhz.js";import"./chunk-3e350ywf.js";import"./chunk-a51avg0f.js";import"./chunk-cbdyns7r.js";import"./chunk-hckj9ejj.js";import"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import"./chunk-9qj87w6v.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{hg as startInteractive};
|
package/dist/chunk-sx3gnrpe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Xn,o}from"./chunk-fkxt007p.js";import"./chunk-7wgezbch.js";import"./chunk-bsr9wnq4.js";import"./chunk-meesnrhz.js";import"./chunk-3e350ywf.js";import"./chunk-a51avg0f.js";import"./chunk-cbdyns7r.js";import"./chunk-hckj9ejj.js";import{ye}from"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import"./chunk-9qj87w6v.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import{Pe,Es,Ts}from"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{Xn as buildModulesTag,ye as injectRouterScript,o as processDirectives,Es as processJsonDirective,Ts as processOnceDirective,Pe as validateClientScript};
|
package/dist/chunk-tmhs3hev.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kr,Qn,uf}from"./chunk-meesnrhz.js";import"./chunk-cbdyns7r.js";import"./chunk-hckj9ejj.js";import"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import{$t}from"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{uf as declareBareLoopHead,$t as parseLoopBinding,Qn as processLoops,Kr as reportDeferredLoopWarnings};
|
package/dist/chunk-vdpmppe9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Cg}from"./chunk-3qtbdrfc.js";import"./chunk-kqkfs9a7.js";import"./chunk-dcqjdbkp.js";import"./chunk-pdeg77hy.js";import"./chunk-55mcxp2b.js";import"./chunk-fkxt007p.js";import"./chunk-7wgezbch.js";import"./chunk-bsr9wnq4.js";import"./chunk-meesnrhz.js";import"./chunk-3e350ywf.js";import"./chunk-a51avg0f.js";import"./chunk-cbdyns7r.js";import"./chunk-hckj9ejj.js";import"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import"./chunk-9qj87w6v.js";import"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{Cg as buildForProduction};
|
package/dist/chunk-vwdy0xyz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ol,il}from"./chunk-dg3p7esg.js";import"./chunk-qe0h2e7e.js";import"./chunk-6vd0vpsj.js";import"./chunk-06dv852k.js";import"./chunk-bfhks7zf.js";import"./chunk-csrahdyk.js";import"./chunk-8w4y3dx3.js";import"./chunk-3qtbdrfc.js";import"./chunk-kqkfs9a7.js";import"./chunk-k296qq0p.js";import"./chunk-b2j7s1a2.js";import"./chunk-nvtk2198.js";import"./chunk-1kr1mpft.js";import"./chunk-a2z5emw7.js";import"./chunk-983zpa57.js";import"./chunk-d597d0dp.js";import"./chunk-sxf17xfc.js";import"./chunk-yw4bs6fh.js";import"./chunk-416jy1m5.js";import"./chunk-g15vfggh.js";import"./chunk-2v7t87n8.js";import"./chunk-zggdhtmn.js";import"./chunk-e3yhx053.js";import"./chunk-njhd845r.js";import"./chunk-t27fecet.js";import"./chunk-4sesw88b.js";import"./chunk-avvngqyb.js";import"./chunk-r7m0y6wk.js";import"./chunk-dcqjdbkp.js";import"./chunk-4zsykpm6.js";import"./chunk-9ra3ne11.js";import"./chunk-b3sw5ykg.js";import{Xt}from"./chunk-pdeg77hy.js";import"./chunk-mt39bh7e.js";import"./chunk-55mcxp2b.js";import"./chunk-45es05ph.js";import{$e,o}from"./chunk-fkxt007p.js";import"./chunk-7wgezbch.js";import"./chunk-bsr9wnq4.js";import"./chunk-meesnrhz.js";import"./chunk-3e350ywf.js";import"./chunk-a51avg0f.js";import"./chunk-cbdyns7r.js";import"./chunk-hckj9ejj.js";import{ye}from"./chunk-h2jbgvfs.js";import"./chunk-vfjenjez.js";import{rr,sr}from"./chunk-9qj87w6v.js";import{os,N,i}from"./chunk-6y2vagad.js";import"./chunk-0ztgcyvw.js";import"./chunk-2p34qf9c.js";import"./chunk-fgr56q3w.js";import"./chunk-p78v88ng.js";import"./chunk-m4j9gedb.js";import{g,De}from"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";import"./chunk-3ys3sa08.js";import"./chunk-7smgebdq.js";export{os as buildWebComponents,sr as cacheTemplate,rr as checkCache,Xt as classifyAllScripts,ol as createMiddleware,il as createRoute,N as defaultConfig,g as extractVariables,ye as injectRouterScript,i as loadStxConfig,De as processClientScript,o as processDirectives,$e as readMarkdownFile};
|
package/dist/chunk-zfjqw81c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Gm,Ba,Xm,Fa,of,af,rn,Zn,Jm,cf,lf,Ym,h}from"./chunk-7wgezbch.js";import"./chunk-9qj87w6v.js";import"./chunk-1rsfpx9h.js";import"./chunk-mpxnqpyw.js";import"./chunk-3392k9vm.js";import"./chunk-xc03cdet.js";import"./chunk-k7pmzreg.js";import"./chunk-cq21rc0g.js";export{rn as buildCss,cf as extractClassNames,af as fingerprintConfig,lf as generateCss,Jm as getCachedCSS,Gm as getCssServeAsset,h as injectCss,Ba as loadCssEngine,Fa as loadCssEngineConfig,Zn as rebuildCss,Xm as resetCssCache,of as resolveUserCssConfig,Ym as withLinkedModuleBundles};
|