@absolutejs/absolute 0.19.0-beta.807 → 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.
- package/dist/angular/browser.js +9801 -57
- package/dist/angular/browser.js.map +246 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +14877 -60
- package/dist/angular/index.js.map +281 -4
- package/dist/angular/server.js +5610 -45
- package/dist/angular/server.js.map +51 -3
- package/dist/build.js +18092 -45
- package/dist/build.js.map +99 -3
- package/dist/cli/index.js +317 -86
- package/dist/client/index.js +1091 -70
- package/dist/client/index.js.map +24 -4
- package/dist/core/streamingSlotRegistrar.js +108 -11
- package/dist/core/streamingSlotRegistrar.js.map +4 -3
- package/dist/core/streamingSlotRegistry.js +169 -7
- package/dist/core/streamingSlotRegistry.js.map +5 -3
- package/dist/index.js +19957 -547
- package/dist/index.js.map +116 -3
- package/dist/islands/browser.js +228 -9
- package/dist/islands/browser.js.map +9 -4
- package/dist/islands/index.js +1908 -17
- package/dist/islands/index.js.map +27 -3
- package/dist/react/browser.js +328 -12
- package/dist/react/browser.js.map +12 -4
- package/dist/react/components/index.js +167 -16
- package/dist/react/components/index.js.map +6 -3
- package/dist/react/hooks/index.js +183 -8
- package/dist/react/hooks/index.js.map +7 -3
- package/dist/react/index.js +3627 -36
- package/dist/react/index.js.map +45 -4
- package/dist/react/jsxDevRuntimeCompat.js +61 -2
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/server.js +1789 -18
- package/dist/react/server.js.map +21 -3
- package/dist/src/angular/injectorPatch.d.ts +1 -0
- package/dist/src/angular/islands.d.ts +1 -0
- package/dist/src/client/hydrators/react.d.ts +3 -0
- package/dist/src/client/hydrators/svelte.d.ts +2 -0
- package/dist/src/client/hydrators/vue.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/svelte/browser.js +247 -12
- package/dist/svelte/browser.js.map +10 -3
- package/dist/svelte/index.js +3732 -37
- package/dist/svelte/index.js.map +47 -4
- package/dist/svelte/server.js +2794 -21
- package/dist/svelte/server.js.map +27 -3
- package/dist/vue/browser.js +348 -12
- package/dist/vue/browser.js.map +12 -4
- package/dist/vue/components/Image.js +240 -7
- package/dist/vue/components/Image.js.map +6 -3
- package/dist/vue/components/index.js +544 -11
- package/dist/vue/components/index.js.map +9 -3
- package/dist/vue/index.js +4212 -52
- package/dist/vue/index.js.map +50 -4
- package/dist/vue/server.js +1849 -18
- package/dist/vue/server.js.map +21 -3
- package/package.json +1 -1
- package/dist/chunk-0867j0r0.js +0 -136
- package/dist/chunk-0867j0r0.js.map +0 -10
- package/dist/chunk-102fp7xe.js +0 -63
- package/dist/chunk-102fp7xe.js.map +0 -10
- package/dist/chunk-11zpfqz6.js +0 -19
- package/dist/chunk-11zpfqz6.js.map +0 -10
- package/dist/chunk-1rfh7hw9.js +0 -319
- package/dist/chunk-1rfh7hw9.js.map +0 -11
- package/dist/chunk-1x4fxm57.js +0 -51
- package/dist/chunk-1x4fxm57.js.map +0 -9
- package/dist/chunk-25v9t56f.js +0 -29
- package/dist/chunk-25v9t56f.js.map +0 -11
- package/dist/chunk-2f21eenc.js +0 -21
- package/dist/chunk-2f21eenc.js.map +0 -10
- package/dist/chunk-2ga2znex.js +0 -13
- package/dist/chunk-2ga2znex.js.map +0 -9
- package/dist/chunk-30yrw0f6.js +0 -33
- package/dist/chunk-30yrw0f6.js.map +0 -10
- package/dist/chunk-3g91wb4f.js +0 -358
- package/dist/chunk-3g91wb4f.js.map +0 -10
- package/dist/chunk-3rea1gam.js +0 -4403
- package/dist/chunk-3rea1gam.js.map +0 -28
- package/dist/chunk-3yjzpcne.js +0 -34
- package/dist/chunk-3yjzpcne.js.map +0 -10
- package/dist/chunk-41bf6aqt.js +0 -17
- package/dist/chunk-41bf6aqt.js.map +0 -9
- package/dist/chunk-4d39r92n.js +0 -81
- package/dist/chunk-4d39r92n.js.map +0 -10
- package/dist/chunk-5003emhv.js +0 -17
- package/dist/chunk-5003emhv.js.map +0 -10
- package/dist/chunk-5f67rsed.js +0 -466
- package/dist/chunk-5f67rsed.js.map +0 -10
- package/dist/chunk-5fhp1jap.js +0 -9169
- package/dist/chunk-5fhp1jap.js.map +0 -236
- package/dist/chunk-629x0yh4.js +0 -20
- package/dist/chunk-629x0yh4.js.map +0 -9
- package/dist/chunk-6pdj08z3.js +0 -73
- package/dist/chunk-6pdj08z3.js.map +0 -12
- package/dist/chunk-6qjbrt0k.js +0 -13
- package/dist/chunk-6qjbrt0k.js.map +0 -9
- package/dist/chunk-6sccb4jr.js +0 -14
- package/dist/chunk-6sccb4jr.js.map +0 -9
- package/dist/chunk-798spvzv.js +0 -50
- package/dist/chunk-798spvzv.js.map +0 -10
- package/dist/chunk-7fw6x3js.js +0 -131
- package/dist/chunk-7fw6x3js.js.map +0 -11
- package/dist/chunk-7kjj42xm.js +0 -11
- package/dist/chunk-7kjj42xm.js.map +0 -10
- package/dist/chunk-7mtstdqn.js +0 -90
- package/dist/chunk-7mtstdqn.js.map +0 -10
- package/dist/chunk-851whwc7.js +0 -17
- package/dist/chunk-851whwc7.js.map +0 -10
- package/dist/chunk-85n68sy6.js +0 -103
- package/dist/chunk-85n68sy6.js.map +0 -10
- package/dist/chunk-8kcfffry.js +0 -35
- package/dist/chunk-8kcfffry.js.map +0 -10
- package/dist/chunk-92fsjfpp.js +0 -1731
- package/dist/chunk-92fsjfpp.js.map +0 -11
- package/dist/chunk-93sqk7be.js +0 -139
- package/dist/chunk-93sqk7be.js.map +0 -12
- package/dist/chunk-9c5tj4k3.js +0 -130
- package/dist/chunk-9c5tj4k3.js.map +0 -10
- package/dist/chunk-9j59emg3.js +0 -184
- package/dist/chunk-9j59emg3.js.map +0 -11
- package/dist/chunk-9ve9jq72.js +0 -203
- package/dist/chunk-9ve9jq72.js.map +0 -10
- package/dist/chunk-9xrsjeem.js +0 -12
- package/dist/chunk-9xrsjeem.js.map +0 -9
- package/dist/chunk-a9mvyp04.js +0 -87
- package/dist/chunk-a9mvyp04.js.map +0 -10
- package/dist/chunk-b3gbnrwe.js +0 -21
- package/dist/chunk-b3gbnrwe.js.map +0 -10
- package/dist/chunk-bgb8k1qs.js +0 -672
- package/dist/chunk-bgb8k1qs.js.map +0 -15
- package/dist/chunk-bmgqm774.js +0 -65
- package/dist/chunk-bmgqm774.js.map +0 -9
- package/dist/chunk-bxfghpma.js +0 -69
- package/dist/chunk-bxfghpma.js.map +0 -10
- package/dist/chunk-c1jfjnka.js +0 -74
- package/dist/chunk-c1jfjnka.js.map +0 -10
- package/dist/chunk-cbkrwmvh.js +0 -80
- package/dist/chunk-cbkrwmvh.js.map +0 -10
- package/dist/chunk-cdxd7sy2.js +0 -71
- package/dist/chunk-cdxd7sy2.js.map +0 -10
- package/dist/chunk-cg95827x.js +0 -21
- package/dist/chunk-cg95827x.js.map +0 -10
- package/dist/chunk-cm0g4q6w.js +0 -149
- package/dist/chunk-cm0g4q6w.js.map +0 -10
- package/dist/chunk-d7mwkzry.js +0 -261
- package/dist/chunk-d7mwkzry.js.map +0 -10
- package/dist/chunk-d9c0am65.js +0 -12
- package/dist/chunk-d9c0am65.js.map +0 -10
- package/dist/chunk-daqghmg8.js +0 -12
- package/dist/chunk-daqghmg8.js.map +0 -9
- package/dist/chunk-e3r9fxaa.js +0 -149
- package/dist/chunk-e3r9fxaa.js.map +0 -10
- package/dist/chunk-e8eecyrq.js +0 -244
- package/dist/chunk-e8eecyrq.js.map +0 -10
- package/dist/chunk-ex2hxe0v.js +0 -160
- package/dist/chunk-ex2hxe0v.js.map +0 -11
- package/dist/chunk-fak944et.js +0 -91
- package/dist/chunk-fak944et.js.map +0 -10
- package/dist/chunk-fygx2ymm.js +0 -118
- package/dist/chunk-fygx2ymm.js.map +0 -12
- package/dist/chunk-g15qj669.js +0 -271
- package/dist/chunk-g15qj669.js.map +0 -11
- package/dist/chunk-gd6wmknh.js +0 -121
- package/dist/chunk-gd6wmknh.js.map +0 -11
- package/dist/chunk-gf0ygptk.js +0 -85
- package/dist/chunk-gf0ygptk.js.map +0 -11
- package/dist/chunk-gytkmthr.js +0 -220
- package/dist/chunk-gytkmthr.js.map +0 -10
- package/dist/chunk-h5bbfn3n.js +0 -28
- package/dist/chunk-h5bbfn3n.js.map +0 -11
- package/dist/chunk-h6mye9r3.js +0 -93
- package/dist/chunk-h6mye9r3.js.map +0 -10
- package/dist/chunk-hcsmxw1v.js +0 -85
- package/dist/chunk-hcsmxw1v.js.map +0 -10
- package/dist/chunk-hyjs4bqs.js +0 -8
- package/dist/chunk-hyjs4bqs.js.map +0 -10
- package/dist/chunk-jn91vzkh.js +0 -66
- package/dist/chunk-jn91vzkh.js.map +0 -10
- package/dist/chunk-jpkjdgsk.js +0 -167
- package/dist/chunk-jpkjdgsk.js.map +0 -11
- package/dist/chunk-jwxt8gnp.js +0 -13
- package/dist/chunk-jwxt8gnp.js.map +0 -9
- package/dist/chunk-kk8w9rh5.js +0 -195
- package/dist/chunk-kk8w9rh5.js.map +0 -10
- package/dist/chunk-kwgh8rmg.js +0 -426
- package/dist/chunk-kwgh8rmg.js.map +0 -14
- package/dist/chunk-m97ze5hz.js +0 -46
- package/dist/chunk-m97ze5hz.js.map +0 -10
- package/dist/chunk-mbazhahf.js +0 -60
- package/dist/chunk-mbazhahf.js.map +0 -10
- package/dist/chunk-mgfwq18r.js +0 -15
- package/dist/chunk-mgfwq18r.js.map +0 -9
- package/dist/chunk-mtgf69xn.js +0 -88
- package/dist/chunk-mtgf69xn.js.map +0 -10
- package/dist/chunk-mtxzyxpg.js +0 -102
- package/dist/chunk-mtxzyxpg.js.map +0 -10
- package/dist/chunk-nehhtthw.js +0 -225
- package/dist/chunk-nehhtthw.js.map +0 -10
- package/dist/chunk-p5504p14.js +0 -16
- package/dist/chunk-p5504p14.js.map +0 -10
- package/dist/chunk-p5zgj77m.js +0 -184
- package/dist/chunk-p5zgj77m.js.map +0 -10
- package/dist/chunk-pnscgw95.js +0 -90
- package/dist/chunk-pnscgw95.js.map +0 -10
- package/dist/chunk-pvpp4pvs.js +0 -17
- package/dist/chunk-pvpp4pvs.js.map +0 -10
- package/dist/chunk-qh75agse.js +0 -95
- package/dist/chunk-qh75agse.js.map +0 -10
- package/dist/chunk-qxq2zcty.js +0 -52
- package/dist/chunk-qxq2zcty.js.map +0 -10
- package/dist/chunk-r6e8pytx.js +0 -22
- package/dist/chunk-r6e8pytx.js.map +0 -9
- package/dist/chunk-r7jmgqnw.js +0 -114
- package/dist/chunk-r7jmgqnw.js.map +0 -10
- package/dist/chunk-s6defjk2.js +0 -116
- package/dist/chunk-s6defjk2.js.map +0 -10
- package/dist/chunk-sd39p726.js +0 -619
- package/dist/chunk-sd39p726.js.map +0 -10
- package/dist/chunk-swrnzs4c.js +0 -63
- package/dist/chunk-swrnzs4c.js.map +0 -10
- package/dist/chunk-tfe3sb44.js +0 -33
- package/dist/chunk-tfe3sb44.js.map +0 -10
- package/dist/chunk-tjr0kcev.js +0 -41
- package/dist/chunk-tjr0kcev.js.map +0 -9
- package/dist/chunk-tx9edm1x.js +0 -34
- package/dist/chunk-tx9edm1x.js.map +0 -10
- package/dist/chunk-txhm2vb5.js +0 -18
- package/dist/chunk-txhm2vb5.js.map +0 -9
- package/dist/chunk-v5vmsxmy.js +0 -526
- package/dist/chunk-v5vmsxmy.js.map +0 -12
- package/dist/chunk-vjhxm8n2.js +0 -29
- package/dist/chunk-vjhxm8n2.js.map +0 -9
- package/dist/chunk-vkrpm7kc.js +0 -247
- package/dist/chunk-vkrpm7kc.js.map +0 -12
- package/dist/chunk-w3m4m5we.js +0 -4925
- package/dist/chunk-w3m4m5we.js.map +0 -12
- package/dist/chunk-wrxtn9ve.js +0 -18
- package/dist/chunk-wrxtn9ve.js.map +0 -10
- package/dist/chunk-x09cskqd.js +0 -377
- package/dist/chunk-x09cskqd.js.map +0 -10
- package/dist/chunk-xnt8c6h2.js +0 -576
- package/dist/chunk-xnt8c6h2.js.map +0 -10
- package/dist/chunk-xw0tx842.js +0 -13
- package/dist/chunk-xw0tx842.js.map +0 -9
- package/dist/chunk-xx5b6b9m.js +0 -69
- package/dist/chunk-xx5b6b9m.js.map +0 -10
- package/dist/chunk-xz1kdswj.js +0 -21
- package/dist/chunk-xz1kdswj.js.map +0 -9
- package/dist/chunk-y84qnsd3.js +0 -32
- package/dist/chunk-y84qnsd3.js.map +0 -10
- package/dist/chunk-ywjn0rad.js +0 -14
- package/dist/chunk-ywjn0rad.js.map +0 -9
- package/dist/chunk-z9nvhm6r.js +0 -13
- package/dist/chunk-z9nvhm6r.js.map +0 -9
- package/dist/chunk-zhmvdpk6.js +0 -15
- package/dist/chunk-zhmvdpk6.js.map +0 -9
- package/dist/chunk-zrg9d4zw.js +0 -784
- package/dist/chunk-zrg9d4zw.js.map +0 -10
package/dist/chunk-r7jmgqnw.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
nativeRewriteImports
|
|
4
|
-
} from "./chunk-jn91vzkh.js";
|
|
5
|
-
import {
|
|
6
|
-
__require
|
|
7
|
-
} from "./chunk-bmgqm774.js";
|
|
8
|
-
|
|
9
|
-
// src/build/rewriteImports.ts
|
|
10
|
-
var escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
11
|
-
var jsRewriteImports = (content, replacements) => {
|
|
12
|
-
let result = content;
|
|
13
|
-
for (const [specifier, webPath] of replacements) {
|
|
14
|
-
const escaped = escapeRegex(specifier);
|
|
15
|
-
const fromRegex = new RegExp(`(from\\s*["'])${escaped}(["'])`, "g");
|
|
16
|
-
const sideEffectRegex = new RegExp(`(import\\s*["'])${escaped}(["'])`, "g");
|
|
17
|
-
const dynamicRegex = new RegExp(`(import\\s*\\(\\s*["'])${escaped}(["']\\s*\\))`, "g");
|
|
18
|
-
result = result.replace(fromRegex, `$1${webPath}$2`);
|
|
19
|
-
result = result.replace(sideEffectRegex, `$1${webPath}$2`);
|
|
20
|
-
result = result.replace(dynamicRegex, `$1${webPath}$2`);
|
|
21
|
-
}
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
var rewriteImports = async (outputPaths, vendorPaths) => {
|
|
25
|
-
const jsFiles = outputPaths.filter((path) => path.endsWith(".js"));
|
|
26
|
-
if (jsFiles.length === 0)
|
|
27
|
-
return;
|
|
28
|
-
const replacements = Object.entries(vendorPaths).sort(([keyA], [keyB]) => keyB.length - keyA.length);
|
|
29
|
-
await Promise.all(jsFiles.map(async (filePath) => {
|
|
30
|
-
const original = await Bun.file(filePath).text();
|
|
31
|
-
const native = nativeRewriteImports(original, replacements);
|
|
32
|
-
const content = native ?? jsRewriteImports(original, replacements);
|
|
33
|
-
if (content !== original) {
|
|
34
|
-
await Bun.write(filePath, content);
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
};
|
|
38
|
-
var rewriteVendorDirectories = async (vendorDirs, vendorPaths) => {
|
|
39
|
-
if (Object.keys(vendorPaths).length === 0)
|
|
40
|
-
return;
|
|
41
|
-
const { readdirSync } = await import("fs");
|
|
42
|
-
const { join } = await import("path");
|
|
43
|
-
const allFiles = [];
|
|
44
|
-
for (const dir of vendorDirs) {
|
|
45
|
-
try {
|
|
46
|
-
const files = readdirSync(dir).filter((f) => f.endsWith(".js")).map((f) => join(dir, f));
|
|
47
|
-
allFiles.push(...files);
|
|
48
|
-
} catch {}
|
|
49
|
-
}
|
|
50
|
-
await rewriteImports(allFiles, vendorPaths);
|
|
51
|
-
await fixMissingReExportNamespaces(allFiles);
|
|
52
|
-
};
|
|
53
|
-
var fixMissingReExportNamespaces = async (files) => {
|
|
54
|
-
const REEXPORT_PATTERN = /__reExport\(\s*[A-Za-z_$][\w$]*\s*,\s*([A-Za-z_$][\w$]*)\s*\)/g;
|
|
55
|
-
await Promise.all(files.map(async (filePath) => {
|
|
56
|
-
const content = await Bun.file(filePath).text();
|
|
57
|
-
REEXPORT_PATTERN.lastIndex = 0;
|
|
58
|
-
const missing = [];
|
|
59
|
-
let match;
|
|
60
|
-
while ((match = REEXPORT_PATTERN.exec(content)) !== null) {
|
|
61
|
-
const ident = match[1];
|
|
62
|
-
if (!ident)
|
|
63
|
-
continue;
|
|
64
|
-
const nsImportRe = new RegExp(`\\bimport\\s*\\*\\s*as\\s+${ident}\\s+from\\b`);
|
|
65
|
-
if (nsImportRe.test(content))
|
|
66
|
-
continue;
|
|
67
|
-
const declRe = new RegExp(`\\b(?:const|let|var|function|class)\\s+${ident}\\b`);
|
|
68
|
-
if (declRe.test(content))
|
|
69
|
-
continue;
|
|
70
|
-
const namedImportRe = new RegExp(`\\bimport\\s*\\{[^}]*\\b${ident}\\b[^}]*\\}\\s*from\\b`);
|
|
71
|
-
if (namedImportRe.test(content))
|
|
72
|
-
continue;
|
|
73
|
-
const importPathRe = /from\s+["']([^"']+)["']/g;
|
|
74
|
-
let pathMatch;
|
|
75
|
-
let sourcePath;
|
|
76
|
-
while ((pathMatch = importPathRe.exec(content)) !== null) {
|
|
77
|
-
const p = pathMatch[1];
|
|
78
|
-
if (!p)
|
|
79
|
-
continue;
|
|
80
|
-
const base = p.split("/").pop()?.replace(/\.[mc]?js$/, "");
|
|
81
|
-
if (!base)
|
|
82
|
-
continue;
|
|
83
|
-
if (base === ident || base.endsWith(`_${ident}`)) {
|
|
84
|
-
sourcePath = p;
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
if (sourcePath) {
|
|
89
|
-
missing.push({ ident, path: sourcePath });
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
if (missing.length === 0)
|
|
93
|
-
return;
|
|
94
|
-
const seen = new Set;
|
|
95
|
-
const unique = missing.filter((entry) => {
|
|
96
|
-
if (seen.has(entry.ident))
|
|
97
|
-
return false;
|
|
98
|
-
seen.add(entry.ident);
|
|
99
|
-
return true;
|
|
100
|
-
});
|
|
101
|
-
const inserts = unique.map((entry) => `import * as ${entry.ident} from "${entry.path}";`).join(`
|
|
102
|
-
`);
|
|
103
|
-
const patched = `${inserts}
|
|
104
|
-
${content}`;
|
|
105
|
-
await Bun.write(filePath, patched);
|
|
106
|
-
}));
|
|
107
|
-
};
|
|
108
|
-
export {
|
|
109
|
-
rewriteVendorDirectories,
|
|
110
|
-
rewriteImports
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
//# debugId=5B982EE587EDA3E464756E2164756E21
|
|
114
|
-
//# sourceMappingURL=chunk-r7jmgqnw.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/build/rewriteImports.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"/** Post-process bundled output files to rewrite bare specifiers\n * (e.g. `from \"@angular/core\"`) to stable vendor paths\n * (e.g. `from \"/angular/vendor/angular_core.js\"`).\n *\n * Uses native Zig scanner (15x faster) when available, falls back\n * to JS regex on Windows or when the native addon is missing. */\n\nimport { nativeRewriteImports } from './nativeRewrite';\n\nconst escapeRegex = (str: string) =>\n\tstr.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\n/** JS fallback: regex-based import rewriting */\nconst jsRewriteImports = (\n\tcontent: string,\n\treplacements: [string, string][]\n) => {\n\tlet result = content;\n\n\tfor (const [specifier, webPath] of replacements) {\n\t\tconst escaped = escapeRegex(specifier);\n\t\tconst fromRegex = new RegExp(\n\t\t\t`(from\\\\s*[\"'])${escaped}([\"'])`,\n\t\t\t'g'\n\t\t);\n\t\tconst sideEffectRegex = new RegExp(\n\t\t\t`(import\\\\s*[\"'])${escaped}([\"'])`,\n\t\t\t'g'\n\t\t);\n\t\tconst dynamicRegex = new RegExp(\n\t\t\t`(import\\\\s*\\\\(\\\\s*[\"'])${escaped}([\"']\\\\s*\\\\))`,\n\t\t\t'g'\n\t\t);\n\t\tresult = result.replace(fromRegex, `$1${webPath}$2`);\n\t\tresult = result.replace(sideEffectRegex, `$1${webPath}$2`);\n\t\tresult = result.replace(dynamicRegex, `$1${webPath}$2`);\n\t}\n\n\treturn result;\n};\n\nexport const rewriteImports = async (\n\toutputPaths: string[],\n\tvendorPaths: Record<string, string>\n) => {\n\tconst jsFiles = outputPaths.filter((path) => path.endsWith('.js'));\n\tif (jsFiles.length === 0) return;\n\n\t// Sort by specifier length (longest first) to avoid partial matches\n\tconst replacements = Object.entries(vendorPaths).sort(\n\t\t([keyA], [keyB]) => keyB.length - keyA.length\n\t);\n\n\tawait Promise.all(\n\t\tjsFiles.map(async (filePath) => {\n\t\t\tconst original = await Bun.file(filePath).text();\n\n\t\t\t// Try native Zig scanner first (15x faster on large files)\n\t\t\tconst native = nativeRewriteImports(original, replacements);\n\t\t\tconst content = native ?? jsRewriteImports(original, replacements);\n\n\t\t\tif (content !== original) {\n\t\t\t\tawait Bun.write(filePath, content);\n\t\t\t}\n\t\t})\n\t);\n};\n\n/** Post-process every .js in one or more vendor directories using the\n * combined cross-framework path map. Required because each vendor build\n * externalizes packages owned by other vendor pipelines (e.g. a dep-vendor\n * wrapper around `@sentry/angular` externalizes `@angular/core` so it isn't\n * duplicated, leaving a bare `from \"@angular/core\"` in the output). Without\n * this rewrite the browser fetches the vendor file at runtime and chokes\n * on the bare specifier. Run AFTER all vendor builds complete so every\n * framework's path map is included in `vendorPaths`. */\nexport const rewriteVendorDirectories = async (\n\tvendorDirs: string[],\n\tvendorPaths: Record<string, string>\n) => {\n\tif (Object.keys(vendorPaths).length === 0) return;\n\tconst { readdirSync } = await import('node:fs');\n\tconst { join } = await import('node:path');\n\n\tconst allFiles: string[] = [];\n\tfor (const dir of vendorDirs) {\n\t\ttry {\n\t\t\tconst files = readdirSync(dir)\n\t\t\t\t.filter((f) => f.endsWith('.js'))\n\t\t\t\t.map((f) => join(dir, f));\n\t\t\tallFiles.push(...files);\n\t\t} catch {\n\t\t\t// missing dir is fine — that framework wasn't used\n\t\t}\n\t}\n\n\tawait rewriteImports(allFiles, vendorPaths);\n\tawait fixMissingReExportNamespaces(allFiles);\n};\n\n/** Workaround for a Bun bundler bug: when a module does both\n * `import { x } from 'X'` AND `export * from 'X'`, and `X` is externalized,\n * Bun synthesizes a `__reExport(exports_Y, ns)` call but drops the\n * corresponding `import * as ns from \"X\"` declaration. The resulting chunk\n * references an undeclared identifier and crashes at module evaluation.\n *\n * This step detects the pattern and injects the missing namespace import.\n * The source path is recovered from a sibling named-import in the same\n * chunk (Bun keeps that intact). */\nconst fixMissingReExportNamespaces = async (files: string[]) => {\n\tconst REEXPORT_PATTERN = /__reExport\\(\\s*[A-Za-z_$][\\w$]*\\s*,\\s*([A-Za-z_$][\\w$]*)\\s*\\)/g;\n\n\tawait Promise.all(\n\t\tfiles.map(async (filePath) => {\n\t\t\tconst content = await Bun.file(filePath).text();\n\t\t\tREEXPORT_PATTERN.lastIndex = 0;\n\t\t\tconst missing: { ident: string; path: string }[] = [];\n\t\t\tlet match;\n\t\t\twhile ((match = REEXPORT_PATTERN.exec(content)) !== null) {\n\t\t\t\tconst ident = match[1];\n\t\t\t\tif (!ident) continue;\n\t\t\t\t// Already imported as a namespace? Skip.\n\t\t\t\tconst nsImportRe = new RegExp(\n\t\t\t\t\t`\\\\bimport\\\\s*\\\\*\\\\s*as\\\\s+${ident}\\\\s+from\\\\b`\n\t\t\t\t);\n\t\t\t\tif (nsImportRe.test(content)) continue;\n\t\t\t\t// Already declared as a local binding? Skip.\n\t\t\t\tconst declRe = new RegExp(\n\t\t\t\t\t`\\\\b(?:const|let|var|function|class)\\\\s+${ident}\\\\b`\n\t\t\t\t);\n\t\t\t\tif (declRe.test(content)) continue;\n\t\t\t\t// Also skip if it's brought in via named import (rare but possible).\n\t\t\t\tconst namedImportRe = new RegExp(\n\t\t\t\t\t`\\\\bimport\\\\s*\\\\{[^}]*\\\\b${ident}\\\\b[^}]*\\\\}\\\\s*from\\\\b`\n\t\t\t\t);\n\t\t\t\tif (namedImportRe.test(content)) continue;\n\t\t\t\t// Find the source path: heuristic — look for a sibling\n\t\t\t\t// `import { ... } from \"<path>\"` whose basename, with separators\n\t\t\t\t// turned into underscores, ends with the ident.\n\t\t\t\t// e.g. `firebase_app.js` matches `app`; `rxjs_operators.js`\n\t\t\t\t// matches `operators`; `angular_core.js` matches `core`.\n\t\t\t\tconst importPathRe = /from\\s+[\"']([^\"']+)[\"']/g;\n\t\t\t\tlet pathMatch;\n\t\t\t\tlet sourcePath: string | undefined;\n\t\t\t\twhile ((pathMatch = importPathRe.exec(content)) !== null) {\n\t\t\t\t\tconst p = pathMatch[1];\n\t\t\t\t\tif (!p) continue;\n\t\t\t\t\tconst base = p.split('/').pop()?.replace(/\\.[mc]?js$/, '');\n\t\t\t\t\tif (!base) continue;\n\t\t\t\t\tif (base === ident || base.endsWith(`_${ident}`)) {\n\t\t\t\t\t\tsourcePath = p;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (sourcePath) {\n\t\t\t\t\tmissing.push({ ident, path: sourcePath });\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (missing.length === 0) return;\n\n\t\t\t// Dedupe (same ident shouldn't appear twice but be defensive).\n\t\t\tconst seen = new Set<string>();\n\t\t\tconst unique = missing.filter((entry) => {\n\t\t\t\tif (seen.has(entry.ident)) return false;\n\t\t\t\tseen.add(entry.ident);\n\n\t\t\t\treturn true;\n\t\t\t});\n\n\t\t\tconst inserts = unique\n\t\t\t\t.map((entry) => `import * as ${entry.ident} from \"${entry.path}\";`)\n\t\t\t\t.join('\\n');\n\t\t\t// Insert at the very top — ESM spec hoists imports anyway, so\n\t\t\t// position doesn't matter for execution order.\n\t\t\tconst patched = `${inserts}\\n${content}`;\n\t\t\tawait Bun.write(filePath, patched);\n\t\t})\n\t);\n};\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": ";;;;;;;;;AASA,IAAM,cAAc,CAAC,QACpB,IAAI,QAAQ,uBAAuB,MAAM;AAG1C,IAAM,mBAAmB,CACxB,SACA,iBACI;AAAA,EACJ,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AI,GAAG,QAAQ,cAAc,EAAE;AAAA,QACzD,IAAI,CAAC;AAAA,UAAM;AAAA,QACX,IAAI,SAAS,SAAS,KAAK,SAAS,IAAI,OAAO,GAAG;AAAA,UACjD,aAAa;AAAA,UACb;AAAA,QACD;AAAA,MACD;AAAA,MACA,IAAI,YAAY;AAAA,QACf,QAAQ,KAAK,EAAE,OAAO,MAAM,WAAW,CAAC;AAAA,MACzC;AAAA,IACD;AAAA,IAEA,IAAI,QAAQ,WAAW;AAAA,MAAG;AAAA,IAG1B,MAAM,OAAO,IAAI;AAAA,IACjB,MAAM,SAAS,QAAQ,OAAO,CAAC,UAAU;AAAA,MACxC,IAAI,KAAK,IAAI,MAAM,KAAK;AAAA,QAAG,OAAO;AAAA,MAClC,KAAK,IAAI,MAAM,KAAK;AAAA,MAEpB,OAAO;AAAA,KACP;AAAA,IAED,MAAM,UAAU,OACd,IAAI,CAAC,UAAU,eAAe,MAAM,eAAe,MAAM,QAAQ,EACjE,KAAK;AAAA,CAAI;AAAA,IAGX,MAAM,UAAU,GAAG;AAAA,EAAY;AAAA,IAC/B,MAAM,IAAI,MAAM,UAAU,OAAO;AAAA,GACjC,CACF;AAAA;",
|
|
8
|
-
"debugId": "5B982EE587EDA3E464756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-s6defjk2.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// src/client/streamSwap.ts
|
|
3
|
-
var streamSwapRuntime = () => {
|
|
4
|
-
const absoluteWindow = window;
|
|
5
|
-
const SLOT_PATCH_EVENT = "absolutejs:slot-patch";
|
|
6
|
-
if (absoluteWindow.__ABS_SLOT_RUNTIME__ === true)
|
|
7
|
-
return;
|
|
8
|
-
absoluteWindow.__ABS_SLOT_RUNTIME__ = true;
|
|
9
|
-
absoluteWindow.__ABS_SLOT_CONSUMERS__ = absoluteWindow.__ABS_SLOT_CONSUMERS__ ?? {};
|
|
10
|
-
absoluteWindow.__ABS_SLOT_PENDING__ = absoluteWindow.__ABS_SLOT_PENDING__ ?? {};
|
|
11
|
-
const consumers = absoluteWindow.__ABS_SLOT_CONSUMERS__;
|
|
12
|
-
const pending = absoluteWindow.__ABS_SLOT_PENDING__;
|
|
13
|
-
const isObjectRecord = (value) => Boolean(value) && typeof value === "object";
|
|
14
|
-
const isPatchedPendingEntry = (value) => {
|
|
15
|
-
if (!isObjectRecord(value))
|
|
16
|
-
return false;
|
|
17
|
-
return value.domPatched === true && "payload" in value;
|
|
18
|
-
};
|
|
19
|
-
const unwrapPendingPayload = (value) => isPatchedPendingEntry(value) ? value.payload : value;
|
|
20
|
-
const canApplyImmediately = () => absoluteWindow.__ABS_SLOT_HYDRATION_PENDING__ !== true;
|
|
21
|
-
const isAngularDeferPayload = (payload) => {
|
|
22
|
-
if (!isObjectRecord(payload))
|
|
23
|
-
return false;
|
|
24
|
-
return payload.kind === "angular-defer";
|
|
25
|
-
};
|
|
26
|
-
const isVueSuspensePayload = (payload) => {
|
|
27
|
-
if (!isObjectRecord(payload))
|
|
28
|
-
return false;
|
|
29
|
-
return payload.kind === "vue-suspense";
|
|
30
|
-
};
|
|
31
|
-
const resolveHtml = (payload) => {
|
|
32
|
-
if (!isObjectRecord(payload)) {
|
|
33
|
-
return typeof payload === "string" ? payload : "";
|
|
34
|
-
}
|
|
35
|
-
if (typeof payload.html === "string") {
|
|
36
|
-
return payload.html;
|
|
37
|
-
}
|
|
38
|
-
return "";
|
|
39
|
-
};
|
|
40
|
-
const apply = (id, pendingEntry) => {
|
|
41
|
-
const payload = unwrapPendingPayload(pendingEntry);
|
|
42
|
-
if (!canApplyImmediately()) {
|
|
43
|
-
pending[id] = payload;
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const consumer = consumers[id];
|
|
47
|
-
if (typeof consumer !== "function") {
|
|
48
|
-
applyToDom(id, payload, pendingEntry);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
const handled = consumer(payload);
|
|
52
|
-
if (handled !== false) {
|
|
53
|
-
delete pending[id];
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
applyToDom(id, payload, pendingEntry);
|
|
57
|
-
};
|
|
58
|
-
const applyToDom = (id, payload, pendingEntry) => {
|
|
59
|
-
if (isAngularDeferPayload(payload)) {
|
|
60
|
-
pending[id] = payload;
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const node = document.getElementById(id);
|
|
64
|
-
if (!node) {
|
|
65
|
-
pending[id] = payload;
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const html = resolveHtml(payload);
|
|
69
|
-
if (isVueSuspensePayload(payload) && isPatchedPendingEntry(pendingEntry)) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
node.innerHTML = html;
|
|
73
|
-
node.setAttribute("data-absolute-slot-state", "resolved");
|
|
74
|
-
window.dispatchEvent(new CustomEvent(SLOT_PATCH_EVENT, {
|
|
75
|
-
detail: { html, id, payload }
|
|
76
|
-
}));
|
|
77
|
-
if (isVueSuspensePayload(payload)) {
|
|
78
|
-
pending[id] = { domPatched: true, payload };
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
delete pending[id];
|
|
82
|
-
};
|
|
83
|
-
const flush = () => {
|
|
84
|
-
for (const id in pending) {
|
|
85
|
-
if (!Object.prototype.hasOwnProperty.call(pending, id))
|
|
86
|
-
continue;
|
|
87
|
-
apply(id, pending[id] ?? "");
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
absoluteWindow.__ABS_SLOT_FLUSH__ = flush;
|
|
91
|
-
absoluteWindow.__ABS_SLOT_ENQUEUE__ = (id, payload) => {
|
|
92
|
-
apply(id, payload);
|
|
93
|
-
};
|
|
94
|
-
if (typeof MutationObserver === "function") {
|
|
95
|
-
const observer = new MutationObserver(flush);
|
|
96
|
-
const root = document.documentElement ?? document.body ?? document;
|
|
97
|
-
observer.observe(root, { childList: true, subtree: true });
|
|
98
|
-
}
|
|
99
|
-
if (document.readyState === "loading") {
|
|
100
|
-
document.addEventListener("DOMContentLoaded", flush, { once: true });
|
|
101
|
-
}
|
|
102
|
-
flush();
|
|
103
|
-
};
|
|
104
|
-
var stripFunctionWrapper = (value) => {
|
|
105
|
-
const start = value.indexOf("{");
|
|
106
|
-
const end = value.lastIndexOf("}");
|
|
107
|
-
if (start < 0 || end <= start)
|
|
108
|
-
return "";
|
|
109
|
-
return value.slice(start + 1, end);
|
|
110
|
-
};
|
|
111
|
-
var getStreamSwapRuntimeScript = () => `(function(){${stripFunctionWrapper(streamSwapRuntime.toString())}})();`;
|
|
112
|
-
|
|
113
|
-
export { getStreamSwapRuntimeScript };
|
|
114
|
-
|
|
115
|
-
//# debugId=DF88AEAE12F4398E64756E2164756E21
|
|
116
|
-
//# sourceMappingURL=chunk-s6defjk2.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/client/streamSwap.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"type AbsoluteSlotWindow = Window & {\n\t__ABS_SLOT_ENQUEUE__?: (id: string, payload: unknown) => void;\n\t__ABS_SLOT_FLUSH__?: () => void;\n\t__ABS_SLOT_CONSUMERS__?: Record<\n\t\tstring,\n\t\t((payload: unknown) => boolean | void) | undefined\n\t>;\n\t__ABS_SLOT_HYDRATION_PENDING__?: boolean;\n\t__ABS_SLOT_PENDING__?: Record<string, unknown>;\n\t__ABS_SLOT_RUNTIME__?: boolean;\n};\n\nconst streamSwapRuntime = () => {\n\tconst absoluteWindow: AbsoluteSlotWindow = window;\n\tconst SLOT_PATCH_EVENT = 'absolutejs:slot-patch';\n\tif (absoluteWindow.__ABS_SLOT_RUNTIME__ === true) return;\n\tabsoluteWindow.__ABS_SLOT_RUNTIME__ = true;\n\tabsoluteWindow.__ABS_SLOT_CONSUMERS__ =\n\t\tabsoluteWindow.__ABS_SLOT_CONSUMERS__ ?? {};\n\tabsoluteWindow.__ABS_SLOT_PENDING__ =\n\t\tabsoluteWindow.__ABS_SLOT_PENDING__ ?? {};\n\tconst consumers = absoluteWindow.__ABS_SLOT_CONSUMERS__;\n\tconst pending = absoluteWindow.__ABS_SLOT_PENDING__;\n\tconst isObjectRecord = (value: unknown): value is Record<string, unknown> =>\n\t\tBoolean(value) && typeof value === 'object';\n\tconst isPatchedPendingEntry = (\n\t\tvalue: unknown\n\t): value is {\n\t\tdomPatched: true;\n\t\tpayload: unknown;\n\t} => {\n\t\tif (!isObjectRecord(value)) return false;\n\n\t\treturn value.domPatched === true && 'payload' in value;\n\t};\n\tconst unwrapPendingPayload = (value: unknown) =>\n\t\tisPatchedPendingEntry(value) ? value.payload : value;\n\tconst canApplyImmediately = () =>\n\t\tabsoluteWindow.__ABS_SLOT_HYDRATION_PENDING__ !== true;\n\tconst isAngularDeferPayload = (payload: unknown) => {\n\t\tif (!isObjectRecord(payload)) return false;\n\n\t\treturn payload.kind === 'angular-defer';\n\t};\n\tconst isVueSuspensePayload = (payload: unknown) => {\n\t\tif (!isObjectRecord(payload)) return false;\n\n\t\treturn payload.kind === 'vue-suspense';\n\t};\n\tconst resolveHtml = (payload: unknown) => {\n\t\tif (!isObjectRecord(payload)) {\n\t\t\treturn typeof payload === 'string' ? payload : '';\n\t\t}\n\t\tif (typeof payload.html === 'string') {\n\t\t\treturn payload.html;\n\t\t}\n\n\t\treturn '';\n\t};\n\n\tconst apply = (id: string, pendingEntry: unknown) => {\n\t\tconst payload = unwrapPendingPayload(pendingEntry);\n\t\tif (!canApplyImmediately()) {\n\t\t\tpending[id] = payload;\n\n\t\t\treturn;\n\t\t}\n\t\tconst consumer = consumers[id];\n\t\tif (typeof consumer !== 'function') {\n\t\t\tapplyToDom(id, payload, pendingEntry);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst handled = consumer(payload);\n\t\tif (handled !== false) {\n\t\t\tdelete pending[id];\n\n\t\t\treturn;\n\t\t}\n\n\t\tapplyToDom(id, payload, pendingEntry);\n\t};\n\tconst applyToDom = (\n\t\tid: string,\n\t\tpayload: unknown,\n\t\tpendingEntry: unknown\n\t) => {\n\t\tif (isAngularDeferPayload(payload)) {\n\t\t\tpending[id] = payload;\n\n\t\t\treturn;\n\t\t}\n\t\tconst node = document.getElementById(id);\n\t\tif (!node) {\n\t\t\tpending[id] = payload;\n\n\t\t\treturn;\n\t\t}\n\t\tconst html = resolveHtml(payload);\n\t\tif (\n\t\t\tisVueSuspensePayload(payload) &&\n\t\t\tisPatchedPendingEntry(pendingEntry)\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tnode.innerHTML = html;\n\t\tnode.setAttribute('data-absolute-slot-state', 'resolved');\n\t\twindow.dispatchEvent(\n\t\t\tnew CustomEvent(SLOT_PATCH_EVENT, {\n\t\t\t\tdetail: { html, id, payload }\n\t\t\t})\n\t\t);\n\t\tif (isVueSuspensePayload(payload)) {\n\t\t\tpending[id] = { domPatched: true, payload };\n\n\t\t\treturn;\n\t\t}\n\t\tdelete pending[id];\n\t};\n\n\tconst flush = () => {\n\t\tfor (const id in pending) {\n\t\t\tif (!Object.prototype.hasOwnProperty.call(pending, id)) continue;\n\t\t\tapply(id, pending[id] ?? '');\n\t\t}\n\t};\n\n\tabsoluteWindow.__ABS_SLOT_FLUSH__ = flush;\n\tabsoluteWindow.__ABS_SLOT_ENQUEUE__ = (id: string, payload: unknown) => {\n\t\tapply(id, payload);\n\t};\n\n\tif (typeof MutationObserver === 'function') {\n\t\tconst observer = new MutationObserver(flush);\n\t\tconst root = document.documentElement ?? document.body ?? document;\n\t\tobserver.observe(root, { childList: true, subtree: true });\n\t}\n\n\tif (document.readyState === 'loading') {\n\t\tdocument.addEventListener('DOMContentLoaded', flush, { once: true });\n\t}\n\tflush();\n};\n\nconst stripFunctionWrapper = (value: string) => {\n\tconst start = value.indexOf('{');\n\tconst end = value.lastIndexOf('}');\n\tif (start < 0 || end <= start) return '';\n\n\treturn value.slice(start + 1, end);\n};\n\nexport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