@absolutejs/absolute 0.19.0-beta.1061 → 0.19.0-beta.1063
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/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/cli/index.js +4 -3
- package/dist/index.js +128 -111
- package/dist/index.js.map +5 -5
- package/dist/src/core/prepare.d.ts +0 -32
- package/dist/types/build.d.ts +11 -0
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-m7LPLZ/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-m7LPLZ/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-m7LPLZ/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/cli/index.js
CHANGED
|
@@ -177481,7 +177481,7 @@ console.log(\`
|
|
|
177481
177481
|
path: jsxDevRuntimeCompatPath2
|
|
177482
177482
|
}));
|
|
177483
177483
|
bld.onLoad({ filter: /node_modules\/debug/ }, () => ({
|
|
177484
|
-
contents: "module.exports = () => { const noop = () => {}; noop.enabled = false; return noop; }; module.exports.enable = () => {}; module.exports.disable = () => {}; module.exports.enabled = () => false;",
|
|
177484
|
+
contents: "module.exports = () => { const noop = () => {}; noop.enabled = false; return noop; }; module.exports.enable = () => {}; module.exports.disable = () => {}; module.exports.enabled = () => false; module.exports.default = module.exports;",
|
|
177485
177485
|
loader: "js"
|
|
177486
177486
|
}));
|
|
177487
177487
|
bld.onLoad({ filter: /\.ts$/ }, async (args) => {
|
|
@@ -177573,7 +177573,8 @@ console.log(\`
|
|
|
177573
177573
|
stubSvelte: !buildConfig.svelteDirectory,
|
|
177574
177574
|
stubVue: !buildConfig.vueDirectory
|
|
177575
177575
|
}),
|
|
177576
|
-
createExternalAssetPlugin(resolvedOutdir, userSourceRoots)
|
|
177576
|
+
createExternalAssetPlugin(resolvedOutdir, userSourceRoots),
|
|
177577
|
+
...buildConfig.compile?.plugins ?? []
|
|
177577
177578
|
],
|
|
177578
177579
|
target: "bun",
|
|
177579
177580
|
throw: false
|
|
@@ -180063,7 +180064,7 @@ var start = async (serverEntry, outdir, configPath2) => {
|
|
|
180063
180064
|
path: jsxDevRuntimeCompatPath
|
|
180064
180065
|
}));
|
|
180065
180066
|
bld.onLoad({ filter: /node_modules\/debug/ }, () => ({
|
|
180066
|
-
contents: "module.exports = () => { const noop = () => {}; noop.enabled = false; return noop; }; module.exports.enable = () => {}; module.exports.disable = () => {}; module.exports.enabled = () => false;",
|
|
180067
|
+
contents: "module.exports = () => { const noop = () => {}; noop.enabled = false; return noop; }; module.exports.enable = () => {}; module.exports.disable = () => {}; module.exports.enabled = () => false; module.exports.default = module.exports;",
|
|
180067
180068
|
loader: "js"
|
|
180068
180069
|
}));
|
|
180069
180070
|
bld.onLoad({ filter: /\.ts$/ }, async (args) => {
|
package/dist/index.js
CHANGED
|
@@ -18830,112 +18830,6 @@ var init_startupTimings = __esm(() => {
|
|
|
18830
18830
|
startupTimingsEnabled = process.env.ABSOLUTE_STARTUP_TIMINGS === "1" || process.env.ABSOLUTE_STARTUP_TIMINGS === "true";
|
|
18831
18831
|
});
|
|
18832
18832
|
|
|
18833
|
-
// src/core/devRouteRegistrationCallsite.ts
|
|
18834
|
-
var exports_devRouteRegistrationCallsite = {};
|
|
18835
|
-
__export(exports_devRouteRegistrationCallsite, {
|
|
18836
|
-
patchElysiaRouteRegistrationCallsites: () => patchElysiaRouteRegistrationCallsites,
|
|
18837
|
-
isPageHandler: () => isPageHandler,
|
|
18838
|
-
getOriginalPageHandlerSource: () => getOriginalPageHandlerSource,
|
|
18839
|
-
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite
|
|
18840
|
-
});
|
|
18841
|
-
import { AsyncLocalStorage } from "async_hooks";
|
|
18842
|
-
import { Elysia as Elysia2 } from "elysia";
|
|
18843
|
-
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, handlerSourceMentionsPageHelper = (handler) => {
|
|
18844
|
-
const source = handler.toString();
|
|
18845
|
-
return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
|
|
18846
|
-
}, getOriginalPageHandlerSource = (handler) => {
|
|
18847
|
-
if (typeof handler !== "function")
|
|
18848
|
-
return;
|
|
18849
|
-
const fn2 = handler;
|
|
18850
|
-
const info = pageHandlerWrappers.get(fn2);
|
|
18851
|
-
return (info?.originalHandler ?? fn2).toString();
|
|
18852
|
-
}, isPageHandler = (handler) => {
|
|
18853
|
-
if (typeof handler !== "function")
|
|
18854
|
-
return false;
|
|
18855
|
-
const fn2 = handler;
|
|
18856
|
-
if (pageHandlerWrappers.has(fn2))
|
|
18857
|
-
return true;
|
|
18858
|
-
return handlerSourceMentionsPageHelper(fn2);
|
|
18859
|
-
}, isObjectRecord3 = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", isRouteMethod = (value) => typeof value === "function", getRouteCallsiteStorage = () => {
|
|
18860
|
-
const value = Reflect.get(globalThis, ROUTE_CALLSITE_STORAGE_KEY);
|
|
18861
|
-
if (value === null || typeof value === "undefined") {
|
|
18862
|
-
return;
|
|
18863
|
-
}
|
|
18864
|
-
return isAsyncLocalStorage2(value) ? value : undefined;
|
|
18865
|
-
}, ensureRouteCallsiteStorage = () => {
|
|
18866
|
-
const existing = getRouteCallsiteStorage();
|
|
18867
|
-
if (existing) {
|
|
18868
|
-
return existing;
|
|
18869
|
-
}
|
|
18870
|
-
const storage = new AsyncLocalStorage;
|
|
18871
|
-
Reflect.set(globalThis, ROUTE_CALLSITE_STORAGE_KEY, storage);
|
|
18872
|
-
return storage;
|
|
18873
|
-
}, normalizeCallsitePath = (value) => value.replace(`${process.cwd()}/`, "").replace(process.cwd(), "").replace(/^\.\/+/, ""), shouldIgnoreRouteCallsiteFrame = (frame) => frame.includes("/node_modules/") || frame.includes("/dist/") || frame.includes("/src/core/devRouteRegistrationCallsite."), getRouteCallsiteLocation = (frame) => frame.match(/\((\/[^)]+:\d+:\d+)\)$/)?.[1] ?? frame.match(/at (\/[^ ]+:\d+:\d+)$/)?.[1], extractRouteRegistrationCallsite = (stack) => {
|
|
18874
|
-
const location = stack.split(`
|
|
18875
|
-
`).slice(1).map((line) => line.trim()).filter((frame) => !shouldIgnoreRouteCallsiteFrame(frame)).map((frame) => getRouteCallsiteLocation(frame)).find((frameLocation) => frameLocation !== undefined);
|
|
18876
|
-
return location ? normalizeCallsitePath(location) : undefined;
|
|
18877
|
-
}, captureRouteRegistrationCallsite = () => {
|
|
18878
|
-
const { stack } = new Error;
|
|
18879
|
-
if (!stack) {
|
|
18880
|
-
return;
|
|
18881
|
-
}
|
|
18882
|
-
return extractRouteRegistrationCallsite(stack);
|
|
18883
|
-
}, wrapRouteHandlerWithCallsite = (handler, callsite) => {
|
|
18884
|
-
if (typeof handler !== "function" || !callsite) {
|
|
18885
|
-
return handler;
|
|
18886
|
-
}
|
|
18887
|
-
const storage = ensureRouteCallsiteStorage();
|
|
18888
|
-
const routeHandler = handler;
|
|
18889
|
-
return function wrappedRouteHandler(...args) {
|
|
18890
|
-
return storage.run({ callsite }, () => Reflect.apply(routeHandler, this, args));
|
|
18891
|
-
};
|
|
18892
|
-
}, createPatchedRouteMethod = (originalMethod, methodName) => function patchedRouteMethod(path, handler, ...rest) {
|
|
18893
|
-
const callsite = captureRouteRegistrationCallsite();
|
|
18894
|
-
const wrapped = wrapRouteHandlerWithCallsite(handler, callsite);
|
|
18895
|
-
if (methodName === "get" && typeof handler === "function" && typeof wrapped === "function" && handlerSourceMentionsPageHelper(handler)) {
|
|
18896
|
-
pageHandlerWrappers.set(wrapped, {
|
|
18897
|
-
originalHandler: handler
|
|
18898
|
-
});
|
|
18899
|
-
}
|
|
18900
|
-
return Reflect.apply(originalMethod, this, [path, wrapped, ...rest]);
|
|
18901
|
-
}, getCurrentRouteRegistrationCallsite = () => getRouteCallsiteStorage()?.getStore()?.callsite, patchElysiaRouteRegistrationCallsites = () => {
|
|
18902
|
-
if (false) {}
|
|
18903
|
-
if (Reflect.get(globalThis, ROUTE_CALLSITE_PATCHED_KEY) === true) {
|
|
18904
|
-
return;
|
|
18905
|
-
}
|
|
18906
|
-
const { prototype } = Elysia2;
|
|
18907
|
-
ROUTE_METHOD_NAMES.forEach((methodName) => {
|
|
18908
|
-
const originalMethod = Reflect.get(prototype, methodName);
|
|
18909
|
-
if (!isRouteMethod(originalMethod))
|
|
18910
|
-
return;
|
|
18911
|
-
Reflect.set(prototype, methodName, createPatchedRouteMethod(originalMethod, methodName));
|
|
18912
|
-
});
|
|
18913
|
-
Reflect.set(globalThis, ROUTE_CALLSITE_PATCHED_KEY, true);
|
|
18914
|
-
};
|
|
18915
|
-
var init_devRouteRegistrationCallsite = __esm(() => {
|
|
18916
|
-
ROUTE_CALLSITE_STORAGE_KEY = Symbol.for("absolutejs.devRouteRegistrationCallsiteStorage");
|
|
18917
|
-
ROUTE_CALLSITE_PATCHED_KEY = Symbol.for("absolutejs.devRouteRegistrationCallsitePatched");
|
|
18918
|
-
ROUTE_METHOD_NAMES = [
|
|
18919
|
-
"all",
|
|
18920
|
-
"delete",
|
|
18921
|
-
"get",
|
|
18922
|
-
"head",
|
|
18923
|
-
"options",
|
|
18924
|
-
"patch",
|
|
18925
|
-
"post",
|
|
18926
|
-
"put"
|
|
18927
|
-
];
|
|
18928
|
-
PAGE_HANDLER_NAMES = [
|
|
18929
|
-
"handleReactPageRequest",
|
|
18930
|
-
"handleSveltePageRequest",
|
|
18931
|
-
"handleVuePageRequest",
|
|
18932
|
-
"handleAngularPageRequest",
|
|
18933
|
-
"handleHTMLPageRequest",
|
|
18934
|
-
"handleHTMXPageRequest"
|
|
18935
|
-
];
|
|
18936
|
-
pageHandlerWrappers = new WeakMap;
|
|
18937
|
-
});
|
|
18938
|
-
|
|
18939
18833
|
// src/utils/startupBanner.ts
|
|
18940
18834
|
var colors, MONTHS, formatTimestamp = () => {
|
|
18941
18835
|
const now = new Date;
|
|
@@ -19064,6 +18958,112 @@ var init_logger = __esm(() => {
|
|
|
19064
18958
|
};
|
|
19065
18959
|
});
|
|
19066
18960
|
|
|
18961
|
+
// src/core/devRouteRegistrationCallsite.ts
|
|
18962
|
+
var exports_devRouteRegistrationCallsite = {};
|
|
18963
|
+
__export(exports_devRouteRegistrationCallsite, {
|
|
18964
|
+
patchElysiaRouteRegistrationCallsites: () => patchElysiaRouteRegistrationCallsites,
|
|
18965
|
+
isPageHandler: () => isPageHandler,
|
|
18966
|
+
getOriginalPageHandlerSource: () => getOriginalPageHandlerSource,
|
|
18967
|
+
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite
|
|
18968
|
+
});
|
|
18969
|
+
import { AsyncLocalStorage } from "async_hooks";
|
|
18970
|
+
import { Elysia as Elysia2 } from "elysia";
|
|
18971
|
+
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, handlerSourceMentionsPageHelper = (handler) => {
|
|
18972
|
+
const source = handler.toString();
|
|
18973
|
+
return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
|
|
18974
|
+
}, getOriginalPageHandlerSource = (handler) => {
|
|
18975
|
+
if (typeof handler !== "function")
|
|
18976
|
+
return;
|
|
18977
|
+
const fn2 = handler;
|
|
18978
|
+
const info = pageHandlerWrappers.get(fn2);
|
|
18979
|
+
return (info?.originalHandler ?? fn2).toString();
|
|
18980
|
+
}, isPageHandler = (handler) => {
|
|
18981
|
+
if (typeof handler !== "function")
|
|
18982
|
+
return false;
|
|
18983
|
+
const fn2 = handler;
|
|
18984
|
+
if (pageHandlerWrappers.has(fn2))
|
|
18985
|
+
return true;
|
|
18986
|
+
return handlerSourceMentionsPageHelper(fn2);
|
|
18987
|
+
}, isObjectRecord3 = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", isRouteMethod = (value) => typeof value === "function", getRouteCallsiteStorage = () => {
|
|
18988
|
+
const value = Reflect.get(globalThis, ROUTE_CALLSITE_STORAGE_KEY);
|
|
18989
|
+
if (value === null || typeof value === "undefined") {
|
|
18990
|
+
return;
|
|
18991
|
+
}
|
|
18992
|
+
return isAsyncLocalStorage2(value) ? value : undefined;
|
|
18993
|
+
}, ensureRouteCallsiteStorage = () => {
|
|
18994
|
+
const existing = getRouteCallsiteStorage();
|
|
18995
|
+
if (existing) {
|
|
18996
|
+
return existing;
|
|
18997
|
+
}
|
|
18998
|
+
const storage = new AsyncLocalStorage;
|
|
18999
|
+
Reflect.set(globalThis, ROUTE_CALLSITE_STORAGE_KEY, storage);
|
|
19000
|
+
return storage;
|
|
19001
|
+
}, normalizeCallsitePath = (value) => value.replace(`${process.cwd()}/`, "").replace(process.cwd(), "").replace(/^\.\/+/, ""), shouldIgnoreRouteCallsiteFrame = (frame) => frame.includes("/node_modules/") || frame.includes("/dist/") || frame.includes("/src/core/devRouteRegistrationCallsite."), getRouteCallsiteLocation = (frame) => frame.match(/\((\/[^)]+:\d+:\d+)\)$/)?.[1] ?? frame.match(/at (\/[^ ]+:\d+:\d+)$/)?.[1], extractRouteRegistrationCallsite = (stack) => {
|
|
19002
|
+
const location = stack.split(`
|
|
19003
|
+
`).slice(1).map((line) => line.trim()).filter((frame) => !shouldIgnoreRouteCallsiteFrame(frame)).map((frame) => getRouteCallsiteLocation(frame)).find((frameLocation) => frameLocation !== undefined);
|
|
19004
|
+
return location ? normalizeCallsitePath(location) : undefined;
|
|
19005
|
+
}, captureRouteRegistrationCallsite = () => {
|
|
19006
|
+
const { stack } = new Error;
|
|
19007
|
+
if (!stack) {
|
|
19008
|
+
return;
|
|
19009
|
+
}
|
|
19010
|
+
return extractRouteRegistrationCallsite(stack);
|
|
19011
|
+
}, wrapRouteHandlerWithCallsite = (handler, callsite) => {
|
|
19012
|
+
if (typeof handler !== "function" || !callsite) {
|
|
19013
|
+
return handler;
|
|
19014
|
+
}
|
|
19015
|
+
const storage = ensureRouteCallsiteStorage();
|
|
19016
|
+
const routeHandler = handler;
|
|
19017
|
+
return function wrappedRouteHandler(...args) {
|
|
19018
|
+
return storage.run({ callsite }, () => Reflect.apply(routeHandler, this, args));
|
|
19019
|
+
};
|
|
19020
|
+
}, createPatchedRouteMethod = (originalMethod, methodName) => function patchedRouteMethod(path, handler, ...rest) {
|
|
19021
|
+
const callsite = captureRouteRegistrationCallsite();
|
|
19022
|
+
const wrapped = wrapRouteHandlerWithCallsite(handler, callsite);
|
|
19023
|
+
if (methodName === "get" && typeof handler === "function" && typeof wrapped === "function" && handlerSourceMentionsPageHelper(handler)) {
|
|
19024
|
+
pageHandlerWrappers.set(wrapped, {
|
|
19025
|
+
originalHandler: handler
|
|
19026
|
+
});
|
|
19027
|
+
}
|
|
19028
|
+
return Reflect.apply(originalMethod, this, [path, wrapped, ...rest]);
|
|
19029
|
+
}, getCurrentRouteRegistrationCallsite = () => getRouteCallsiteStorage()?.getStore()?.callsite, patchElysiaRouteRegistrationCallsites = () => {
|
|
19030
|
+
if (false) {}
|
|
19031
|
+
if (Reflect.get(globalThis, ROUTE_CALLSITE_PATCHED_KEY) === true) {
|
|
19032
|
+
return;
|
|
19033
|
+
}
|
|
19034
|
+
const { prototype } = Elysia2;
|
|
19035
|
+
ROUTE_METHOD_NAMES.forEach((methodName) => {
|
|
19036
|
+
const originalMethod = Reflect.get(prototype, methodName);
|
|
19037
|
+
if (!isRouteMethod(originalMethod))
|
|
19038
|
+
return;
|
|
19039
|
+
Reflect.set(prototype, methodName, createPatchedRouteMethod(originalMethod, methodName));
|
|
19040
|
+
});
|
|
19041
|
+
Reflect.set(globalThis, ROUTE_CALLSITE_PATCHED_KEY, true);
|
|
19042
|
+
};
|
|
19043
|
+
var init_devRouteRegistrationCallsite = __esm(() => {
|
|
19044
|
+
ROUTE_CALLSITE_STORAGE_KEY = Symbol.for("absolutejs.devRouteRegistrationCallsiteStorage");
|
|
19045
|
+
ROUTE_CALLSITE_PATCHED_KEY = Symbol.for("absolutejs.devRouteRegistrationCallsitePatched");
|
|
19046
|
+
ROUTE_METHOD_NAMES = [
|
|
19047
|
+
"all",
|
|
19048
|
+
"delete",
|
|
19049
|
+
"get",
|
|
19050
|
+
"head",
|
|
19051
|
+
"options",
|
|
19052
|
+
"patch",
|
|
19053
|
+
"post",
|
|
19054
|
+
"put"
|
|
19055
|
+
];
|
|
19056
|
+
PAGE_HANDLER_NAMES = [
|
|
19057
|
+
"handleReactPageRequest",
|
|
19058
|
+
"handleSveltePageRequest",
|
|
19059
|
+
"handleVuePageRequest",
|
|
19060
|
+
"handleAngularPageRequest",
|
|
19061
|
+
"handleHTMLPageRequest",
|
|
19062
|
+
"handleHTMXPageRequest"
|
|
19063
|
+
];
|
|
19064
|
+
pageHandlerWrappers = new WeakMap;
|
|
19065
|
+
});
|
|
19066
|
+
|
|
19067
19067
|
// src/utils/normalizePath.ts
|
|
19068
19068
|
var normalizePath = (path) => path.replace(/\\/g, "/");
|
|
19069
19069
|
|
|
@@ -39414,9 +39414,26 @@ var renderFirstNotFound = async () => {
|
|
|
39414
39414
|
|
|
39415
39415
|
// src/core/prepare.ts
|
|
39416
39416
|
init_startupTimings();
|
|
39417
|
+
init_logger();
|
|
39417
39418
|
var MS_PER_SECOND2 = 1000;
|
|
39418
39419
|
var DEFAULT_PORT2 = 3000;
|
|
39419
39420
|
var MAX_STATIC_ROUTE_COUNT = Number.MAX_SAFE_INTEGER;
|
|
39421
|
+
var STATIC_PLUGIN_RETRY_DELAY_MS = 50;
|
|
39422
|
+
var mountStaticPlugin = async (createStaticPlugin, options) => {
|
|
39423
|
+
try {
|
|
39424
|
+
return await createStaticPlugin(options);
|
|
39425
|
+
} catch {
|
|
39426
|
+
await new Promise((resolveDelay) => {
|
|
39427
|
+
setTimeout(resolveDelay, STATIC_PLUGIN_RETRY_DELAY_MS);
|
|
39428
|
+
});
|
|
39429
|
+
try {
|
|
39430
|
+
return await createStaticPlugin(options);
|
|
39431
|
+
} catch (error) {
|
|
39432
|
+
logWarn(`Static asset routes were skipped this cycle \u2014 a build file was unavailable mid-rebuild: ${error instanceof Error ? error.message : String(error)}`);
|
|
39433
|
+
return new Elysia8({ name: "absolutejs-static-fallback" });
|
|
39434
|
+
}
|
|
39435
|
+
}
|
|
39436
|
+
};
|
|
39420
39437
|
var buildPrewarmDirs = (config2) => {
|
|
39421
39438
|
const dirs = [];
|
|
39422
39439
|
if (config2.svelteDirectory) {
|
|
@@ -39504,7 +39521,7 @@ var prepareDev = async (config2, buildDir) => {
|
|
|
39504
39521
|
recordStep("devBuild", stepStartedAt);
|
|
39505
39522
|
stepStartedAt = performance.now();
|
|
39506
39523
|
const { hmr: hmr2 } = await Promise.resolve().then(() => (init_hmr(), exports_hmr));
|
|
39507
|
-
const { staticPlugin } = await import("@
|
|
39524
|
+
const { staticPlugin } = await import("@elysia/static");
|
|
39508
39525
|
const { createModuleServer: createModuleServer2 } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
39509
39526
|
const {
|
|
39510
39527
|
getDevVendorPaths: getDevVendorPaths2,
|
|
@@ -39572,7 +39589,7 @@ var prepareDev = async (config2, buildDir) => {
|
|
|
39572
39589
|
projectRoot: config2.dev?.devtools?.projectRoot,
|
|
39573
39590
|
uuid: config2.dev?.devtools?.uuid,
|
|
39574
39591
|
uuidCachePath: config2.dev?.devtools?.uuidCachePath
|
|
39575
|
-
})).use(imageOptimizer2(config2.images, buildDir)).use(await staticPlugin
|
|
39592
|
+
})).use(imageOptimizer2(config2.images, buildDir)).use(await mountStaticPlugin(staticPlugin, {
|
|
39576
39593
|
alwaysStatic: true,
|
|
39577
39594
|
assets: buildDir,
|
|
39578
39595
|
directive: "no-cache",
|
|
@@ -39671,8 +39688,8 @@ var prepare = async (configOrPath) => {
|
|
|
39671
39688
|
}
|
|
39672
39689
|
recordStep("load production conventions", stepStartedAt);
|
|
39673
39690
|
stepStartedAt = performance.now();
|
|
39674
|
-
const { staticPlugin } = await import("@
|
|
39675
|
-
const staticFiles = await staticPlugin
|
|
39691
|
+
const { staticPlugin } = await import("@elysia/static");
|
|
39692
|
+
const staticFiles = await mountStaticPlugin(staticPlugin, {
|
|
39676
39693
|
alwaysStatic: true,
|
|
39677
39694
|
assets: buildDir,
|
|
39678
39695
|
prefix: "",
|
|
@@ -46569,5 +46586,5 @@ export {
|
|
|
46569
46586
|
ANGULAR_INIT_TIMEOUT_MS
|
|
46570
46587
|
};
|
|
46571
46588
|
|
|
46572
|
-
//# debugId=
|
|
46589
|
+
//# debugId=25821650BFD4E73364756E2164756E21
|
|
46573
46590
|
//# sourceMappingURL=index.js.map
|