@absolutejs/absolute 0.19.0-beta.808 → 0.19.0-beta.809

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/angular/browser.js +9801 -57
  2. package/dist/angular/browser.js.map +246 -4
  3. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  4. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  5. package/dist/angular/index.js +14877 -60
  6. package/dist/angular/index.js.map +281 -4
  7. package/dist/angular/server.js +5610 -45
  8. package/dist/angular/server.js.map +51 -3
  9. package/dist/build.js +18092 -45
  10. package/dist/build.js.map +99 -3
  11. package/dist/cli/index.js +317 -86
  12. package/dist/client/index.js +1100 -40
  13. package/dist/client/index.js.map +24 -4
  14. package/dist/core/streamingSlotRegistrar.js +108 -11
  15. package/dist/core/streamingSlotRegistrar.js.map +4 -3
  16. package/dist/core/streamingSlotRegistry.js +169 -7
  17. package/dist/core/streamingSlotRegistry.js.map +5 -3
  18. package/dist/index.js +19957 -547
  19. package/dist/index.js.map +116 -3
  20. package/dist/islands/browser.js +228 -9
  21. package/dist/islands/browser.js.map +9 -4
  22. package/dist/islands/index.js +1908 -17
  23. package/dist/islands/index.js.map +27 -3
  24. package/dist/react/browser.js +328 -12
  25. package/dist/react/browser.js.map +12 -4
  26. package/dist/react/components/index.js +167 -16
  27. package/dist/react/components/index.js.map +6 -3
  28. package/dist/react/hooks/index.js +183 -8
  29. package/dist/react/hooks/index.js.map +7 -3
  30. package/dist/react/index.js +3627 -36
  31. package/dist/react/index.js.map +45 -4
  32. package/dist/react/jsxDevRuntimeCompat.js +61 -2
  33. package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
  34. package/dist/react/server.js +1789 -18
  35. package/dist/react/server.js.map +21 -3
  36. package/dist/src/angular/injectorPatch.d.ts +1 -0
  37. package/dist/src/index.d.ts +1 -0
  38. package/dist/svelte/browser.js +247 -12
  39. package/dist/svelte/browser.js.map +10 -3
  40. package/dist/svelte/index.js +3732 -37
  41. package/dist/svelte/index.js.map +47 -4
  42. package/dist/svelte/server.js +2794 -21
  43. package/dist/svelte/server.js.map +27 -3
  44. package/dist/vue/browser.js +348 -12
  45. package/dist/vue/browser.js.map +12 -4
  46. package/dist/vue/components/Image.js +240 -7
  47. package/dist/vue/components/Image.js.map +6 -3
  48. package/dist/vue/components/index.js +544 -11
  49. package/dist/vue/components/index.js.map +9 -3
  50. package/dist/vue/index.js +4212 -52
  51. package/dist/vue/index.js.map +50 -4
  52. package/dist/vue/server.js +1849 -18
  53. package/dist/vue/server.js.map +21 -3
  54. package/package.json +1 -1
  55. package/dist/chunk-0867j0r0.js +0 -136
  56. package/dist/chunk-0867j0r0.js.map +0 -10
  57. package/dist/chunk-0kdc6r16.js +0 -20
  58. package/dist/chunk-0kdc6r16.js.map +0 -10
  59. package/dist/chunk-102fp7xe.js +0 -63
  60. package/dist/chunk-102fp7xe.js.map +0 -10
  61. package/dist/chunk-11zpfqz6.js +0 -19
  62. package/dist/chunk-11zpfqz6.js.map +0 -10
  63. package/dist/chunk-1rfh7hw9.js +0 -319
  64. package/dist/chunk-1rfh7hw9.js.map +0 -11
  65. package/dist/chunk-25v9t56f.js +0 -29
  66. package/dist/chunk-25v9t56f.js.map +0 -11
  67. package/dist/chunk-2f21eenc.js +0 -21
  68. package/dist/chunk-2f21eenc.js.map +0 -10
  69. package/dist/chunk-2ga2znex.js +0 -13
  70. package/dist/chunk-2ga2znex.js.map +0 -9
  71. package/dist/chunk-30yrw0f6.js +0 -33
  72. package/dist/chunk-30yrw0f6.js.map +0 -10
  73. package/dist/chunk-38jwhqcw.js +0 -4410
  74. package/dist/chunk-38jwhqcw.js.map +0 -28
  75. package/dist/chunk-3g91wb4f.js +0 -358
  76. package/dist/chunk-3g91wb4f.js.map +0 -10
  77. package/dist/chunk-3yjzpcne.js +0 -34
  78. package/dist/chunk-3yjzpcne.js.map +0 -10
  79. package/dist/chunk-41bf6aqt.js +0 -17
  80. package/dist/chunk-41bf6aqt.js.map +0 -9
  81. package/dist/chunk-4d39r92n.js +0 -81
  82. package/dist/chunk-4d39r92n.js.map +0 -10
  83. package/dist/chunk-5003emhv.js +0 -17
  84. package/dist/chunk-5003emhv.js.map +0 -10
  85. package/dist/chunk-5f67rsed.js +0 -466
  86. package/dist/chunk-5f67rsed.js.map +0 -10
  87. package/dist/chunk-5fhp1jap.js +0 -9169
  88. package/dist/chunk-5fhp1jap.js.map +0 -236
  89. package/dist/chunk-6pdj08z3.js +0 -73
  90. package/dist/chunk-6pdj08z3.js.map +0 -12
  91. package/dist/chunk-6qjbrt0k.js +0 -13
  92. package/dist/chunk-6qjbrt0k.js.map +0 -9
  93. package/dist/chunk-6sccb4jr.js +0 -14
  94. package/dist/chunk-6sccb4jr.js.map +0 -9
  95. package/dist/chunk-798spvzv.js +0 -50
  96. package/dist/chunk-798spvzv.js.map +0 -10
  97. package/dist/chunk-7fw6x3js.js +0 -131
  98. package/dist/chunk-7fw6x3js.js.map +0 -11
  99. package/dist/chunk-7kjj42xm.js +0 -11
  100. package/dist/chunk-7kjj42xm.js.map +0 -10
  101. package/dist/chunk-7mtstdqn.js +0 -90
  102. package/dist/chunk-7mtstdqn.js.map +0 -10
  103. package/dist/chunk-851whwc7.js +0 -17
  104. package/dist/chunk-851whwc7.js.map +0 -10
  105. package/dist/chunk-85n68sy6.js +0 -103
  106. package/dist/chunk-85n68sy6.js.map +0 -10
  107. package/dist/chunk-8kcfffry.js +0 -35
  108. package/dist/chunk-8kcfffry.js.map +0 -10
  109. package/dist/chunk-8qqxc1h2.js +0 -426
  110. package/dist/chunk-8qqxc1h2.js.map +0 -14
  111. package/dist/chunk-92fsjfpp.js +0 -1731
  112. package/dist/chunk-92fsjfpp.js.map +0 -11
  113. package/dist/chunk-93sqk7be.js +0 -139
  114. package/dist/chunk-93sqk7be.js.map +0 -12
  115. package/dist/chunk-94gvx0hg.js +0 -28
  116. package/dist/chunk-94gvx0hg.js.map +0 -10
  117. package/dist/chunk-9c5tj4k3.js +0 -130
  118. package/dist/chunk-9c5tj4k3.js.map +0 -10
  119. package/dist/chunk-9ve9jq72.js +0 -203
  120. package/dist/chunk-9ve9jq72.js.map +0 -10
  121. package/dist/chunk-9xrsjeem.js +0 -12
  122. package/dist/chunk-9xrsjeem.js.map +0 -9
  123. package/dist/chunk-a9mvyp04.js +0 -87
  124. package/dist/chunk-a9mvyp04.js.map +0 -10
  125. package/dist/chunk-b3gbnrwe.js +0 -21
  126. package/dist/chunk-b3gbnrwe.js.map +0 -10
  127. package/dist/chunk-bmgqm774.js +0 -65
  128. package/dist/chunk-bmgqm774.js.map +0 -9
  129. package/dist/chunk-bxfghpma.js +0 -69
  130. package/dist/chunk-bxfghpma.js.map +0 -10
  131. package/dist/chunk-c1jfjnka.js +0 -74
  132. package/dist/chunk-c1jfjnka.js.map +0 -10
  133. package/dist/chunk-cbkrwmvh.js +0 -80
  134. package/dist/chunk-cbkrwmvh.js.map +0 -10
  135. package/dist/chunk-cdxd7sy2.js +0 -71
  136. package/dist/chunk-cdxd7sy2.js.map +0 -10
  137. package/dist/chunk-cg95827x.js +0 -21
  138. package/dist/chunk-cg95827x.js.map +0 -10
  139. package/dist/chunk-cm0g4q6w.js +0 -149
  140. package/dist/chunk-cm0g4q6w.js.map +0 -10
  141. package/dist/chunk-cwfy538a.js +0 -51
  142. package/dist/chunk-cwfy538a.js.map +0 -9
  143. package/dist/chunk-d7mwkzry.js +0 -261
  144. package/dist/chunk-d7mwkzry.js.map +0 -10
  145. package/dist/chunk-d8w0qm28.js +0 -184
  146. package/dist/chunk-d8w0qm28.js.map +0 -11
  147. package/dist/chunk-d9c0am65.js +0 -12
  148. package/dist/chunk-d9c0am65.js.map +0 -10
  149. package/dist/chunk-daqghmg8.js +0 -12
  150. package/dist/chunk-daqghmg8.js.map +0 -9
  151. package/dist/chunk-e3r9fxaa.js +0 -149
  152. package/dist/chunk-e3r9fxaa.js.map +0 -10
  153. package/dist/chunk-e8eecyrq.js +0 -244
  154. package/dist/chunk-e8eecyrq.js.map +0 -10
  155. package/dist/chunk-ex2hxe0v.js +0 -160
  156. package/dist/chunk-ex2hxe0v.js.map +0 -11
  157. package/dist/chunk-fak944et.js +0 -91
  158. package/dist/chunk-fak944et.js.map +0 -10
  159. package/dist/chunk-ff70rnhd.js +0 -672
  160. package/dist/chunk-ff70rnhd.js.map +0 -15
  161. package/dist/chunk-fygx2ymm.js +0 -118
  162. package/dist/chunk-fygx2ymm.js.map +0 -12
  163. package/dist/chunk-g15qj669.js +0 -271
  164. package/dist/chunk-g15qj669.js.map +0 -11
  165. package/dist/chunk-gd6wmknh.js +0 -121
  166. package/dist/chunk-gd6wmknh.js.map +0 -11
  167. package/dist/chunk-gf0ygptk.js +0 -85
  168. package/dist/chunk-gf0ygptk.js.map +0 -11
  169. package/dist/chunk-gytkmthr.js +0 -220
  170. package/dist/chunk-gytkmthr.js.map +0 -10
  171. package/dist/chunk-h5bbfn3n.js +0 -28
  172. package/dist/chunk-h5bbfn3n.js.map +0 -11
  173. package/dist/chunk-h6mye9r3.js +0 -93
  174. package/dist/chunk-h6mye9r3.js.map +0 -10
  175. package/dist/chunk-hcsmxw1v.js +0 -85
  176. package/dist/chunk-hcsmxw1v.js.map +0 -10
  177. package/dist/chunk-hyjs4bqs.js +0 -8
  178. package/dist/chunk-hyjs4bqs.js.map +0 -10
  179. package/dist/chunk-j88z31ep.js +0 -25
  180. package/dist/chunk-j88z31ep.js.map +0 -10
  181. package/dist/chunk-jn91vzkh.js +0 -66
  182. package/dist/chunk-jn91vzkh.js.map +0 -10
  183. package/dist/chunk-jpkjdgsk.js +0 -167
  184. package/dist/chunk-jpkjdgsk.js.map +0 -11
  185. package/dist/chunk-jwxt8gnp.js +0 -13
  186. package/dist/chunk-jwxt8gnp.js.map +0 -9
  187. package/dist/chunk-kk8w9rh5.js +0 -195
  188. package/dist/chunk-kk8w9rh5.js.map +0 -10
  189. package/dist/chunk-m97ze5hz.js +0 -46
  190. package/dist/chunk-m97ze5hz.js.map +0 -10
  191. package/dist/chunk-mbazhahf.js +0 -60
  192. package/dist/chunk-mbazhahf.js.map +0 -10
  193. package/dist/chunk-mgfwq18r.js +0 -15
  194. package/dist/chunk-mgfwq18r.js.map +0 -9
  195. package/dist/chunk-mtgf69xn.js +0 -88
  196. package/dist/chunk-mtgf69xn.js.map +0 -10
  197. package/dist/chunk-mtxzyxpg.js +0 -102
  198. package/dist/chunk-mtxzyxpg.js.map +0 -10
  199. package/dist/chunk-nehhtthw.js +0 -225
  200. package/dist/chunk-nehhtthw.js.map +0 -10
  201. package/dist/chunk-p5504p14.js +0 -16
  202. package/dist/chunk-p5504p14.js.map +0 -10
  203. package/dist/chunk-pnscgw95.js +0 -90
  204. package/dist/chunk-pnscgw95.js.map +0 -10
  205. package/dist/chunk-pvpp4pvs.js +0 -17
  206. package/dist/chunk-pvpp4pvs.js.map +0 -10
  207. package/dist/chunk-qh75agse.js +0 -95
  208. package/dist/chunk-qh75agse.js.map +0 -10
  209. package/dist/chunk-qxq2zcty.js +0 -52
  210. package/dist/chunk-qxq2zcty.js.map +0 -10
  211. package/dist/chunk-r6e8pytx.js +0 -22
  212. package/dist/chunk-r6e8pytx.js.map +0 -9
  213. package/dist/chunk-r7jmgqnw.js +0 -114
  214. package/dist/chunk-r7jmgqnw.js.map +0 -10
  215. package/dist/chunk-s6defjk2.js +0 -116
  216. package/dist/chunk-s6defjk2.js.map +0 -10
  217. package/dist/chunk-sd39p726.js +0 -619
  218. package/dist/chunk-sd39p726.js.map +0 -10
  219. package/dist/chunk-swrnzs4c.js +0 -63
  220. package/dist/chunk-swrnzs4c.js.map +0 -10
  221. package/dist/chunk-tfe3sb44.js +0 -33
  222. package/dist/chunk-tfe3sb44.js.map +0 -10
  223. package/dist/chunk-tjr0kcev.js +0 -41
  224. package/dist/chunk-tjr0kcev.js.map +0 -9
  225. package/dist/chunk-tx9edm1x.js +0 -34
  226. package/dist/chunk-tx9edm1x.js.map +0 -10
  227. package/dist/chunk-txhm2vb5.js +0 -18
  228. package/dist/chunk-txhm2vb5.js.map +0 -9
  229. package/dist/chunk-v5vmsxmy.js +0 -526
  230. package/dist/chunk-v5vmsxmy.js.map +0 -12
  231. package/dist/chunk-vjhxm8n2.js +0 -29
  232. package/dist/chunk-vjhxm8n2.js.map +0 -9
  233. package/dist/chunk-vkrpm7kc.js +0 -247
  234. package/dist/chunk-vkrpm7kc.js.map +0 -12
  235. package/dist/chunk-w3m4m5we.js +0 -4925
  236. package/dist/chunk-w3m4m5we.js.map +0 -12
  237. package/dist/chunk-wrxtn9ve.js +0 -18
  238. package/dist/chunk-wrxtn9ve.js.map +0 -10
  239. package/dist/chunk-wwzvp0zn.js +0 -192
  240. package/dist/chunk-wwzvp0zn.js.map +0 -10
  241. package/dist/chunk-x09cskqd.js +0 -377
  242. package/dist/chunk-x09cskqd.js.map +0 -10
  243. package/dist/chunk-xnt8c6h2.js +0 -576
  244. package/dist/chunk-xnt8c6h2.js.map +0 -10
  245. package/dist/chunk-xw0tx842.js +0 -13
  246. package/dist/chunk-xw0tx842.js.map +0 -9
  247. package/dist/chunk-xx5b6b9m.js +0 -69
  248. package/dist/chunk-xx5b6b9m.js.map +0 -10
  249. package/dist/chunk-xz1kdswj.js +0 -21
  250. package/dist/chunk-xz1kdswj.js.map +0 -9
  251. package/dist/chunk-y84qnsd3.js +0 -32
  252. package/dist/chunk-y84qnsd3.js.map +0 -10
  253. package/dist/chunk-ywjn0rad.js +0 -14
  254. package/dist/chunk-ywjn0rad.js.map +0 -9
  255. package/dist/chunk-z9nvhm6r.js +0 -13
  256. package/dist/chunk-z9nvhm6r.js.map +0 -9
  257. package/dist/chunk-zhmvdpk6.js +0 -15
  258. package/dist/chunk-zhmvdpk6.js.map +0 -9
  259. package/dist/chunk-zrg9d4zw.js +0 -784
  260. package/dist/chunk-zrg9d4zw.js.map +0 -10
