@absolutejs/absolute 0.20.0-beta.121 → 0.20.0-beta.123
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/CHANGELOG.md +29 -0
- package/changelog.json +57 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +14 -2
- package/dist/angular/index.js.map +5 -4
- package/dist/angular/server.js +14 -2
- package/dist/angular/server.js.map +5 -4
- package/dist/build.js +120 -43
- package/dist/build.js.map +7 -6
- package/dist/cli/config/server.js +9 -1
- package/dist/cli/{dev-pdefc9ac.js → dev-s7kct3xq.js} +6 -1
- package/dist/cli/index-hty8111z.js +410 -0
- package/dist/cli/index.js +6 -2
- package/dist/cli/patchedBun-zjtrn2s4.js +38 -0
- package/dist/client/chunks/index-dk743xs6.js +146 -0
- package/dist/client/chunks/index-dk743xs6.js.map +10 -0
- package/dist/client/chunks/index-jrcwp722.js +12 -0
- package/dist/client/chunks/index-jrcwp722.js.map +10 -0
- package/dist/client/chunks/{islands-xj2n8nwf.js → islands-50dg63j9.js} +6 -3
- package/dist/client/chunks/{islands-xj2n8nwf.js.map → islands-50dg63j9.js.map} +3 -3
- package/dist/client/chunks/{react-pdg4325x.js → react-yq4ss9y4.js} +4 -3
- package/dist/client/chunks/{react-pdg4325x.js.map → react-yq4ss9y4.js.map} +2 -2
- package/dist/client/index.js +5 -4
- package/dist/client/index.js.map +2 -2
- package/dist/dev/client/handlers/react.ts +31 -39
- package/dist/dev/client/hmrClient.ts +3 -0
- package/dist/dev/serverBootstrap.js +11 -0
- package/dist/index.js +122 -45
- package/dist/index.js.map +7 -6
- package/dist/islands/index.js +14 -2
- package/dist/islands/index.js.map +5 -4
- package/dist/mobile/remoteMacAgentEntry.js +1 -1
- package/dist/react/index.js +14 -2
- package/dist/react/index.js.map +5 -4
- package/dist/react/server.js +14 -2
- package/dist/react/server.js.map +5 -4
- package/dist/src/cli/patchedBun.d.ts +84 -0
- package/dist/src/client/browserTranslation.d.ts +3 -0
- package/dist/src/client/browserTranslationAttributes.d.ts +2 -0
- package/dist/src/dev/hotRejectionGuard.d.ts +1 -0
- package/dist/src/dev/moduleServer.d.ts +10 -3
- package/dist/src/mobile/emulatorDoctor.d.ts +1 -1
- package/dist/src/vue/components/Image.d.ts +1 -1
- package/dist/svelte/index.js +14 -2
- package/dist/svelte/index.js.map +5 -4
- package/dist/svelte/server.js +14 -2
- package/dist/svelte/server.js.map +5 -4
- package/dist/types/globals.d.ts +10 -0
- package/dist/vue/browser.js +75 -8
- package/dist/vue/browser.js.map +5 -4
- package/dist/vue/index.js +77 -9
- package/dist/vue/index.js.map +6 -5
- package/dist/vue/server.js +14 -2
- package/dist/vue/server.js.map +5 -4
- package/package.json +1 -1
- package/dist/client/chunks/index-5py90ctf.js +0 -87
- package/dist/client/chunks/index-5py90ctf.js.map +0 -10
- package/dist/cli/{mobile-00bqw12c.js → mobile-6kdsrhxy.js} +3 -3
package/dist/index.js
CHANGED
|
@@ -7026,6 +7026,17 @@ var init_registerClientScript = __esm(() => {
|
|
|
7026
7026
|
}
|
|
7027
7027
|
});
|
|
7028
7028
|
|
|
7029
|
+
// src/client/browserTranslationAttributes.ts
|
|
7030
|
+
var TRANSLATABLE_ATTRIBUTES;
|
|
7031
|
+
var init_browserTranslationAttributes = __esm(() => {
|
|
7032
|
+
TRANSLATABLE_ATTRIBUTES = [
|
|
7033
|
+
"alt",
|
|
7034
|
+
"title",
|
|
7035
|
+
"placeholder",
|
|
7036
|
+
"aria-label"
|
|
7037
|
+
];
|
|
7038
|
+
});
|
|
7039
|
+
|
|
7029
7040
|
// src/core/browserTranslation.ts
|
|
7030
7041
|
var BASELINE_MARKER = "__ABSOLUTE_SSR_TEXT_BASELINES__", BROWSER_TRANSLATION_BASELINE_SCRIPT, browserTranslationBaselineTag = () => `<script>${BROWSER_TRANSLATION_BASELINE_SCRIPT}</script>`, injectBrowserTranslationBaseline = (html) => {
|
|
7031
7042
|
if (html.includes(BASELINE_MARKER))
|
|
@@ -7037,7 +7048,8 @@ var BASELINE_MARKER = "__ABSOLUTE_SSR_TEXT_BASELINES__", BROWSER_TRANSLATION_BAS
|
|
|
7037
7048
|
return `${html.slice(0, closingBodyIndex)}${script}${html.slice(closingBodyIndex)}`;
|
|
7038
7049
|
};
|
|
7039
7050
|
var init_browserTranslation = __esm(() => {
|
|
7040
|
-
|
|
7051
|
+
init_browserTranslationAttributes();
|
|
7052
|
+
BROWSER_TRANSLATION_BASELINE_SCRIPT = "window.__ABSOLUTE_SSR_TEXT_BASELINES__=new WeakMap();" + "window.__ABSOLUTE_SSR_ATTRIBUTE_BASELINES__=new WeakMap();" + "{const r=document.body,b=window.__ABSOLUTE_SSR_TEXT_BASELINES__," + "a=window.__ABSOLUTE_SSR_ATTRIBUTE_BASELINES__;" + 'if(r)for(const e of [r,...r.querySelectorAll("*")]){' + "const t=new Map();for(const [i,n]of[...e.childNodes].entries())" + 'if(n.nodeType===3)t.set(i,n.nodeValue??"");if(t.size)b.set(e,t);' + `const v=new Map();for(const k of ${JSON.stringify(TRANSLATABLE_ATTRIBUTES)}){` + "const s=e.getAttribute(k);if(s!==null)v.set(k,s);}if(v.size)a.set(e,v);}}";
|
|
7041
7053
|
});
|
|
7042
7054
|
|
|
7043
7055
|
// src/angular/httpTransferCache.ts
|
|
@@ -25877,7 +25889,7 @@ var init_compileAngular = __esm(() => {
|
|
|
25877
25889
|
|
|
25878
25890
|
// node_modules/content-tag/pkg/node/content_tag.cjs
|
|
25879
25891
|
var require_content_tag = __commonJS(function(exports, module) {
|
|
25880
|
-
var __dirname = "/
|
|
25892
|
+
var __dirname = "/home/alexkahn/abs/absolutejs/.claude/worktrees/release/node_modules/content-tag/pkg/node";
|
|
25881
25893
|
var imports = {};
|
|
25882
25894
|
imports["__wbindgen_placeholder__"] = exports;
|
|
25883
25895
|
var wasm;
|
|
@@ -30103,15 +30115,6 @@ var init_fileHashTracker = __esm(() => {
|
|
|
30103
30115
|
});
|
|
30104
30116
|
|
|
30105
30117
|
// src/dev/transformCache.ts
|
|
30106
|
-
var exports_transformCache = {};
|
|
30107
|
-
__export(exports_transformCache, {
|
|
30108
|
-
findNearestComponent: () => findNearestComponent,
|
|
30109
|
-
getInvalidationVersion: () => getInvalidationVersion,
|
|
30110
|
-
getTransformed: () => getTransformed,
|
|
30111
|
-
invalidate: () => invalidate,
|
|
30112
|
-
invalidateAll: () => invalidateAll,
|
|
30113
|
-
setTransformed: () => setTransformed
|
|
30114
|
-
});
|
|
30115
30118
|
var cache, importers, getTransformed = (filePath) => cache.get(filePath)?.content, setTransformed = (filePath, content, mtime, imports) => {
|
|
30116
30119
|
const resolvedImports = imports ?? [];
|
|
30117
30120
|
cache.set(filePath, { content, imports: resolvedImports, mtime });
|
|
@@ -30163,10 +30166,6 @@ var cache, importers, getTransformed = (filePath) => cache.get(filePath)?.conten
|
|
|
30163
30166
|
queue.push(parent);
|
|
30164
30167
|
}
|
|
30165
30168
|
}
|
|
30166
|
-
}, invalidateAll = () => {
|
|
30167
|
-
cache.clear();
|
|
30168
|
-
importers.clear();
|
|
30169
|
-
invalidationVersions.clear();
|
|
30170
30169
|
};
|
|
30171
30170
|
var init_transformCache = __esm(() => {
|
|
30172
30171
|
cache = globalThis.__transformCache ?? new Map;
|
|
@@ -30878,6 +30877,7 @@ __export(exports_moduleServer, {
|
|
|
30878
30877
|
SRC_URL_PREFIX: () => SRC_URL_PREFIX2,
|
|
30879
30878
|
createDevPageWarmer: () => createDevPageWarmer,
|
|
30880
30879
|
createModuleServer: () => createModuleServer,
|
|
30880
|
+
getTransformError: () => getTransformError,
|
|
30881
30881
|
importedBindingNames: () => importedBindingNames,
|
|
30882
30882
|
invalidateModule: () => invalidateModule,
|
|
30883
30883
|
isReactFastRefreshSupported: () => isReactFastRefreshSupported,
|
|
@@ -31078,7 +31078,7 @@ ${code2}`;
|
|
|
31078
31078
|
reactFastRefresh: true
|
|
31079
31079
|
};
|
|
31080
31080
|
const probe = new Bun.Transpiler(probeOptions);
|
|
31081
|
-
const out = probe.transformSync("export function
|
|
31081
|
+
const out = probe.transformSync("export function AbsoluteRefreshProbe(){return null;}");
|
|
31082
31082
|
return out.includes("$RefreshReg$");
|
|
31083
31083
|
} catch {
|
|
31084
31084
|
return false;
|
|
@@ -31087,7 +31087,7 @@ ${code2}`;
|
|
|
31087
31087
|
if (reactFastRefreshSupported || reactFastRefreshWarningEmitted)
|
|
31088
31088
|
return;
|
|
31089
31089
|
reactFastRefreshWarningEmitted = true;
|
|
31090
|
-
logWarn("React
|
|
31090
|
+
logWarn("React edits remount the page instead of keeping component state: " + "this Bun ignores `reactFastRefresh` on Bun.Transpiler " + "(https://github.com/oven-sh/bun/issues/32919). Run " + "`absolute bun-patch install` to use AbsoluteJS's patched Bun, " + "which has the fix; `absolute dev` then uses it automatically.");
|
|
31091
31091
|
}, transformReactFile = (filePath, projectRoot, rewriter) => {
|
|
31092
31092
|
const raw = readFileSync38(filePath, "utf-8");
|
|
31093
31093
|
const valueExports = tsxTranspiler.scan(raw).exports;
|
|
@@ -31637,7 +31637,27 @@ export default {};
|
|
|
31637
31637
|
const content = await transformVueFile(filePath, projectRoot, rewriter, vueDir, stylePreprocessors);
|
|
31638
31638
|
setTransformed(filePath, content, stat4.mtimeMs, extractImportedFiles(content, projectRoot));
|
|
31639
31639
|
return jsResponse(content);
|
|
31640
|
-
},
|
|
31640
|
+
}, transformErrors, readPosition = (value) => {
|
|
31641
|
+
if (!value || typeof value !== "object")
|
|
31642
|
+
return;
|
|
31643
|
+
const position = Reflect.get(value, "position");
|
|
31644
|
+
if (!position || typeof position !== "object")
|
|
31645
|
+
return;
|
|
31646
|
+
const line = Reflect.get(position, "line");
|
|
31647
|
+
const column = Reflect.get(position, "column");
|
|
31648
|
+
const lineText = Reflect.get(position, "lineText");
|
|
31649
|
+
return {
|
|
31650
|
+
column: typeof column === "number" ? column : undefined,
|
|
31651
|
+
line: typeof line === "number" ? line : undefined,
|
|
31652
|
+
lineText: typeof lineText === "string" ? lineText : undefined
|
|
31653
|
+
};
|
|
31654
|
+
}, describeTransformError = (err) => {
|
|
31655
|
+
const [first] = err instanceof AggregateError && Array.isArray(err.errors) ? err.errors : [err];
|
|
31656
|
+
const source = first ?? err;
|
|
31657
|
+
const ownMessage = source && typeof source === "object" ? Reflect.get(source, "message") : undefined;
|
|
31658
|
+
const message = typeof ownMessage === "string" ? ownMessage : String(source);
|
|
31659
|
+
return { message, ...readPosition(first) };
|
|
31660
|
+
}, getTransformError = (filePath) => transformErrors.get(resolve48(filePath)), transformErrorResponse = (err) => {
|
|
31641
31661
|
const errMsg = err instanceof Error ? err.message : String(err);
|
|
31642
31662
|
return new Response(`console.error('[ModuleServer] Transform error:', ${JSON.stringify(errMsg)});`, {
|
|
31643
31663
|
headers: { "Content-Type": "application/javascript" },
|
|
@@ -31665,8 +31685,11 @@ export default {};
|
|
|
31665
31685
|
return virtualCssResponse;
|
|
31666
31686
|
const { filePath, ext } = resolveSourcePath2(relPath, projectRoot);
|
|
31667
31687
|
try {
|
|
31668
|
-
|
|
31688
|
+
const response = await transformAndCache(filePath, ext, projectRoot, rewriter, frameworkDirs?.vue, stylePreprocessors);
|
|
31689
|
+
transformErrors.delete(resolve48(filePath));
|
|
31690
|
+
return response;
|
|
31669
31691
|
} catch (err) {
|
|
31692
|
+
transformErrors.set(resolve48(filePath), describeTransformError(err));
|
|
31670
31693
|
return transformErrorResponse(err);
|
|
31671
31694
|
}
|
|
31672
31695
|
};
|
|
@@ -31679,21 +31702,23 @@ export default {};
|
|
|
31679
31702
|
files.push(resolve48(projectRoot, match[1]));
|
|
31680
31703
|
}
|
|
31681
31704
|
return files;
|
|
31682
|
-
}, invalidateModule = (filePath) => {
|
|
31705
|
+
}, SRC_URL_PREFIX2, invalidateModule = (filePath) => {
|
|
31683
31706
|
const resolved = resolve48(filePath);
|
|
31707
|
+
transformErrors.delete(resolved);
|
|
31684
31708
|
invalidate(filePath);
|
|
31685
31709
|
if (resolved !== filePath)
|
|
31686
31710
|
invalidate(resolved);
|
|
31687
31711
|
mtimeCache.delete(filePath);
|
|
31688
31712
|
mtimeCache.delete(resolved);
|
|
31713
|
+
}, setGlobalModuleServer = (handler) => {
|
|
31714
|
+
globalThis.__absoluteModuleServer = handler ?? undefined;
|
|
31689
31715
|
}, warmCache = async (pathname) => {
|
|
31690
31716
|
if (!pathname.startsWith(SRC_PREFIX))
|
|
31691
31717
|
return;
|
|
31692
|
-
|
|
31718
|
+
const handler = globalThis.__absoluteModuleServer;
|
|
31719
|
+
if (!handler)
|
|
31693
31720
|
return;
|
|
31694
|
-
await
|
|
31695
|
-
}, globalModuleServer = null, SRC_URL_PREFIX2, setGlobalModuleServer = (handler) => {
|
|
31696
|
-
globalModuleServer = handler;
|
|
31721
|
+
await handler(pathname);
|
|
31697
31722
|
}, REBUILD_IDLE_POLL_MS = 10, getDevResult = () => globalThis.__hmrDevResult, resolveDevPageEntry = (keyOrPath) => {
|
|
31698
31723
|
const cached = getDevResult();
|
|
31699
31724
|
const lazy = cached?.hmrState.lazyPages;
|
|
@@ -31864,6 +31889,8 @@ export function __legacyDecorateParamTS(paramIndex, decorator) {
|
|
|
31864
31889
|
return function (target, key) { decorator(target, key, paramIndex); };
|
|
31865
31890
|
}
|
|
31866
31891
|
`.trim();
|
|
31892
|
+
transformErrors = globalThis.__absoluteTransformErrors ?? new Map;
|
|
31893
|
+
globalThis.__absoluteTransformErrors = transformErrors;
|
|
31867
31894
|
SRC_IMPORT_RE = /\/@src\/([^"'?\s]+)/g;
|
|
31868
31895
|
SRC_URL_PREFIX2 = SRC_PREFIX;
|
|
31869
31896
|
});
|
|
@@ -32233,7 +32260,7 @@ __export(exports_rebuildTrigger, {
|
|
|
32233
32260
|
queueFileChange: () => queueFileChange,
|
|
32234
32261
|
triggerRebuild: () => triggerRebuild
|
|
32235
32262
|
});
|
|
32236
|
-
import { existsSync as existsSync45, readdirSync as readdirSync12, rmSync as rmSync4 } from "fs";
|
|
32263
|
+
import { existsSync as existsSync45, readdirSync as readdirSync12, rmSync as rmSync4, statSync as statSync8 } from "fs";
|
|
32237
32264
|
import {
|
|
32238
32265
|
basename as basename20,
|
|
32239
32266
|
dirname as dirname35,
|
|
@@ -33378,28 +33405,76 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
|
|
|
33378
33405
|
const url = `${SRC_URL_PREFIX3}${rel}`;
|
|
33379
33406
|
await warmCache2(url);
|
|
33380
33407
|
return url;
|
|
33381
|
-
}, getReactModuleUrl,
|
|
33382
|
-
|
|
33383
|
-
|
|
33384
|
-
|
|
33385
|
-
|
|
33386
|
-
|
|
33387
|
-
|
|
33408
|
+
}, getReactModuleUrl, isReactComponentPath = (file6) => file6.endsWith(".tsx") || file6.endsWith(".jsx"), isReactPagePath = (file6) => file6.replace(/\\/g, "/").includes("/pages/"), isImportableModule = (file6) => {
|
|
33409
|
+
try {
|
|
33410
|
+
return statSync8(file6).isFile();
|
|
33411
|
+
} catch {
|
|
33412
|
+
return false;
|
|
33413
|
+
}
|
|
33414
|
+
}, resolveComponentTarget = (file6, reactFiles, edited) => {
|
|
33415
|
+
if (isReactComponentPath(file6))
|
|
33416
|
+
return file6;
|
|
33417
|
+
const nearest = findNearestComponent(resolvePath(file6));
|
|
33418
|
+
if (nearest && isImportableModule(nearest))
|
|
33419
|
+
return nearest;
|
|
33420
|
+
const dependents = reactFiles.filter((candidate) => !edited.has(candidate) && isReactComponentPath(candidate) && isImportableModule(candidate));
|
|
33421
|
+
return dependents.find((candidate) => !isReactPagePath(candidate)) ?? dependents[0] ?? file6;
|
|
33422
|
+
}, resolveReactUpdateTargets = (state, reactFiles) => {
|
|
33423
|
+
const importable = reactFiles.filter(isImportableModule);
|
|
33424
|
+
const userEdited = importable.filter((file6) => state.lastUserEditedFiles?.has(resolvePath(file6)));
|
|
33425
|
+
const editedFiles = userEdited.length > 0 ? userEdited : importable;
|
|
33426
|
+
const edited = new Set(editedFiles);
|
|
33427
|
+
const ordered = [
|
|
33428
|
+
...editedFiles.filter((file6) => !isReactPagePath(file6)),
|
|
33429
|
+
...editedFiles.filter(isReactPagePath)
|
|
33430
|
+
];
|
|
33431
|
+
const targets = ordered.map((file6) => resolveComponentTarget(file6, reactFiles, edited));
|
|
33432
|
+
return { editedFiles, targets: [...new Set(targets)] };
|
|
33433
|
+
}, resolveAffectedPageModules = async (reactFiles) => {
|
|
33434
|
+
const pages = reactFiles.filter((file6) => isReactPagePath(file6) && isReactComponentPath(file6) && isImportableModule(file6));
|
|
33435
|
+
const entries = await Promise.all(pages.map(async (page) => [
|
|
33436
|
+
`${basename20(page).replace(/\.[jt]sx$/, "")}Index`,
|
|
33437
|
+
await getReactModuleUrl(page)
|
|
33438
|
+
]));
|
|
33439
|
+
return Object.fromEntries(entries);
|
|
33388
33440
|
}, handleReactModuleServerPath = async (state, reactFiles, startTime, fastRefreshSupported, onRebuildComplete) => {
|
|
33389
|
-
const
|
|
33390
|
-
|
|
33441
|
+
const { invalidateModule: invalidateModule2 } = await getModuleServer();
|
|
33442
|
+
for (const file6 of reactFiles) {
|
|
33443
|
+
invalidateModule2(file6);
|
|
33444
|
+
}
|
|
33445
|
+
const { editedFiles, targets } = resolveReactUpdateTargets(state, reactFiles);
|
|
33446
|
+
const [primaryTarget] = targets;
|
|
33447
|
+
if (!primaryTarget) {
|
|
33391
33448
|
onRebuildComplete({
|
|
33392
33449
|
hmrState: state,
|
|
33393
33450
|
manifest: state.manifest
|
|
33394
33451
|
});
|
|
33395
33452
|
return state.manifest;
|
|
33396
33453
|
}
|
|
33397
|
-
const
|
|
33398
|
-
|
|
33399
|
-
|
|
33454
|
+
const moduleUrls = await Promise.all(targets.map(getReactModuleUrl));
|
|
33455
|
+
await Promise.all(editedFiles.filter((file6) => !targets.includes(file6)).map(getReactModuleUrl));
|
|
33456
|
+
const { getTransformError: getTransformError2 } = await getModuleServer();
|
|
33457
|
+
const failed = [...new Set([...editedFiles, ...targets])].map((file6) => ({ error: getTransformError2(file6), file: file6 })).find((entry) => entry.error !== undefined);
|
|
33458
|
+
if (failed?.error) {
|
|
33459
|
+
broadcastToClients(state, {
|
|
33460
|
+
data: {
|
|
33461
|
+
affectedFrameworks: ["react"],
|
|
33462
|
+
column: failed.error.column,
|
|
33463
|
+
error: failed.error.message,
|
|
33464
|
+
file: failed.file,
|
|
33465
|
+
framework: "react",
|
|
33466
|
+
line: failed.error.line,
|
|
33467
|
+
lineText: failed.error.lineText
|
|
33468
|
+
},
|
|
33469
|
+
message: "React module failed to compile",
|
|
33470
|
+
type: "rebuild-error"
|
|
33471
|
+
});
|
|
33472
|
+
onRebuildComplete({ hmrState: state, manifest: state.manifest });
|
|
33473
|
+
return state.manifest;
|
|
33400
33474
|
}
|
|
33401
|
-
const
|
|
33402
|
-
const pageModuleUrl =
|
|
33475
|
+
const pageModuleUrls = fastRefreshSupported ? undefined : await resolveAffectedPageModules(reactFiles);
|
|
33476
|
+
const [pageModuleUrl] = moduleUrls;
|
|
33477
|
+
const primaryFile = reactFiles.find((file6) => isImportableModule(file6) && !isReactPagePath(file6)) ?? primaryTarget;
|
|
33403
33478
|
if (pageModuleUrl) {
|
|
33404
33479
|
const serverDuration = Date.now() - startTime;
|
|
33405
33480
|
state.lastHmrPath = relative23(process.cwd(), primaryFile).replace(/\\/g, "/");
|
|
@@ -33411,7 +33486,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, clearDevSs
|
|
|
33411
33486
|
hasComponentChanges: true,
|
|
33412
33487
|
hasCSSChanges: false,
|
|
33413
33488
|
manifest: state.manifest,
|
|
33489
|
+
moduleUrls,
|
|
33414
33490
|
pageModuleUrl,
|
|
33491
|
+
pageModuleUrls,
|
|
33415
33492
|
primarySource: primaryFile,
|
|
33416
33493
|
serverDuration,
|
|
33417
33494
|
sourceFiles: reactFiles
|
|
@@ -35422,7 +35499,7 @@ __export(exports_devBuild, {
|
|
|
35422
35499
|
devBuild: () => devBuild
|
|
35423
35500
|
});
|
|
35424
35501
|
import { readdir as readdir5 } from "fs/promises";
|
|
35425
|
-
import { existsSync as existsSync47, statSync as
|
|
35502
|
+
import { existsSync as existsSync47, statSync as statSync9 } from "fs";
|
|
35426
35503
|
import { resolve as resolve53 } from "path";
|
|
35427
35504
|
var FRAMEWORK_DIR_KEYS, devClientVendorSourceDir = () => resolve53(import.meta.dir, "../dev/client"), collectDepVendorSourceDirs = (config) => {
|
|
35428
35505
|
const configuredDirs = [
|
|
@@ -35562,7 +35639,7 @@ var FRAMEWORK_DIR_KEYS, devClientVendorSourceDir = () => resolve53(import.meta.d
|
|
|
35562
35639
|
});
|
|
35563
35640
|
}
|
|
35564
35641
|
}, handleCachedReload = async () => {
|
|
35565
|
-
const serverMtime =
|
|
35642
|
+
const serverMtime = statSync9(resolve53(Bun.main)).mtimeMs;
|
|
35566
35643
|
const lastMtime = globalThis.__hmrServerMtime;
|
|
35567
35644
|
globalThis.__hmrServerMtime = serverMtime;
|
|
35568
35645
|
const cached = globalThis.__hmrDevResult;
|
|
@@ -35943,7 +36020,7 @@ var FRAMEWORK_DIR_KEYS, devClientVendorSourceDir = () => resolve53(import.meta.d
|
|
|
35943
36020
|
manifest
|
|
35944
36021
|
};
|
|
35945
36022
|
globalThis.__hmrDevResult = result;
|
|
35946
|
-
globalThis.__hmrServerMtime =
|
|
36023
|
+
globalThis.__hmrServerMtime = statSync9(resolve53(Bun.main)).mtimeMs;
|
|
35947
36024
|
return result;
|
|
35948
36025
|
};
|
|
35949
36026
|
var init_devBuild = __esm(() => {
|
|
@@ -38086,7 +38163,7 @@ import {
|
|
|
38086
38163
|
existsSync as existsSync52,
|
|
38087
38164
|
readdirSync as readdirSync16,
|
|
38088
38165
|
readFileSync as readFileSync45,
|
|
38089
|
-
statSync as
|
|
38166
|
+
statSync as statSync10,
|
|
38090
38167
|
watch as watch2
|
|
38091
38168
|
} from "fs";
|
|
38092
38169
|
import { createHash as createHash13 } from "crypto";
|
|
@@ -38245,7 +38322,7 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ENTRY_IMPORT_RETR
|
|
|
38245
38322
|
continue;
|
|
38246
38323
|
let st2;
|
|
38247
38324
|
try {
|
|
38248
|
-
st2 =
|
|
38325
|
+
st2 = statSync10(join67(dir, entry.name));
|
|
38249
38326
|
} catch {
|
|
38250
38327
|
continue;
|
|
38251
38328
|
}
|
|
@@ -45701,5 +45778,5 @@ export {
|
|
|
45701
45778
|
wrapPageHandlerWithStreamingSlots
|
|
45702
45779
|
};
|
|
45703
45780
|
|
|
45704
|
-
//# debugId=
|
|
45781
|
+
//# debugId=B86705ABD58A04A464756E2164756E21
|
|
45705
45782
|
//# sourceMappingURL=index.js.map
|