@@ -1,63 +0,0 @@
1
- // @bun
2
- import {
3
- escapeScriptContent
4
- } from "./chunk-851whwc7.js";
5
- import {
6
- DEFAULT_CHUNK_SIZE
7
- } from "./chunk-qh75agse.js";
8
- import {
9
- __require
10
- } from "./chunk-bmgqm774.js";
11
-
12
- // src/svelte/renderToReadableStream.ts
13
- var SVELTE_PAGE_ROOT_ID = "__absolute_svelte_root__";
14
- var renderToReadableStream = async (component, props, {
15
- bootstrapScriptContent,
16
- bootstrapScripts = [],
17
- bootstrapModules = [],
18
- nonce,
19
- onError = console.error,
20
- progressiveChunkSize = DEFAULT_CHUNK_SIZE,
21
- signal,
22
- headContent,
23
- bodyContent
24
- } = {}) => {
25
- try {
26
- const { render } = await import("svelte/server");
27
- const renderComponent = render;
28
- const rendered = typeof props === "undefined" ? await renderComponent(component) : await renderComponent(component, { props });
29
- const { head, body } = rendered;
30
- const nonceAttr = nonce ? ` nonce="${nonce}"` : "";
31
- const scripts = (bootstrapScriptContent ? `<script${nonceAttr}>${escapeScriptContent(bootstrapScriptContent)}</script>` : "") + bootstrapScripts.map((src) => `<script${nonceAttr} src="${src}"></script>`).join("") + bootstrapModules.map((src) => `<script${nonceAttr} type="module" src="${src}"></script>`).join("");
32
- const encoder = new TextEncoder;
33
- const full = encoder.encode(`<!DOCTYPE html><html lang="en"><head>${head}${headContent ?? ""}</head><body><div id="${SVELTE_PAGE_ROOT_ID}">${body}</div>${scripts}${bodyContent ?? ""}</body></html>`);
34
- let offset = 0;
35
- return new ReadableStream({
36
- type: "bytes",
37
- cancel(reason) {
38
- onError?.(reason);
39
- },
40
- pull(controller) {
41
- if (signal?.aborted) {
42
- controller.close();
43
- return;
44
- }
45
- if (offset >= full.length) {
46
- controller.close();
47
- return;
48
- }
49
- const end = Math.min(offset + progressiveChunkSize, full.length);
50
- controller.enqueue(full.subarray(offset, end));
51
- offset = end;
52
- }
53
- });
54
- } catch (error) {
55
- onError?.(error);
56
- throw error;
57
- }
58
- };
59
-
60
- export { SVELTE_PAGE_ROOT_ID, renderToReadableStream };
61
-
62
- //# debugId=57DCADAA808E849F64756E2164756E21
63
- //# sourceMappingURL=chunk-102fp7xe.js.map
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/svelte/renderToReadableStream.ts"],
4
- "sourcesContent": [
5
- "import type { Component, ComponentProps } from 'svelte';\nimport { DEFAULT_CHUNK_SIZE } from '../constants';\nimport { escapeScriptContent } from '../utils/escapeScriptContent';\n\nexport const SVELTE_PAGE_ROOT_ID = '__absolute_svelte_root__';\n\ntype SvelteRenderOutput = {\n\tbody: string;\n\thead: string;\n};\n\ntype SvelteServerRender = (\n\tcomponent: Component<Record<string, unknown>>,\n\toptions?: { props?: Record<string, unknown> }\n) => SvelteRenderOutput | PromiseLike<SvelteRenderOutput>;\n\nexport type RenderStreamOptions = {\n\tbootstrapScriptContent?: string;\n\tbootstrapScripts?: string[];\n\tbootstrapModules?: string[];\n\tnonce?: string;\n\tonError?: (error: unknown) => void;\n\tprogressiveChunkSize?: number;\n\tsignal?: AbortSignal;\n\theadContent?: string;\n\tbodyContent?: string;\n};\n\nexport const renderToReadableStream = async <\n\tComp extends Component<Record<string, unknown>>\n>(\n\tcomponent: Comp,\n\tprops?: ComponentProps<Comp>,\n\t{\n\t\tbootstrapScriptContent,\n\t\tbootstrapScripts = [],\n\t\tbootstrapModules = [],\n\t\tnonce,\n\t\tonError = console.error,\n\t\tprogressiveChunkSize = DEFAULT_CHUNK_SIZE,\n\t\tsignal,\n\t\theadContent,\n\t\tbodyContent\n\t}: RenderStreamOptions = {}\n) => {\n\ttry {\n\t\tconst { render } = await import('svelte/server');\n\t\tconst renderComponent: SvelteServerRender = render;\n\t\tconst rendered =\n\t\t\ttypeof props === 'undefined'\n\t\t\t\t? await renderComponent(component)\n\t\t\t\t: await renderComponent(component, { props });\n\t\tconst { head, body } = rendered;\n\t\tconst nonceAttr = nonce ? ` nonce=\"${nonce}\"` : '';\n\t\tconst scripts =\n\t\t\t(bootstrapScriptContent\n\t\t\t\t? `<script${nonceAttr}>${escapeScriptContent(bootstrapScriptContent)}</script>`\n\t\t\t\t: '') +\n\t\t\tbootstrapScripts\n\t\t\t\t.map((src) => `<script${nonceAttr} src=\"${src}\"></script>`)\n\t\t\t\t.join('') +\n\t\t\tbootstrapModules\n\t\t\t\t.map(\n\t\t\t\t\t(src) =>\n\t\t\t\t\t\t`<script${nonceAttr} type=\"module\" src=\"${src}\"></script>`\n\t\t\t\t)\n\t\t\t\t.join('');\n\t\tconst encoder = new TextEncoder();\n\t\t// Warning: this encodes the entire document into memory in one buffer\n\t\tconst full = encoder.encode(\n\t\t\t`<!DOCTYPE html><html lang=\"en\"><head>${head}${headContent ?? ''}</head><body><div id=\"${SVELTE_PAGE_ROOT_ID}\">${body}</div>${scripts}${bodyContent ?? ''}</body></html>`\n\t\t);\n\n\t\tlet offset = 0;\n\n\t\treturn new ReadableStream<Uint8Array>({\n\t\t\ttype: 'bytes',\n\t\t\tcancel(reason) {\n\t\t\t\tonError?.(reason);\n\t\t\t},\n\t\t\tpull(controller) {\n\t\t\t\tif (signal?.aborted) {\n\t\t\t\t\tcontroller.close();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (offset >= full.length) {\n\t\t\t\t\tcontroller.close();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst end = Math.min(\n\t\t\t\t\toffset + progressiveChunkSize,\n\t\t\t\t\tfull.length\n\t\t\t\t);\n\t\t\t\tcontroller.enqueue(full.subarray(offset, end));\n\t\t\t\toffset = end;\n\t\t\t}\n\t\t});\n\t} catch (error) {\n\t\tonError?.(error);\n\t\tthrow error;\n\t}\n};\n"
6
- ],
7
- "mappings": ";;;;;;;;;;;;AAIO,IAAM,sBAAsB;AAwB5B,IAAM,yBAAyB,OAGrC,WACA;AAAA,EAEC;AAAA,EACA,mBAAmB,CAAC;AAAA,EACpB,mBAAmB,CAAC;AAAA,EACpB;AAAA,EACA,UAAU,QAAQ;AAAA,EAClB,uBAAuB;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,IACwB,CAAC,MACtB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
2
- // src/build/scanEntryPoints.ts
3
- import { existsSync } from "fs";
4
- var {Glob } = globalThis.Bun;
5
- var scanEntryPoints = async (dir, pattern) => {
6
- if (!existsSync(dir))
7
- return [];
8
- const entryPaths = [];
9
- const glob = new Glob(pattern);
10
- for await (const file of glob.scan({ absolute: true, cwd: dir })) {
11
- entryPaths.push(file);
12
- }
13
- return entryPaths;
14
- };
15
-
16
- export { scanEntryPoints };
17
-
18
- //# debugId=5F3598D716FE886864756E2164756E21
19
- //# sourceMappingURL=chunk-11zpfqz6.js.map
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/build/scanEntryPoints.ts"],
4
- "sourcesContent": [
5
- "import { existsSync } from 'node:fs';\nimport { Glob } from 'bun';\n\nexport const scanEntryPoints = async (dir: string, pattern: string) => {\n\t// Gracefully handle missing directories — this happens during framework\n\t// scaffolding when the config references a directory being created.\n\tif (!existsSync(dir)) return [];\n\n\tconst entryPaths: string[] = [];\n\tconst glob = new Glob(pattern);\n\tfor await (const file of glob.scan({ absolute: true, cwd: dir })) {\n\t\tentryPaths.push(file);\n\t}\n\n\treturn entryPaths;\n};\n"
6
- ],
7
- "mappings": ";;AAAA;AACA;AAEO,IAAM,kBAAkB,OAAO,KAAa,YAAoB;AAAA,EAGtE,IAAI,CAAC,WAAW,GAAG;AAAA,IAAG,OAAO,CAAC;AAAA,EAE9B,MAAM,aAAuB,CAAC;AAAA,EAC9B,MAAM,OAAO,IAAI,KAAK,OAAO;AAAA,EAC7B,iBAAiB,QAAQ,KAAK,KAAK,EAAE,UAAU,MAAM,KAAK,IAAI,CAAC,GAAG;AAAA,IACjE,WAAW,KAAK,IAAI;AAAA,EACrB;AAAA,EAEA,OAAO;AAAA;",
8
- "debugId": "5F3598D716FE886864756E2164756E21",
9
- "names": []
10
- }
@@ -1,319 +0,0 @@
1
- // @bun
2
- import {
3
- generateVendorEntrySource
4
- } from "./chunk-7kjj42xm.js";
5
- import {
6
- __require
7
- } from "./chunk-bmgqm774.js";
8
-
9
- // src/build/buildAngularVendor.ts
10
- import { mkdirSync as mkdirSync2 } from "fs";
11
- import { join as join2 } from "path";
12
- import { rm } from "fs/promises";
13
- var {build: bunBuild, Glob } = globalThis.Bun;
14
-
15
- // src/build/angularLinkerPlugin.ts
16
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
17
- import { dirname, join, relative, resolve } from "path";
18
- import { createHash } from "crypto";
19
- var CACHE_ROOT = resolve(".absolutejs", "cache", "angular-linker");
20
- var createAngularLinkerPlugin = (linkerJitMode) => ({
21
- name: "angular-linker",
22
- setup(bld) {
23
- let needsLinking;
24
- let babelTransform;
25
- let linkerPlugin;
26
- const cacheDir = join(CACHE_ROOT, linkerJitMode ? "jit" : "aot");
27
- bld.onLoad({ filter: /[\\/]@angular[\\/].*\.m?js$/ }, async (args) => {
28
- const source = await Bun.file(args.path).text();
29
- if (!needsLinking) {
30
- const specifier = "@angular/compiler-cli/linker";
31
- const mod = await import(specifier);
32
- ({ needsLinking } = mod);
33
- }
34
- const checkLink = needsLinking;
35
- if (!checkLink || !checkLink(args.path, source)) {
36
- return;
37
- }
38
- const hash = createHash("md5").update(source).digest("hex");
39
- const cachePath = join(cacheDir, `${hash}.js`);
40
- if (existsSync(cachePath)) {
41
- return {
42
- contents: readFileSync(cachePath, "utf-8"),
43
- loader: "js"
44
- };
45
- }
46
- if (!babelTransform) {
47
- const babelSpecifier = "@babel/core";
48
- const babel = await import(babelSpecifier);
49
- babelTransform = babel.transformSync;
50
- }
51
- if (!linkerPlugin) {
52
- const linkerSpecifier = "@angular/compiler-cli/linker/babel";
53
- const mod = await import(linkerSpecifier);
54
- linkerPlugin = mod.createEs2015LinkerPlugin({
55
- fileSystem: {
56
- dirname,
57
- exists: existsSync,
58
- readFile: readFileSync,
59
- relative,
60
- resolve
61
- },
62
- linkerJitMode,
63
- logger: {
64
- error: console.error,
65
- level: 1,
66
- warn: console.warn,
67
- debug: () => {},
68
- info: () => {}
69
- }
70
- });
71
- }
72
- const transform = babelTransform;
73
- if (!transform) {
74
- return { contents: source, loader: "js" };
75
- }
76
- const result = transform(source, {
77
- compact: false,
78
- filename: args.path,
79
- filenameRelative: args.path,
80
- plugins: [linkerPlugin],
81
- sourceMaps: false
82
- });
83
- const linked = result?.code ?? source;
84
- mkdirSync(cacheDir, { recursive: true });
85
- writeFileSync(cachePath, linked, "utf-8");
86
- return { contents: linked, loader: "js" };
87
- });
88
- }
89
- });
90
- var angularLinkerPlugin = createAngularLinkerPlugin(false);
91
-
92
- // src/build/buildAngularVendor.ts
93
- var REQUIRED_ANGULAR_SPECIFIERS_BASE = [
94
- "@angular/core",
95
- "@angular/common",
96
- "@angular/common/http",
97
- "@angular/platform-browser"
98
- ];
99
- var requiredAngularSpecifiers = (jitMode) => jitMode ? [...REQUIRED_ANGULAR_SPECIFIERS_BASE, "@angular/compiler"] : REQUIRED_ANGULAR_SPECIFIERS_BASE;
100
- var SERVER_ONLY_ANGULAR_SPECIFIERS = new Set([
101
- "@angular/platform-server",
102
- "@angular/ssr"
103
- ]);
104
- var SCAN_SKIP_DIRS = new Set([
105
- "node_modules",
106
- "build",
107
- "dist",
108
- ".absolutejs",
109
- "generated"
110
- ]);
111
- var isResolvable = (specifier) => {
112
- try {
113
- Bun.resolveSync(specifier, process.cwd());
114
- return true;
115
- } catch {
116
- return false;
117
- }
118
- };
119
- var isBareSpecifier = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/");
120
- var isAngularBrowserSpecifier = (spec) => spec.startsWith("@angular/") && !SERVER_ONLY_ANGULAR_SPECIFIERS.has(spec);
121
- var scanSourceImports = async (directories) => {
122
- const angular = new Set;
123
- const transitiveRoots = new Set;
124
- const transpiler = new Bun.Transpiler({ loader: "tsx" });
125
- const glob = new Glob("**/*.{ts,tsx,js,jsx}");
126
- for (const dir of directories) {
127
- try {
128
- for await (const file of glob.scan({ absolute: true, cwd: dir })) {
129
- const rel = file.slice(dir.length + 1);
130
- const [first] = rel.split("/");
131
- if (first && SCAN_SKIP_DIRS.has(first))
132
- continue;
133
- try {
134
- const content = await Bun.file(file).text();
135
- for (const imp of transpiler.scanImports(content)) {
136
- if (isAngularBrowserSpecifier(imp.path)) {
137
- angular.add(imp.path);
138
- } else if (isBareSpecifier(imp.path)) {
139
- transitiveRoots.add(imp.path);
140
- }
141
- }
142
- } catch {}
143
- }
144
- } catch {}
145
- }
146
- return { angular, transitiveRoots };
147
- };
148
- var PARTIAL_DECL_MARKERS = [
149
- "\u0275\u0275ngDeclareDirective",
150
- "\u0275\u0275ngDeclareComponent",
151
- "\u0275\u0275ngDeclareFactory",
152
- "\u0275\u0275ngDeclareInjectable",
153
- "\u0275\u0275ngDeclareInjector",
154
- "\u0275\u0275ngDeclareNgModule",
155
- "\u0275\u0275ngDeclarePipe",
156
- "\u0275\u0275ngDeclareClassMetadata"
157
- ];
158
- var containsPartialDeclarations = (source) => PARTIAL_DECL_MARKERS.some((marker) => source.includes(marker));
159
- var collectTransitiveAngularSpecs = async (roots, angularFound) => {
160
- const { readFileSync: readFileSync2 } = await import("fs");
161
- const transpiler = new Bun.Transpiler({ loader: "js" });
162
- const visited = new Set;
163
- const frontier = [];
164
- for (const r of roots)
165
- frontier.push(r);
166
- const MAX_PASSES = 5;
167
- for (let pass = 0;pass < MAX_PASSES; pass++) {
168
- const next = [];
169
- for (const spec of frontier) {
170
- if (visited.has(spec))
171
- continue;
172
- visited.add(spec);
173
- let resolved;
174
- try {
175
- resolved = Bun.resolveSync(spec, process.cwd());
176
- } catch {
177
- continue;
178
- }
179
- let content;
180
- try {
181
- content = readFileSync2(resolved, "utf-8");
182
- } catch {
183
- continue;
184
- }
185
- if (!isAngularBrowserSpecifier(spec) && containsPartialDeclarations(content)) {
186
- angularFound.add(spec);
187
- }
188
- let imports;
189
- try {
190
- imports = transpiler.scanImports(content);
191
- } catch {
192
- continue;
193
- }
194
- for (const imp of imports) {
195
- const child = imp.path;
196
- if (!isBareSpecifier(child))
197
- continue;
198
- if (visited.has(child))
199
- continue;
200
- if (isAngularBrowserSpecifier(child)) {
201
- angularFound.add(child);
202
- }
203
- next.push(child);
204
- }
205
- }
206
- if (next.length === 0)
207
- break;
208
- frontier.length = 0;
209
- for (const s of next)
210
- frontier.push(s);
211
- }
212
- };
213
- var toSafeFileName = (specifier) => specifier.replace(/^@/, "").replace(/\//g, "_");
214
- var resolveAngularSpecifiers = async (directories, linkerJitMode) => {
215
- const { angular, transitiveRoots } = await scanSourceImports(directories);
216
- for (const spec of requiredAngularSpecifiers(linkerJitMode)) {
217
- angular.add(spec);
218
- }
219
- await collectTransitiveAngularSpecs([...angular, ...transitiveRoots], angular);
220
- return Array.from(angular).filter(isResolvable);
221
- };
222
- var buildAngularVendor = async (buildDir, directories = [], linkerJitMode = false, depVendorSpecifiers = []) => {
223
- const vendorDir = join2(buildDir, "angular", "vendor");
224
- mkdirSync2(vendorDir, { recursive: true });
225
- const tmpDir = join2(buildDir, "_angular_vendor_tmp");
226
- mkdirSync2(tmpDir, { recursive: true });
227
- const specifiers = await resolveAngularSpecifiers(directories, linkerJitMode);
228
- const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
229
- const safeName = toSafeFileName(specifier);
230
- const entryPath = join2(tmpDir, `${safeName}.ts`);
231
- await Bun.write(entryPath, generateVendorEntrySource(specifier));
232
- return entryPath;
233
- }));
234
- const result = await bunBuild({
235
- entrypoints,
236
- external: depVendorSpecifiers,
237
- format: "esm",
238
- minify: false,
239
- naming: "[name].[ext]",
240
- outdir: vendorDir,
241
- plugins: [createAngularLinkerPlugin(linkerJitMode)],
242
- splitting: true,
243
- target: "browser",
244
- throw: false
245
- });
246
- await rm(tmpDir, { force: true, recursive: true });
247
- if (!result.success) {
248
- console.warn("\u26A0\uFE0F Angular vendor build had errors:", result.logs);
249
- }
250
- return specifiers;
251
- };
252
- var computeAngularVendorPaths = (specifiers = requiredAngularSpecifiers(true)) => {
253
- const paths = {};
254
- for (const specifier of specifiers) {
255
- paths[specifier] = `/angular/vendor/${toSafeFileName(specifier)}.js`;
256
- }
257
- return paths;
258
- };
259
- var computeAngularVendorPathsAsync = async (directories = [], linkerJitMode = true) => {
260
- const specifiers = await resolveAngularSpecifiers(directories, linkerJitMode);
261
- return computeAngularVendorPaths(specifiers);
262
- };
263
- var buildAngularServerVendor = async (buildDir, directories = [], linkerJitMode = false) => {
264
- const vendorDir = join2(buildDir, "angular", "vendor", "server");
265
- mkdirSync2(vendorDir, { recursive: true });
266
- const tmpDir = join2(buildDir, "_angular_server_vendor_tmp");
267
- mkdirSync2(tmpDir, { recursive: true });
268
- const browserSpecs = await resolveAngularSpecifiers(directories, linkerJitMode);
269
- const allSpecs = new Set(browserSpecs);
270
- for (const spec of SERVER_ONLY_ANGULAR_SPECIFIERS) {
271
- if (isResolvable(spec))
272
- allSpecs.add(spec);
273
- }
274
- const specifiers = Array.from(allSpecs);
275
- const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
276
- const safeName = toSafeFileName(specifier);
277
- const entryPath = join2(tmpDir, `${safeName}.ts`);
278
- await Bun.write(entryPath, generateVendorEntrySource(specifier));
279
- return entryPath;
280
- }));
281
- const result = await bunBuild({
282
- entrypoints,
283
- format: "esm",
284
- minify: false,
285
- naming: "[name].[ext]",
286
- outdir: vendorDir,
287
- plugins: [createAngularLinkerPlugin(linkerJitMode)],
288
- splitting: true,
289
- target: "bun",
290
- throw: false
291
- });
292
- await rm(tmpDir, { force: true, recursive: true });
293
- if (!result.success) {
294
- console.warn("\u26A0\uFE0F Angular server vendor build had errors:", result.logs);
295
- }
296
- return specifiers;
297
- };
298
- var computeAngularServerVendorPaths = (buildDir, specifiers) => {
299
- const paths = {};
300
- const vendorDir = join2(buildDir, "angular", "vendor", "server");
301
- for (const specifier of specifiers) {
302
- paths[specifier] = join2(vendorDir, `${toSafeFileName(specifier)}.js`);
303
- }
304
- return paths;
305
- };
306
- var computeAngularServerVendorPathsAsync = async (buildDir, directories = [], linkerJitMode = true) => {
307
- const browserSpecs = await resolveAngularSpecifiers(directories, linkerJitMode);
308
- const allSpecs = new Set(browserSpecs);
309
- for (const spec of SERVER_ONLY_ANGULAR_SPECIFIERS) {
310
- if (isResolvable(spec))
311
- allSpecs.add(spec);
312
- }
313
- return computeAngularServerVendorPaths(buildDir, Array.from(allSpecs));
314
- };
315
-
316
- export { createAngularLinkerPlugin, buildAngularVendor, computeAngularVendorPaths, computeAngularVendorPathsAsync, buildAngularServerVendor, computeAngularServerVendorPaths, computeAngularServerVendorPathsAsync };
317
-
318
- //# debugId=E1E3E54B85574B7C64756E2164756E21
319
- //# sourceMappingURL=chunk-1rfh7hw9.js.map
@@ -1,11 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/build/buildAngularVendor.ts", "../src/build/angularLinkerPlugin.ts"],
4
- "sourcesContent": [
5
- "import { mkdirSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { rm } from 'node:fs/promises';\nimport { build as bunBuild, Glob } from 'bun';\nimport { createAngularLinkerPlugin } from './angularLinkerPlugin';\nimport { generateVendorEntrySource } from './vendorEntrySource';\n\n/** Always-vendored Angular packages.\n * Required for any Angular page even if not imported in user code: the runtime\n * needs them to bootstrap. Server-only packages (@angular/platform-server) are\n * excluded. Additional @angular/* packages are auto-discovered from source.\n *\n * `@angular/compiler` is included only when the vendor is built in JIT mode\n * (dev). In AOT mode (prod) every `ɵɵngDeclare*` has been linked at vendor\n * build time, so the compiler isn't needed at runtime and is dropped to keep\n * the prod artifact slim. */\nconst REQUIRED_ANGULAR_SPECIFIERS_BASE = [\n\t'@angular/core',\n\t'@angular/common',\n\t'@angular/common/http',\n\t'@angular/platform-browser'\n];\nconst requiredAngularSpecifiers = (jitMode: boolean) =>\n\tjitMode\n\t\t? [...REQUIRED_ANGULAR_SPECIFIERS_BASE, '@angular/compiler']\n\t\t: REQUIRED_ANGULAR_SPECIFIERS_BASE;\n\n/** Server-only Angular packages — needed for SSR runtime, not for the\n * browser. `@angular/compiler-cli` is intentionally omitted: it's a\n * build-time package (it ships the linker and the AOT compiler) and has\n * no runtime role, so vendoring it would just bloat the artifact. */\nconst SERVER_ONLY_ANGULAR_SPECIFIERS = new Set([\n\t'@angular/platform-server',\n\t'@angular/ssr'\n]);\n\nconst SCAN_SKIP_DIRS = new Set([\n\t'node_modules',\n\t'build',\n\t'dist',\n\t'.absolutejs',\n\t'generated'\n]);\n\nconst isResolvable = (specifier: string) => {\n\ttry {\n\t\tBun.resolveSync(specifier, process.cwd());\n\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n\nconst isBareSpecifier = (spec: string) =>\n\t!spec.startsWith('.') && !spec.startsWith('/') && !spec.startsWith('@src/');\n\nconst isAngularBrowserSpecifier = (spec: string) =>\n\tspec.startsWith('@angular/') && !SERVER_ONLY_ANGULAR_SPECIFIERS.has(spec);\n\n/** Scan user source for any imports — both @angular/* (kept) and other bare\n * specs (returned as transitive scan seeds). Finding angular subpaths only\n * reachable through deps (e.g. `@angular/core/rxjs-interop` from\n * `@angular/fire/compat/auth`) requires walking through non-angular roots. */\nconst scanSourceImports = async (directories: string[]) => {\n\tconst angular = new Set<string>();\n\tconst transitiveRoots = new Set<string>();\n\tconst transpiler = new Bun.Transpiler({ loader: 'tsx' });\n\tconst glob = new Glob('**/*.{ts,tsx,js,jsx}');\n\n\tfor (const dir of directories) {\n\t\ttry {\n\t\t\tfor await (const file of glob.scan({ absolute: true, cwd: dir })) {\n\t\t\t\tconst rel = file.slice(dir.length + 1);\n\t\t\t\tconst [first] = rel.split('/');\n\t\t\t\tif (first && SCAN_SKIP_DIRS.has(first)) continue;\n\t\t\t\ttry {\n\t\t\t\t\tconst content = await Bun.file(file).text();\n\t\t\t\t\tfor (const imp of transpiler.scanImports(content)) {\n\t\t\t\t\t\tif (isAngularBrowserSpecifier(imp.path)) {\n\t\t\t\t\t\t\tangular.add(imp.path);\n\t\t\t\t\t\t} else if (isBareSpecifier(imp.path)) {\n\t\t\t\t\t\t\ttransitiveRoots.add(imp.path);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch {\n\t\t\t\t\t// unreadable file, skip\n\t\t\t\t}\n\t\t\t}\n\t\t} catch {\n\t\t\t// missing dir, skip\n\t\t}\n\t}\n\n\treturn { angular, transitiveRoots };\n};\n\n/** Marker substrings emitted by Angular's partial-AOT compiler into any\n * package that ships `ɵɵngDeclare*` declarations. The presence of any\n * one of these means the file needs the linker before it can run, which\n * in turn means the package belongs in the Angular vendor — even if it's\n * not under `@angular/*` (e.g. `@ngx-translate/core`, `@ng-bootstrap`,\n * community Material extensions, etc.). Mirrors `declarationFunctions`\n * in `@angular/compiler-cli/linker`. */\nconst PARTIAL_DECL_MARKERS = [\n\t'ɵɵngDeclareDirective',\n\t'ɵɵngDeclareComponent',\n\t'ɵɵngDeclareFactory',\n\t'ɵɵngDeclareInjectable',\n\t'ɵɵngDeclareInjector',\n\t'ɵɵngDeclareNgModule',\n\t'ɵɵngDeclarePipe',\n\t'ɵɵngDeclareClassMetadata'\n];\n\nconst containsPartialDeclarations = (source: string) =>\n\tPARTIAL_DECL_MARKERS.some((marker) => source.includes(marker));\n\n/** Walk through transitive deps and harvest any @angular/* subpaths reachable\n * via non-angular packages (e.g. firebase imports `@angular/core/rxjs-interop`\n * through @angular/fire). Also harvests any non-@angular package whose\n * shipped code contains partial AOT declarations — those need the linker\n * too, so they belong in the Angular vendor pipeline. */\nconst collectTransitiveAngularSpecs = async (\n\troots: Iterable<string>,\n\tangularFound: Set<string>\n) => {\n\tconst { readFileSync } = await import('node:fs');\n\tconst transpiler = new Bun.Transpiler({ loader: 'js' });\n\tconst visited = new Set<string>();\n\tconst frontier: string[] = [];\n\tfor (const r of roots) frontier.push(r);\n\n\tconst MAX_PASSES = 5;\n\tfor (let pass = 0; pass < MAX_PASSES; pass++) {\n\t\tconst next: string[] = [];\n\t\tfor (const spec of frontier) {\n\t\t\tif (visited.has(spec)) continue;\n\t\t\tvisited.add(spec);\n\t\t\tlet resolved: string;\n\t\t\ttry {\n\t\t\t\tresolved = Bun.resolveSync(spec, process.cwd());\n\t\t\t} catch {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlet content: string;\n\t\t\ttry {\n\t\t\t\tcontent = readFileSync(resolved, 'utf-8');\n\t\t\t} catch {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// If this file ships partial AOT declarations, the *package* it\n\t\t\t// belongs to needs the linker — add the spec used to import it.\n\t\t\t// Skip if it's already an @angular/* spec (covered separately).\n\t\t\tif (\n\t\t\t\t!isAngularBrowserSpecifier(spec) &&\n\t\t\t\tcontainsPartialDeclarations(content)\n\t\t\t) {\n\t\t\t\tangularFound.add(spec);\n\t\t\t}\n\t\t\tlet imports;\n\t\t\ttry {\n\t\t\t\timports = transpiler.scanImports(content);\n\t\t\t} catch {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (const imp of imports) {\n\t\t\t\tconst child = imp.path;\n\t\t\t\tif (!isBareSpecifier(child)) continue;\n\t\t\t\tif (visited.has(child)) continue;\n\t\t\t\tif (isAngularBrowserSpecifier(child)) {\n\t\t\t\t\tangularFound.add(child);\n\t\t\t\t}\n\t\t\t\tnext.push(child);\n\t\t\t}\n\t\t}\n\t\tif (next.length === 0) break;\n\t\tfrontier.length = 0;\n\t\tfor (const s of next) frontier.push(s);\n\t}\n};\n\n/** Convert a bare specifier to a safe filename:\n * @angular/common/http → angular_common_http */\nconst toSafeFileName = (specifier: string) =>\n\tspecifier.replace(/^@/, '').replace(/\\//g, '_');\n\nconst resolveAngularSpecifiers = async (\n\tdirectories: string[],\n\tlinkerJitMode: boolean\n) => {\n\tconst { angular, transitiveRoots } = await scanSourceImports(directories);\n\tfor (const spec of requiredAngularSpecifiers(linkerJitMode)) {\n\t\tangular.add(spec);\n\t}\n\tawait collectTransitiveAngularSpecs(\n\t\t[...angular, ...transitiveRoots],\n\t\tangular\n\t);\n\n\treturn Array.from(angular).filter(isResolvable);\n};\n\n/** Build vendor bundles for every @angular/* package the project imports.\n * `linkerJitMode` controls whether NgModule definitions retain their\n * declarations/exports — required when consumer (user) components are\n * runtime-compiled by `@angular/compiler` (dev/HMR via compileAngularFileJIT).\n * Production AOT builds set this to false to match AOT'd user components.\n *\n * `depVendorSpecifiers` are non-framework packages that are also vendored\n * separately (by `buildDepVendor`). They MUST be externalized here too —\n * otherwise transitive imports like `@angular/fire/compat/auth` →\n * `firebase/compat/auth` get bundled twice, creating duplicate\n * @firebase/app-compat instances. The angular-vendor copy registers\n * `firebase.auth.*` on its own firebase singleton, leaving the user's\n * `import firebase from 'firebase/compat/app'` with `firebase.auth` undefined.\n * Externalizing forces both pipelines to share the same /vendor chunks. */\nexport const buildAngularVendor = async (\n\tbuildDir: string,\n\tdirectories: string[] = [],\n\tlinkerJitMode = false,\n\tdepVendorSpecifiers: string[] = []\n) => {\n\tconst vendorDir = join(buildDir, 'angular', 'vendor');\n\tmkdirSync(vendorDir, { recursive: true });\n\n\tconst tmpDir = join(buildDir, '_angular_vendor_tmp');\n\tmkdirSync(tmpDir, { recursive: true });\n\n\tconst specifiers = await resolveAngularSpecifiers(\n\t\tdirectories,\n\t\tlinkerJitMode\n\t);\n\n\t// Angular packages are proper ESM. `export *` re-exports only NAMED exports\n\t// per ECMA spec, so we use the namespace-default-fallback pattern that's\n\t// safe regardless of whether the package has a default export.\n\tconst entrypoints = await Promise.all(\n\t\tspecifiers.map(async (specifier) => {\n\t\t\tconst safeName = toSafeFileName(specifier);\n\t\t\tconst entryPath = join(tmpDir, `${safeName}.ts`);\n\t\t\tawait Bun.write(entryPath, generateVendorEntrySource(specifier));\n\n\t\t\treturn entryPath;\n\t\t})\n\t);\n\n\tconst result = await bunBuild({\n\t\tentrypoints,\n\t\texternal: depVendorSpecifiers,\n\t\tformat: 'esm',\n\t\tminify: false,\n\t\tnaming: '[name].[ext]',\n\t\toutdir: vendorDir,\n\t\tplugins: [createAngularLinkerPlugin(linkerJitMode)],\n\t\tsplitting: true,\n\t\ttarget: 'browser',\n\t\tthrow: false\n\t});\n\n\tawait rm(tmpDir, { force: true, recursive: true });\n\n\tif (!result.success) {\n\t\tconsole.warn('⚠️ Angular vendor build had errors:', result.logs);\n\t}\n\n\treturn specifiers;\n};\nexport const computeAngularVendorPaths = (\n\tspecifiers: string[] = requiredAngularSpecifiers(true)\n) => {\n\tconst paths: Record<string, string> = {};\n\tfor (const specifier of specifiers) {\n\t\tpaths[specifier] = `/angular/vendor/${toSafeFileName(specifier)}.js`;\n\t}\n\n\treturn paths;\n};\n\n/** Async variant that scans source + transitive deps before producing the\n * vendor path map. Use this when the page-bundle build needs the full set of\n * angular specs in its rewrite map (otherwise transitively-discovered subpaths\n * like `@angular/core/rxjs-interop` end up as bare specifiers in the output). */\nexport const computeAngularVendorPathsAsync = async (\n\tdirectories: string[] = [],\n\tlinkerJitMode = true\n) => {\n\tconst specifiers = await resolveAngularSpecifiers(\n\t\tdirectories,\n\t\tlinkerJitMode\n\t);\n\n\treturn computeAngularVendorPaths(specifiers);\n};\n\n/** Server-side counterpart to `buildAngularVendor`. Outputs fully-linked\n * Bun-target ESM bundles for every @angular/* package the project uses,\n * *plus* `@angular/platform-server` and `@angular/ssr` (excluded from the\n * browser vendor). The server bundle and `getAngularDeps()` import from\n * these paths so SSR shares one Angular runtime instance with the page\n * bundles — eliminates the dual-package hazard that produces NG0201.\n *\n * After this build, `@angular/compiler` is no longer required at runtime\n * for AOT-mode builds: every partial `ɵɵngDeclare*` has been linked into\n * final ɵdir/ɵcmp/ɵfac definitions in the vendor output. */\nexport const buildAngularServerVendor = async (\n\tbuildDir: string,\n\tdirectories: string[] = [],\n\tlinkerJitMode = false\n) => {\n\tconst vendorDir = join(buildDir, 'angular', 'vendor', 'server');\n\tmkdirSync(vendorDir, { recursive: true });\n\n\tconst tmpDir = join(buildDir, '_angular_server_vendor_tmp');\n\tmkdirSync(tmpDir, { recursive: true });\n\n\tconst browserSpecs = await resolveAngularSpecifiers(\n\t\tdirectories,\n\t\tlinkerJitMode\n\t);\n\tconst allSpecs = new Set(browserSpecs);\n\tfor (const spec of SERVER_ONLY_ANGULAR_SPECIFIERS) {\n\t\tif (isResolvable(spec)) allSpecs.add(spec);\n\t}\n\tconst specifiers = Array.from(allSpecs);\n\n\tconst entrypoints = await Promise.all(\n\t\tspecifiers.map(async (specifier) => {\n\t\t\tconst safeName = toSafeFileName(specifier);\n\t\t\tconst entryPath = join(tmpDir, `${safeName}.ts`);\n\t\t\tawait Bun.write(entryPath, generateVendorEntrySource(specifier));\n\n\t\t\treturn entryPath;\n\t\t})\n\t);\n\n\tconst result = await bunBuild({\n\t\tentrypoints,\n\t\tformat: 'esm',\n\t\tminify: false,\n\t\tnaming: '[name].[ext]',\n\t\toutdir: vendorDir,\n\t\tplugins: [createAngularLinkerPlugin(linkerJitMode)],\n\t\tsplitting: true,\n\t\ttarget: 'bun',\n\t\tthrow: false\n\t});\n\n\tawait rm(tmpDir, { force: true, recursive: true });\n\n\tif (!result.success) {\n\t\tconsole.warn(\n\t\t\t'⚠️ Angular server vendor build had errors:',\n\t\t\tresult.logs\n\t\t);\n\t}\n\n\treturn specifiers;\n};\n\n/** Absolute filesystem paths to server vendor files, for `rewriteImports`\n * on server-side bundles and for runtime resolution in `getAngularDeps`. */\nexport const computeAngularServerVendorPaths = (\n\tbuildDir: string,\n\tspecifiers: string[]\n) => {\n\tconst paths: Record<string, string> = {};\n\tconst vendorDir = join(buildDir, 'angular', 'vendor', 'server');\n\tfor (const specifier of specifiers) {\n\t\tpaths[specifier] = join(vendorDir, `${toSafeFileName(specifier)}.js`);\n\t}\n\n\treturn paths;\n};\n\n/** Async server-vendor path map: scans source + transitive deps, then\n * produces absolute filesystem paths for every @angular/* spec the project\n * uses (plus the always-vendored server-only specs). Mirrors\n * `computeAngularVendorPathsAsync` but for server-side rewriting. */\nexport const computeAngularServerVendorPathsAsync = async (\n\tbuildDir: string,\n\tdirectories: string[] = [],\n\tlinkerJitMode = true\n) => {\n\tconst browserSpecs = await resolveAngularSpecifiers(\n\t\tdirectories,\n\t\tlinkerJitMode\n\t);\n\tconst allSpecs = new Set(browserSpecs);\n\tfor (const spec of SERVER_ONLY_ANGULAR_SPECIFIERS) {\n\t\tif (isResolvable(spec)) allSpecs.add(spec);\n\t}\n\n\treturn computeAngularServerVendorPaths(buildDir, Array.from(allSpecs));\n};\n",
6
- "import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';\nimport { dirname, join, relative, resolve } from 'node:path';\nimport { createHash } from 'node:crypto';\nimport type { BunPlugin } from 'bun';\n\nconst CACHE_ROOT = resolve('.absolutejs', 'cache', 'angular-linker');\n\n/**\n * Bun bundler plugin that runs the Angular Linker on partially compiled\n * Angular libraries at build time. Converts ɵɵngDeclare* declarations\n * into fully linked code.\n *\n * The `linkerJitMode` flag controls whether NgModule definitions retain\n * `declarations`/`exports` (JIT-mode, required when consumer code is\n * runtime-compiled) or strip them (AOT-mode, smaller output but only\n * correct when consumer components have ɵcmp.dependencies baked in by\n * the Angular compiler-cli).\n *\n * In AbsoluteJS dev/HMR, user components are TypeScript-transpiled via\n * `compileAngularFileJIT` and rely on @angular/compiler at runtime —\n * that runtime JIT path reads `NgModule.ɵmod.declarations` to find\n * directives like FormGroupDirective. Linking vendor code in AOT mode\n * (the default) silently breaks dev because declarations get stripped\n * and runtime JIT then can't resolve `[formGroup]`, `[ngIf]`, etc. So\n * dev/HMR builds must use `linkerJitMode: true`. Production AOT builds\n * use `linkerJitMode: false` (matches AOT'd user components).\n *\n * Cache key includes mode so dev and prod artifacts don't collide.\n */\nexport const createAngularLinkerPlugin = (\n\tlinkerJitMode: boolean\n): BunPlugin => ({\n\tname: 'angular-linker',\n\tsetup(bld) {\n\t\tlet needsLinking: ((path: string, source: string) => boolean) | undefined;\n\t\tlet babelTransform: ((source: string, options: Record<string, unknown>) => { code?: string } | null) | undefined;\n\t\tlet linkerPlugin: unknown;\n\n\t\tconst cacheDir = join(CACHE_ROOT, linkerJitMode ? 'jit' : 'aot');\n\n\t\tbld.onLoad(\n\t\t\t{ filter: /[\\\\/]@angular[\\\\/].*\\.m?js$/ },\n\t\t\tasync (args) => {\n\t\t\t\tconst source = await Bun.file(args.path).text();\n\n\t\t\t\tif (!needsLinking) {\n\t\t\t\t\tconst specifier = '@angular/compiler-cli/linker';\n\t\t\t\t\tconst mod = await import(specifier);\n\t\t\t\t\t({ needsLinking } = mod);\n\t\t\t\t}\n\n\t\t\t\tconst checkLink = needsLinking;\n\t\t\t\tif (!checkLink || !checkLink(args.path, source)) {\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\n\t\t\t\tconst hash = createHash('md5')\n\t\t\t\t\t.update(source)\n\t\t\t\t\t.digest('hex');\n\t\t\t\tconst cachePath = join(cacheDir, `${hash}.js`);\n\n\t\t\t\tif (existsSync(cachePath)) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tcontents: readFileSync(cachePath, 'utf-8'),\n\t\t\t\t\t\tloader: 'js'\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tif (!babelTransform) {\n\t\t\t\t\tconst babelSpecifier = '@babel/core';\n\t\t\t\t\tconst babel = await import(babelSpecifier);\n\t\t\t\t\tbabelTransform = babel.transformSync;\n\t\t\t\t}\n\t\t\t\tif (!linkerPlugin) {\n\t\t\t\t\tconst linkerSpecifier = '@angular/compiler-cli/linker/babel';\n\t\t\t\t\tconst mod = await import(linkerSpecifier);\n\t\t\t\t\tlinkerPlugin = mod.createEs2015LinkerPlugin({\n\t\t\t\t\t\tfileSystem: {\n\t\t\t\t\t\t\tdirname,\n\t\t\t\t\t\t\texists: existsSync,\n\t\t\t\t\t\t\treadFile: readFileSync,\n\t\t\t\t\t\t\trelative,\n\t\t\t\t\t\t\tresolve\n\t\t\t\t\t\t},\n\t\t\t\t\t\tlinkerJitMode,\n\t\t\t\t\t\tlogger: {\n\t\t\t\t\t\t\terror: console.error,\n\t\t\t\t\t\t\tlevel: 1,\n\t\t\t\t\t\t\twarn: console.warn,\n\t\t\t\t\t\t\tdebug: () => { /* noop */ },\n\t\t\t\t\t\t\tinfo: () => { /* noop */ }\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tconst transform = babelTransform;\n\t\t\t\tif (!transform) {\n\t\t\t\t\treturn { contents: source, loader: 'js' };\n\t\t\t\t}\n\n\t\t\t\tconst result = transform(source, {\n\t\t\t\t\tcompact: false,\n\t\t\t\t\tfilename: args.path,\n\t\t\t\t\tfilenameRelative: args.path,\n\t\t\t\t\tplugins: [linkerPlugin],\n\t\t\t\t\tsourceMaps: false\n\t\t\t\t});\n\n\t\t\t\tconst linked = result?.code ?? source;\n\n\t\t\t\tmkdirSync(cacheDir, { recursive: true });\n\t\t\t\twriteFileSync(cachePath, linked, 'utf-8');\n\n\t\t\t\treturn { contents: linked, loader: 'js' };\n\t\t\t}\n\t\t);\n\t}\n});\n\n/** Default AOT-mode plugin instance — keep for callers that don't need\n * to choose. Production AOT builds and any callsite that AOT-compiles\n * user components alongside vendor should use this. */\nexport const angularLinkerPlugin: BunPlugin = createAngularLinkerPlugin(false);\n"
7
- ],
8
- "mappings": ";;;;;;;;;AAAA,sBAAS;AACT,iBAAS;AACT;AACA;;;ACHA;AACA;AACA;AAGA,IAAM,aAAa,QAAQ,eAAe,SAAS,gBAAgB;AAwB5D,IAAM,4BAA4B,CACxC,mBACgB;AAAA,EAChB,MAAM;AAAA,EACN,KAAK,CAAC,KAAK;AAAA,IACV,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IAEJ,MAAM,WAAW,KAAK,YAAY,gBAAgB,QAAQ,KAAK;AAAA,IAE/D,IAAI,OACH,EAAE,QAAQ,8BAA8B,GACxC,OAAO,SAAS;AAAA,MACf,MAAM,SAAS,MAAM,IAAI,KAAK,KAAK,IAAI,EAAE,KAAK;AAAA,MAE9C,IAAI,CAAC,cAAc;AAAA,QAClB,MAAM,YAAY;AAAA,QAClB,MAAM,MAAM,MAAa;AAAA,SACxB,EAAE,aAAa,IAAI;AAAA,MACrB;AAAA,MAE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ACP,wDACA,OAAO,IACR;AAAA,EACD;AAAA,EAEA,OAAO;AAAA;AAKD,IAAM,kCAAkC,CAC9C,UACA,eACI;AAAA,EACJ,MAAM,QAAgC,CAAC;AAAA,EACvC,MAAM,YAAY,MAAK,UAAU,WAAW,UAAU,QAAQ;AAAA,EAC9D,WAAW,aAAa,YAAY;AAAA,IACnC,MAAM,aAAa,MAAK,WAAW,GAAG,eAAe,SAAS,MAAM;AAAA,EACrE;AAAA,EAEA,OAAO;AAAA;AAOD,IAAM,uCAAuC,OACnD,UACA,cAAwB,CAAC,GACzB,gBAAgB,SACZ;AAAA,EACJ,MAAM,eAAe,MAAM,yBAC1B,aACA,aACD;AAAA,EACA,MAAM,WAAW,IAAI,IAAI,YAAY;AAAA,EACrC,WAAW,QAAQ,gCAAgC;AAAA,IAClD,IAAI,aAAa,IAAI;AAAA,MAAG,SAAS,IAAI,IAAI;AAAA,EAC1C;AAAA,EAEA,OAAO,gCAAgC,UAAU,MAAM,KAAK,QAAQ,CAAC;AAAA;",
9
- "debugId": "E1E3E54B85574B7C64756E2164756E21",
10
- "names": []
11
- }
@@ -1,29 +0,0 @@
1
- // @bun
2
- // src/angular/httpTransferCache.ts
3
- var ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER = "x-skip-transfer-cache";
4
- var buildAbsoluteHttpTransferCacheOptions = (options = {}) => {
5
- const {
6
- filter: userFilter,
7
- skipHeader = ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER,
8
- ...angularOptions
9
- } = options;
10
- return {
11
- includePostRequests: false,
12
- includeRequestsWithAuthHeaders: false,
13
- ...angularOptions,
14
- filter: (request) => !request.headers.has(skipHeader) && (userFilter?.(request) ?? true)
15
- };
16
- };
17
-
18
- // src/angular/requestProviders.ts
19
- import { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from "@angular/core";
20
- var buildRequestProviders = (deps, request, requestContext, responseInit) => [
21
- { provide: deps.REQUEST, useValue: request ?? null },
22
- { provide: deps.REQUEST_CONTEXT, useValue: requestContext ?? null },
23
- { provide: deps.RESPONSE_INIT, useValue: responseInit ?? null }
24
- ];
25
-
26
- export { ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER, buildAbsoluteHttpTransferCacheOptions, buildRequestProviders, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT };
27
-
28
- //# debugId=AB15CB915C6B300664756E2164756E21
29
- //# sourceMappingURL=chunk-25v9t56f.js.map
@@ -1,11 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/angular/httpTransferCache.ts", "../src/angular/requestProviders.ts"],
4
- "sourcesContent": [
5
- "import type { HttpTransferCacheOptions } from '@angular/common/http';\n\nexport const ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER = 'x-skip-transfer-cache';\n\nexport type AbsoluteHttpTransferCacheOptions = Omit<\n\tHttpTransferCacheOptions,\n\t'filter'\n> & {\n\tfilter?: NonNullable<HttpTransferCacheOptions['filter']>;\n\tskipHeader?: string;\n};\n\nexport const buildAbsoluteHttpTransferCacheOptions = (\n\toptions: AbsoluteHttpTransferCacheOptions = {}\n) => {\n\tconst {\n\t\tfilter: userFilter,\n\t\tskipHeader = ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER,\n\t\t...angularOptions\n\t} = options;\n\n\treturn {\n\t\tincludePostRequests: false,\n\t\tincludeRequestsWithAuthHeaders: false,\n\t\t...angularOptions,\n\t\tfilter: (request) =>\n\t\t\t!request.headers.has(skipHeader) && (userFilter?.(request) ?? true)\n\t} satisfies HttpTransferCacheOptions;\n};\n",
6
- "import type { AngularDeps } from '../../types/angular';\n\nexport { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from '@angular/core';\n\nexport const buildRequestProviders = (\n\tdeps: AngularDeps,\n\trequest: Request | undefined,\n\trequestContext: unknown,\n\tresponseInit: ResponseInit | undefined\n) => [\n\t{ provide: deps.REQUEST, useValue: request ?? null },\n\t{ provide: deps.REQUEST_CONTEXT, useValue: requestContext ?? null },\n\t{ provide: deps.RESPONSE_INIT, useValue: responseInit ?? null }\n];\n"
7
- ],
8
- "mappings": ";;AAEO,IAAM,2CAA2C;AAUjD,IAAM,wCAAwC,CACpD,UAA4C,CAAC,MACzC;AAAA,EACJ;AAAA,IACC,QAAQ;AAAA,IACR,aAAa;AAAA,OACV;AAAA,MACA;AAAA,EAEJ,OAAO;AAAA,IACN,qBAAqB;AAAA,IACrB,gCAAgC;AAAA,OAC7B;AAAA,IACH,QAAQ,CAAC,YACR,CAAC,QAAQ,QAAQ,IAAI,UAAU,MAAM,aAAa,OAAO,KAAK;AAAA,EAChE;AAAA;;;ACzBD;AAEO,IAAM,wBAAwB,CACpC,MACA,SACA,gBACA,iBACI;AAAA,EACJ,EAAE,SAAS,KAAK,SAAS,UAAU,WAAW,KAAK;AAAA,EACnD,EAAE,SAAS,KAAK,iBAAiB,UAAU,kBAAkB,KAAK;AAAA,EAClE,EAAE,SAAS,KAAK,eAAe,UAAU,gBAAgB,KAAK;AAC/D;",
9
- "debugId": "AB15CB915C6B300664756E2164756E21",
10
- "names": []
11
- }
@@ -1,21 +0,0 @@
1
- // @bun
2
- import {
3
- serializeIslandProps
4
- } from "./chunk-8kcfffry.js";
5
-
6
- // src/core/islandMarkupAttributes.ts
7
- var getIslandMarkerAttributes = (props, islandId) => ({
8
- "data-component": props.component,
9
- "data-framework": props.framework,
10
- "data-hydrate": props.hydrate ?? "load",
11
- "data-island": "true",
12
- ...islandId ? { "data-island-id": islandId } : {},
13
- "data-props": serializeIslandProps(props.props)
14
- });
15
- var escapeHtmlAttribute = (value) => value.replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
16
- var serializeIslandAttributes = (attributes) => Object.entries(attributes).map(([key, value]) => `${key}="${escapeHtmlAttribute(value)}"`).join(" ");
17
-
18
- export { getIslandMarkerAttributes, serializeIslandAttributes };
19
-
20
- //# debugId=591C30F27F03C2BC64756E2164756E21
21
- //# sourceMappingURL=chunk-2f21eenc.js.map
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/core/islandMarkupAttributes.ts"],
4
- "sourcesContent": [
5
- "import type { RuntimeIslandRenderProps } from '../../types/island';\nimport { serializeIslandProps } from './islands';\n\ntype IslandMarkerAttributes = {\n\t'data-component': string;\n\t'data-framework': string;\n\t'data-hydrate': string;\n\t'data-island': 'true';\n\t'data-island-id'?: string;\n\t'data-props': string;\n};\n\nexport const getIslandMarkerAttributes = (\n\tprops: RuntimeIslandRenderProps,\n\tislandId?: string\n): IslandMarkerAttributes => ({\n\t'data-component': props.component,\n\t'data-framework': props.framework,\n\t'data-hydrate': props.hydrate ?? 'load',\n\t'data-island': 'true',\n\t...(islandId ? { 'data-island-id': islandId } : {}),\n\t'data-props': serializeIslandProps(props.props)\n});\n\nconst escapeHtmlAttribute = (value: string) =>\n\tvalue\n\t\t.replaceAll('&', '&amp;')\n\t\t.replaceAll('\"', '&quot;')\n\t\t.replaceAll('<', '&lt;')\n\t\t.replaceAll('>', '&gt;');\n\nexport const serializeIslandAttributes = (attributes: Record<string, string>) =>\n\tObject.entries(attributes)\n\t\t.map(([key, value]) => `${key}=\"${escapeHtmlAttribute(value)}\"`)\n\t\t.join(' ');\n"
6
- ],
7
- "mappings": ";;;;;;AAYO,IAAM,4BAA4B,CACxC,OACA,cAC6B;AAAA,EAC7B,kBAAkB,MAAM;AAAA,EACxB,kBAAkB,MAAM;AAAA,EACxB,gBAAgB,MAAM,WAAW;AAAA,EACjC,eAAe;AAAA,KACX,WAAW,EAAE,kBAAkB,SAAS,IAAI,CAAC;AAAA,EACjD,cAAc,qBAAqB,MAAM,KAAK;AAC/C;AAEA,IAAM,sBAAsB,CAAC,UAC5B,MACE,WAAW,KAAK,OAAO,EACvB,WAAW,KAAK,QAAQ,EACxB,WAAW,KAAK,MAAM,EACtB,WAAW,KAAK,MAAM;AAElB,IAAM,4BAA4B,CAAC,eACzC,OAAO,QAAQ,UAAU,EACvB,IAAI,EAAE,KAAK,WAAW,GAAG,QAAQ,oBAAoB,KAAK,IAAI,EAC9D,KAAK,GAAG;",
8
- "debugId": "591C30F27F03C2BC64756E2164756E21",
9
- "names": []
10
- }
@@ -1,13 +0,0 @@
1
- // @bun
2
- import {
3
- buildSvelteVendor,
4
- computeSvelteVendorPaths
5
- } from "./chunk-cdxd7sy2.js";
6
- import"./chunk-bmgqm774.js";
7
- export {
8
- computeSvelteVendorPaths,
9
- buildSvelteVendor
10
- };
11
-
12
- //# debugId=D58DF931EFDC61C964756E2164756E21
13
- //# sourceMappingURL=chunk-2ga2znex.js.map
@@ -1,9 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [
5
- ],
6
- "mappings": "",
7
- "debugId": "D58DF931EFDC61C964756E2164756E21",
8
- "names": []
9
- }
@@ -1,33 +0,0 @@
1
- // @bun
2
- import"./chunk-bmgqm774.js";
3
-
4
- // src/dev/simpleHTMLHMR.ts
5
- import { resolve } from "path";
6
- var handleHTMLUpdate = async (htmlFilePath) => {
7
- let htmlContent;
8
- try {
9
- const resolvedPath = resolve(htmlFilePath);
10
- const file = Bun.file(resolvedPath);
11
- if (!await file.exists()) {
12
- return null;
13
- }
14
- htmlContent = await file.text();
15
- } catch {
16
- return null;
17
- }
18
- const headMatch = htmlContent.match(/<head[^>]*>([\s\S]*?)<\/head>/i);
19
- const bodyMatch = htmlContent.match(/<body[^>]*>([\s\S]*)<\/body>/i);
20
- if (bodyMatch && bodyMatch[1]) {
21
- return {
22
- body: bodyMatch[1].trim(),
23
- head: headMatch && headMatch[1] ? headMatch[1].trim() : null
24
- };
25
- }
26
- return htmlContent;
27
- };
28
- export {
29
- handleHTMLUpdate
30
- };
31
-
32
- //# debugId=7F537141C136B47F64756E2164756E21
33
- //# sourceMappingURL=chunk-30yrw0f6.js.map
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/dev/simpleHTMLHMR.ts"],
4
- "sourcesContent": [
5
- "/* Simple HTML HMR Implementation\n Lightweight approach: read HTML file → send HTML patch */\n\nimport { resolve } from 'node:path';\n\n/* Simple HTML HMR handler for server-side\n When an HTML file changes:\n 1. Read the HTML file\n 2. Extract body content (or return full HTML)\n 3. Return the HTML for patching */\nexport const handleHTMLUpdate = async (htmlFilePath: string) => {\n\tlet htmlContent: string;\n\ttry {\n\t\tconst resolvedPath = resolve(htmlFilePath);\n\t\tconst file = Bun.file(resolvedPath);\n\t\tif (!(await file.exists())) {\n\t\t\treturn null;\n\t\t}\n\t\thtmlContent = await file.text();\n\t} catch {\n\t\treturn null;\n\t}\n\n\tconst headMatch = htmlContent.match(/<head[^>]*>([\\s\\S]*?)<\\/head>/i);\n\tconst bodyMatch = htmlContent.match(/<body[^>]*>([\\s\\S]*)<\\/body>/i);\n\n\tif (bodyMatch && bodyMatch[1]) {\n\t\treturn {\n\t\t\tbody: bodyMatch[1].trim(),\n\t\t\thead: headMatch && headMatch[1] ? headMatch[1].trim() : null\n\t\t};\n\t}\n\n\treturn htmlContent;\n};\n"
6
- ],
7
- "mappings": ";;;;AAGA;AAOO,IAAM,mBAAmB,OAAO,iBAAyB;AAAA,EAC/D,IAAI;AAAA,EACJ,IAAI;AAAA,IACH,MAAM,eAAe,QAAQ,YAAY;AAAA,IACzC,MAAM,OAAO,IAAI,KAAK,YAAY;AAAA,IAClC,IAAI,CAAE,MAAM,KAAK,OAAO,GAAI;AAAA,MAC3B,OAAO;AAAA,IACR;AAAA,IACA,cAAc,MAAM,KAAK,KAAK;AAAA,IAC7B,MAAM;AAAA,IACP,OAAO;AAAA;AAAA,EAGR,MAAM,YAAY,YAAY,MAAM,gCAAgC;AAAA,EACpE,MAAM,YAAY,YAAY,MAAM,+BAA+B;AAAA,EAEnE,IAAI,aAAa,UAAU,IAAI;AAAA,IAC9B,OAAO;AAAA,MACN,MAAM,UAAU,GAAG,KAAK;AAAA,MACxB,MAAM,aAAa,UAAU,KAAK,UAAU,GAAG,KAAK,IAAI;AAAA,IACzD;AAAA,EACD;AAAA,EAEA,OAAO;AAAA;",
8
- "debugId": "7F537141C136B47F64756E2164756E21",
9
- "names": []
10
- }