@absolutejs/absolute 0.19.0-beta.1081 → 0.19.0-beta.1083
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/.absolutejs/generated/angular/indexes/angular-example.1g23yr9r.js +167 -0
- package/dist/.absolutejs/generated/react/indexes/ReactExample.e6kzvjqy.js +3 -0
- package/dist/.absolutejs/generated/svelte/client/pages/SvelteExample.5pq2wmw6.js +1 -0
- package/dist/.absolutejs/generated/svelte/indexes/pages/SvelteExample.9zcw5vtg.js +1 -0
- package/dist/.absolutejs/generated/vue/client/pages/VueExample.q47m56s4.js +1 -0
- package/dist/.absolutejs/generated/vue/indexes/VueExample.6bqszcxv.js +1 -0
- package/dist/_prerendered/angular.html +45 -0
- package/dist/_prerendered/angular.meta +1 -0
- package/dist/_prerendered/html.html +70 -0
- package/dist/_prerendered/html.meta +1 -0
- package/dist/_prerendered/htmx.html +239 -0
- package/dist/_prerendered/htmx.meta +1 -0
- package/dist/_prerendered/index.html +70 -0
- package/dist/_prerendered/index.meta +1 -0
- package/dist/_prerendered/react.html +1 -0
- package/dist/_prerendered/react.meta +1 -0
- package/dist/_prerendered/vue.html +41 -0
- package/dist/_prerendered/vue.meta +1 -0
- package/dist/angular/browser.js +18 -18
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/components/defer-slot-templates.directive.js +2 -2
- package/dist/angular/components/defer-slot.component.js +3 -3
- package/dist/angular/components/image.component.js +3 -3
- package/dist/angular/components/stream-slot.component.js +3 -3
- package/dist/angular/example/angular/pages/angular-example.djr1v9hj.js +373 -0
- package/dist/angular/index.js +43 -43
- package/dist/angular/server.js +31 -31
- package/dist/angular/vendor/angular_common.js +310 -0
- package/dist/angular/vendor/angular_common_http.js +129 -0
- package/dist/angular/vendor/angular_core.js +1177 -0
- package/dist/angular/vendor/angular_core_primitives_di.js +36 -0
- package/dist/angular/vendor/angular_core_primitives_signals.js +132 -0
- package/dist/angular/vendor/angular_platform-browser.js +117 -0
- package/dist/angular/vendor/angular_router.js +6410 -0
- package/dist/angular/vendor/chunk-2c9evnn0.js +4764 -0
- package/dist/angular/vendor/chunk-3evcs0sk.js +2567 -0
- package/dist/angular/vendor/chunk-5h3qyvpj.js +729 -0
- package/dist/angular/vendor/chunk-hgg0w52m.js +62 -0
- package/dist/angular/vendor/chunk-n6rt7w2y.js +23 -0
- package/dist/angular/vendor/chunk-t4tc7c8b.js +28013 -0
- package/dist/angular/vendor/chunk-vqd7j0kb.js +1786 -0
- package/dist/angular/vendor/chunk-yqjkhk8j.js +145 -0
- package/dist/angular/vendor/server/angular_common.js +311 -0
- package/dist/angular/vendor/server/angular_common_http.js +130 -0
- package/dist/angular/vendor/server/angular_core.js +1178 -0
- package/dist/angular/vendor/server/angular_core_primitives_di.js +37 -0
- package/dist/angular/vendor/server/angular_core_primitives_signals.js +133 -0
- package/dist/angular/vendor/server/angular_platform-browser.js +118 -0
- package/dist/angular/vendor/server/angular_platform-server.js +59 -0
- package/dist/angular/vendor/server/angular_router.js +261 -0
- package/dist/angular/vendor/server/angular_ssr.js +11669 -0
- package/dist/angular/vendor/server/chunk-2akxms5e.js +2566 -0
- package/dist/angular/vendor/server/chunk-659a9c3p.js +6218 -0
- package/dist/angular/vendor/server/chunk-8eecnjd1.js +16686 -0
- package/dist/angular/vendor/server/chunk-9jz2apvp.js +743 -0
- package/dist/angular/vendor/server/chunk-dhs2bg35.js +48 -0
- package/dist/angular/vendor/server/chunk-hs2gc8sr.js +1787 -0
- package/dist/angular/vendor/server/chunk-k46n34mb.js +63 -0
- package/dist/angular/vendor/server/chunk-p2fdvyh1.js +4767 -0
- package/dist/angular/vendor/server/chunk-r0w9r4bg.js +730 -0
- package/dist/angular/vendor/server/chunk-vthxj7kd.js +146 -0
- package/dist/angular/vendor/server/chunk-xahr7f2f.js +35534 -0
- package/dist/assets/css/tailwind.generated.css +218 -0
- package/dist/assets/css/vue-example-compiled.abzaxheq.css +32 -0
- package/dist/assets/ico/favicon.ico +0 -0
- package/dist/assets/png/absolutejs-temp.png +0 -0
- package/dist/assets/svg/HTML5_Badge.svg +7 -0
- package/dist/assets/svg/angular.svg +18 -0
- package/dist/assets/svg/htmx-logo-black.svg +9 -0
- package/dist/assets/svg/htmx-logo-white.svg +9 -0
- package/dist/assets/svg/react.svg +1 -0
- package/dist/assets/svg/svelte-logo.svg +1 -0
- package/dist/assets/svg/vue-logo.svg +4 -0
- package/dist/build.js +42 -42
- package/dist/chunk-7pp6gkg8.js +2 -0
- package/dist/chunk-ek2qyx2c.js +11 -0
- package/dist/chunk-ysr5ycdt.js +2 -0
- package/dist/cli/config/server.js +11 -11
- package/dist/cli/index.js +12 -1
- package/dist/client/index.js +13 -13
- package/dist/client.tsx +15 -0
- package/dist/example/html/scripts/typescript-example.fqn9zkdh.js +1 -0
- package/dist/html/pages/HTMLExample.html +70 -0
- package/dist/htmx/htmx.min.js +1 -0
- package/dist/htmx/pages/HTMXExample.html +239 -0
- package/dist/htmx.min.js +1 -0
- package/dist/index.js +84 -65
- package/dist/index.js.map +3 -3
- package/dist/indexes/angular-example.xsx88ph0.css +227 -0
- package/dist/indexes/html-example.s3banzdc.css +221 -0
- package/dist/indexes/htmx-example.5vgssc3f.css +221 -0
- package/dist/indexes/react-example.bz1k8xa2.css +245 -0
- package/dist/indexes/svelte-example.vy3015es.css +221 -0
- package/dist/indexes/vue-example.q4vf2wtq.css +228 -0
- package/dist/islands/index.js +14 -14
- package/dist/manifest.json +26 -0
- package/dist/nested/dynamic-module.txt +1 -0
- package/dist/package-asset.txt +1 -0
- package/dist/react/browser.js +3 -3
- package/dist/react/components/browser/index.js +5 -5
- package/dist/react/components/index.js +7 -7
- package/dist/react/hooks/index.js +2 -2
- package/dist/react/index.js +30 -30
- package/dist/react/jsxDevRuntimeCompat.js +1 -1
- package/dist/react/router/browser.js +2 -2
- package/dist/react/router/index.js +2 -2
- package/dist/react/server.js +13 -13
- package/dist/react/vendor/chunk-2kh60w9b.js +33 -0
- package/dist/react/vendor/chunk-9g12fvrw.js +236 -0
- package/dist/react/vendor/chunk-rejbymp5.js +837 -0
- package/dist/react/vendor/chunk-wwy122hz.js +200 -0
- package/dist/react/vendor/react-dom.js +44 -0
- package/dist/react/vendor/react-dom_client.js +15864 -0
- package/dist/react/vendor/react-refresh_runtime.js +304 -0
- package/dist/react/vendor/react.js +103 -0
- package/dist/react/vendor/react_jsx-dev-runtime.js +17 -0
- package/dist/react/vendor/react_jsx-runtime.js +22 -0
- package/dist/robots.txt +2 -0
- package/dist/runtime/blob.txt +1 -0
- package/dist/runtime/dir-join.txt +1 -0
- package/dist/runtime/nested/binary.bin +1 -0
- package/dist/runtime/nested/readfile.txt +1 -0
- package/dist/runtime/template.html +1 -0
- package/dist/server.js +92156 -0
- package/dist/sitemap.xml +48 -0
- package/dist/src/core/prepare.d.ts +7 -0
- package/dist/svelte/index.js +26 -26
- package/dist/svelte/router/page.js +1 -1
- package/dist/svelte/server/pages/SvelteExample.fxs20w1b.js +290 -0
- package/dist/svelte/server.js +13 -13
- package/dist/svelte/vendor/chunk-5qdxn1p3.js +4586 -0
- package/dist/svelte/vendor/chunk-8qdfbbez.js +12 -0
- package/dist/svelte/vendor/chunk-r2jyyfjt.js +4495 -0
- package/dist/svelte/vendor/svelte.js +49 -0
- package/dist/svelte/vendor/svelte_internal.js +2 -0
- package/dist/svelte/vendor/svelte_internal_client.js +395 -0
- package/dist/svelte/vendor/svelte_internal_disclose-version.js +7 -0
- package/dist/svelte/vendor/svelte_internal_flags_async.js +6 -0
- package/dist/svelte/vendor/svelte_internal_flags_legacy.js +6 -0
- package/dist/svelte/vendor/svelte_store.js +99 -0
- package/dist/vue/browser.js +3 -3
- package/dist/vue/components/Image.js +1 -1
- package/dist/vue/components/index.js +5 -5
- package/dist/vue/index.js +36 -36
- package/dist/vue/server/pages/VueExample.fyhmna2p.css +32 -0
- package/dist/vue/server/pages/VueExample.fyhmna2p.js +75 -0
- package/dist/vue/server.js +13 -13
- package/dist/vue/vendor/vue.js +11011 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6829,16 +6829,16 @@ var initDominoAdapter = (platformServer) => {
|
|
|
6829
6829
|
}
|
|
6830
6830
|
}, loadAngularDeps = async () => {
|
|
6831
6831
|
if (!isProductionRuntime()) {
|
|
6832
|
-
await import("
|
|
6832
|
+
await import("./node_modules/@angular/compiler/fesm2022/compiler.mjs");
|
|
6833
6833
|
}
|
|
6834
6834
|
const { applyPatches: applyPatches2 } = await Promise.resolve().then(() => (init_angularPatch(), exports_angularPatch));
|
|
6835
6835
|
await applyPatches2();
|
|
6836
6836
|
const useBareSpecifiers = !isProductionRuntime();
|
|
6837
6837
|
const [platformBrowser, platformServer, common, core] = await Promise.all([
|
|
6838
|
-
useBareSpecifiers ? import("
|
|
6839
|
-
useBareSpecifiers ? import("
|
|
6840
|
-
useBareSpecifiers ? import("
|
|
6841
|
-
useBareSpecifiers ? import("
|
|
6838
|
+
useBareSpecifiers ? import("./node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs") : import(resolveAngularRuntimePath("@angular/platform-browser")),
|
|
6839
|
+
useBareSpecifiers ? import("./node_modules/@angular/platform-server/fesm2022/platform-server.mjs") : import(resolveAngularRuntimePath("@angular/platform-server")),
|
|
6840
|
+
useBareSpecifiers ? import("./node_modules/@angular/common/fesm2022/common.mjs") : import(resolveAngularRuntimePath("@angular/common")),
|
|
6841
|
+
useBareSpecifiers ? import("./node_modules/@angular/core/fesm2022/core.mjs") : import(resolveAngularRuntimePath("@angular/core"))
|
|
6842
6842
|
]);
|
|
6843
6843
|
if (!isDevelopmentRuntime()) {
|
|
6844
6844
|
core.enableProdMode();
|
|
@@ -7077,8 +7077,8 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
7077
7077
|
const [selector] = firstSelectorGroup;
|
|
7078
7078
|
return typeof selector === "string" && selector.length > 0 ? selector : null;
|
|
7079
7079
|
}, createAngularIslandApp = async () => {
|
|
7080
|
-
const { EnvironmentInjector, provideZonelessChangeDetection } = await import("
|
|
7081
|
-
const { createApplication } = await import("
|
|
7080
|
+
const { EnvironmentInjector, provideZonelessChangeDetection } = await import("./node_modules/@angular/core/fesm2022/core.mjs");
|
|
7081
|
+
const { createApplication } = await import("./node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs");
|
|
7082
7082
|
const app = await createApplication({
|
|
7083
7083
|
providers: [provideZonelessChangeDetection()]
|
|
7084
7084
|
});
|
|
@@ -7150,8 +7150,8 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
7150
7150
|
}
|
|
7151
7151
|
return html.slice(start, end + endTag.length);
|
|
7152
7152
|
}, mountAngularIsland = async (component, element, props, islandId) => {
|
|
7153
|
-
await import("
|
|
7154
|
-
const { createComponent, inputBinding } = await import("
|
|
7153
|
+
await import("./node_modules/@angular/compiler/fesm2022/compiler.mjs");
|
|
7154
|
+
const { createComponent, inputBinding } = await import("./node_modules/@angular/core/fesm2022/core.mjs");
|
|
7155
7155
|
const selector = getAngularIslandSelector(islandId);
|
|
7156
7156
|
const { app, environmentInjector } = await getAngularIslandApp();
|
|
7157
7157
|
let rootElement = element.querySelector(selector);
|
|
@@ -7223,14 +7223,14 @@ var renderAngularIslandToHtmlInternal = async (component, props, islandId) => {
|
|
|
7223
7223
|
match = LEADING_HOISTED_RESOURCE_RE.exec(result);
|
|
7224
7224
|
}
|
|
7225
7225
|
return result.trimStart();
|
|
7226
|
-
}, renderReactIslandToHtml = (component, props) => import("react").then(({ createElement }) => import("react-dom/server").then(({ renderToString }) => stripLeadingHoistedResources(renderToString(createElement(component, props))))), renderSvelteIslandToHtml = (component, props) => import("svelte/server").then(({ render }) => {
|
|
7226
|
+
}, renderReactIslandToHtml = (component, props) => import("./node_modules/react/index.js").then(({ createElement }) => import("./node_modules/react-dom/server.bun.js").then(({ renderToString }) => stripLeadingHoistedResources(renderToString(createElement(component, props))))), renderSvelteIslandToHtml = (component, props) => import("./node_modules/svelte/src/server/index.js").then(({ render }) => {
|
|
7227
7227
|
const { body } = render(component, { props });
|
|
7228
7228
|
return body;
|
|
7229
|
-
}), renderVueIslandToHtml = (component, props) => import("vue").then(({ createSSRApp, h: createVueVNode }) => {
|
|
7229
|
+
}), renderVueIslandToHtml = (component, props) => import("./node_modules/vue/index.mjs").then(({ createSSRApp, h: createVueVNode }) => {
|
|
7230
7230
|
const app = createSSRApp({
|
|
7231
7231
|
render: () => createVueVNode(component, props)
|
|
7232
7232
|
});
|
|
7233
|
-
return import("vue/server-renderer").then(({ renderToString }) => renderToString(app));
|
|
7233
|
+
return import("./node_modules/vue/server-renderer/index.mjs").then(({ renderToString }) => renderToString(app));
|
|
7234
7234
|
});
|
|
7235
7235
|
var init_islandSsr = __esm(() => {
|
|
7236
7236
|
renderAngularIslandToHtml2 = renderAngularIslandToHtmlInternal;
|
|
@@ -8060,7 +8060,7 @@ var serverCacheRoot2, compiledModuleCache2, originalSourcePathCache, transpiler,
|
|
|
8060
8060
|
}
|
|
8061
8061
|
const resolutionSourcePath = await resolveOriginalSourcePath(sourcePath);
|
|
8062
8062
|
const source = await Bun.file(sourcePath).text();
|
|
8063
|
-
const { compile, preprocess } = await import("svelte/compiler");
|
|
8063
|
+
const { compile, preprocess } = await import("./node_modules/svelte/compiler/index.js");
|
|
8064
8064
|
const loweredAwaitSource = lowerSvelteAwaitSlotSyntax(source);
|
|
8065
8065
|
const loweredSource = lowerSvelteIslandSyntax(loweredAwaitSource.code, "server");
|
|
8066
8066
|
const preprocessed = await preprocess(loweredSource.code, createSvelteStylePreprocessor());
|
|
@@ -8173,7 +8173,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
|
|
|
8173
8173
|
const cachedModulePath = compiledModuleCache3.get(sourcePath);
|
|
8174
8174
|
if (cachedModulePath)
|
|
8175
8175
|
return cachedModulePath;
|
|
8176
|
-
const compiler = await import("
|
|
8176
|
+
const compiler = await import("./node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js");
|
|
8177
8177
|
const source = await Bun.file(sourcePath).text();
|
|
8178
8178
|
const { descriptor } = compiler.parse(source, { filename: sourcePath });
|
|
8179
8179
|
const componentId = Bun.hash(sourcePath).toString(BASE_36_RADIX).slice(0, ISLAND_COMPONENT_ID_LENGTH);
|
|
@@ -8401,7 +8401,7 @@ var init_renderIslandMarkup = __esm(() => {
|
|
|
8401
8401
|
// src/build/islandEntries.ts
|
|
8402
8402
|
import { mkdirSync, rmSync, writeFileSync as writeFileSync2 } from "fs";
|
|
8403
8403
|
import { dirname as dirname8, extname as extname3, join as join10, relative as relative5, resolve as resolve9 } from "path";
|
|
8404
|
-
import ts from "typescript";
|
|
8404
|
+
import ts from "./node_modules/typescript/lib/typescript.js";
|
|
8405
8405
|
var frameworks, isRecord4 = (value) => typeof value === "object" && value !== null, resolveRegistryExport = (mod) => {
|
|
8406
8406
|
if (isRecord4(mod.islandRegistry))
|
|
8407
8407
|
return mod.islandRegistry;
|
|
@@ -8960,8 +8960,8 @@ __export(exports_dist, {
|
|
|
8960
8960
|
fromTypes: () => fromTypes,
|
|
8961
8961
|
default: () => index_default
|
|
8962
8962
|
});
|
|
8963
|
-
import { Elysia } from "elysia";
|
|
8964
|
-
import { t } from "elysia";
|
|
8963
|
+
import { Elysia } from "./node_modules/elysia/dist/bun/index.js";
|
|
8964
|
+
import { t } from "./node_modules/elysia/dist/bun/index.js";
|
|
8965
8965
|
function isSchemaObject(schema) {
|
|
8966
8966
|
return "type" in schema || "properties" in schema || "items" in schema;
|
|
8967
8967
|
}
|
|
@@ -19240,7 +19240,7 @@ __export(exports_devRouteRegistrationCallsite, {
|
|
|
19240
19240
|
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite
|
|
19241
19241
|
});
|
|
19242
19242
|
import { AsyncLocalStorage } from "async_hooks";
|
|
19243
|
-
import { Elysia as Elysia2 } from "elysia";
|
|
19243
|
+
import { Elysia as Elysia2 } from "./node_modules/elysia/dist/bun/index.js";
|
|
19244
19244
|
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, handlerSourceMentionsPageHelper = (handler) => {
|
|
19245
19245
|
const source = handler.toString();
|
|
19246
19246
|
return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
|
|
@@ -19967,7 +19967,7 @@ var init_scanConventions = __esm(() => {
|
|
|
19967
19967
|
// src/build/scanRouteRegistrations.ts
|
|
19968
19968
|
import { readdirSync, readFileSync as readFileSync11 } from "fs";
|
|
19969
19969
|
import { join as join15 } from "path";
|
|
19970
|
-
import ts2 from "typescript";
|
|
19970
|
+
import ts2 from "./node_modules/typescript/lib/typescript.js";
|
|
19971
19971
|
var ELYSIA_ROUTE_METHODS, SKIP_DIRS, SOURCE_EXTENSIONS, getScriptKind = (filePath) => {
|
|
19972
19972
|
if (filePath.endsWith(".tsx"))
|
|
19973
19973
|
return ts2.ScriptKind.TSX;
|
|
@@ -20090,7 +20090,7 @@ var init_scanRouteRegistrations = __esm(() => {
|
|
|
20090
20090
|
// src/angular/staticAnalyzeSpaRoutes.ts
|
|
20091
20091
|
import { existsSync as existsSync12, promises as fs } from "fs";
|
|
20092
20092
|
import { join as join16 } from "path";
|
|
20093
|
-
import ts3 from "typescript";
|
|
20093
|
+
import ts3 from "./node_modules/typescript/lib/typescript.js";
|
|
20094
20094
|
var DYNAMIC_SEGMENT_PATTERN, pathHasDynamic = (path) => path.split("/").some((seg) => DYNAMIC_SEGMENT_PATTERN.test(seg) || seg === "**"), importsSymbolFrom = (sf, localName, moduleSpecifier) => {
|
|
20095
20095
|
for (const statement of sf.statements) {
|
|
20096
20096
|
if (!ts3.isImportDeclaration(statement))
|
|
@@ -20318,7 +20318,7 @@ var init_staticAnalyzeSpaRoutes = __esm(() => {
|
|
|
20318
20318
|
// src/react/staticAnalyzeSpaRoutes.ts
|
|
20319
20319
|
import { existsSync as existsSync13, promises as fs2 } from "fs";
|
|
20320
20320
|
import { join as join17 } from "path";
|
|
20321
|
-
import ts4 from "typescript";
|
|
20321
|
+
import ts4 from "./node_modules/typescript/lib/typescript.js";
|
|
20322
20322
|
var DYNAMIC_SEGMENT_PATTERN2, pathHasDynamic2 = (path) => path.split("/").some((seg) => DYNAMIC_SEGMENT_PATTERN2.test(seg) || seg === "**"), readStringLiteral2 = (expression) => {
|
|
20323
20323
|
if (ts4.isStringLiteral(expression) || ts4.isNoSubstitutionTemplateLiteral(expression)) {
|
|
20324
20324
|
return expression.text;
|
|
@@ -20632,7 +20632,7 @@ var init_staticAnalyzeSpaRoutes3 = __esm(() => {
|
|
|
20632
20632
|
// src/vue/staticAnalyzeSpaRoutes.ts
|
|
20633
20633
|
import { existsSync as existsSync15, promises as fs4 } from "fs";
|
|
20634
20634
|
import { join as join19 } from "path";
|
|
20635
|
-
import ts5 from "typescript";
|
|
20635
|
+
import ts5 from "./node_modules/typescript/lib/typescript.js";
|
|
20636
20636
|
var DYNAMIC_SEGMENT_PATTERN4, pathHasDynamic4 = (path) => path.split("/").some((seg) => DYNAMIC_SEGMENT_PATTERN4.test(seg) || seg === "**"), readStringLiteral3 = (expression) => {
|
|
20637
20637
|
if (ts5.isStringLiteral(expression) || ts5.isNoSubstitutionTemplateLiteral(expression)) {
|
|
20638
20638
|
return expression.text;
|
|
@@ -21772,7 +21772,7 @@ var init_externalAssetPlugin = () => {};
|
|
|
21772
21772
|
|
|
21773
21773
|
// src/build/islandRegistryTransform.ts
|
|
21774
21774
|
import { basename as basename6 } from "path";
|
|
21775
|
-
import ts6 from "typescript";
|
|
21775
|
+
import ts6 from "./node_modules/typescript/lib/typescript.js";
|
|
21776
21776
|
var VALID_FRAMEWORKS, getObjectPropertyName2 = (name) => ts6.isIdentifier(name) || ts6.isStringLiteral(name) ? name.text : null, isIslandRegistryHelperImport2 = (source) => source === "@absolutejs/absolute/islands" || source.endsWith("/islands") || source.endsWith("/core/islands"), collectRegistryFactory = (sourceFile) => {
|
|
21777
21777
|
const factoryNames = new Set;
|
|
21778
21778
|
const namespaceNames = new Set;
|
|
@@ -22445,7 +22445,7 @@ __export(exports_scanVueSsrOnlyPages, {
|
|
|
22445
22445
|
});
|
|
22446
22446
|
import { readdirSync as readdirSync2, readFileSync as readFileSync17 } from "fs";
|
|
22447
22447
|
import { join as join28 } from "path";
|
|
22448
|
-
import ts7 from "typescript";
|
|
22448
|
+
import ts7 from "./node_modules/typescript/lib/typescript.js";
|
|
22449
22449
|
var SKIP_DIRS2, SOURCE_EXTENSIONS2, getScriptKind2 = (filePath) => {
|
|
22450
22450
|
if (filePath.endsWith(".tsx"))
|
|
22451
22451
|
return ts7.ScriptKind.TSX;
|
|
@@ -22592,7 +22592,7 @@ var init_scanVueSsrOnlyPages = __esm(() => {
|
|
|
22592
22592
|
// src/build/scanAngularHandlerCalls.ts
|
|
22593
22593
|
import { readdirSync as readdirSync3, readFileSync as readFileSync18 } from "fs";
|
|
22594
22594
|
import { join as join29 } from "path";
|
|
22595
|
-
import ts8 from "typescript";
|
|
22595
|
+
import ts8 from "./node_modules/typescript/lib/typescript.js";
|
|
22596
22596
|
var ELYSIA_ROUTE_METHODS2, SKIP_DIRS3, SOURCE_EXTENSIONS3, getScriptKind3 = (filePath) => {
|
|
22597
22597
|
if (filePath.endsWith(".tsx"))
|
|
22598
22598
|
return ts8.ScriptKind.TSX;
|
|
@@ -22742,7 +22742,7 @@ var init_scanAngularHandlerCalls = __esm(() => {
|
|
|
22742
22742
|
// src/build/scanAngularPageRoutes.ts
|
|
22743
22743
|
import { readdirSync as readdirSync4, readFileSync as readFileSync19 } from "fs";
|
|
22744
22744
|
import { basename as basename7, join as join30 } from "path";
|
|
22745
|
-
import ts9 from "typescript";
|
|
22745
|
+
import ts9 from "./node_modules/typescript/lib/typescript.js";
|
|
22746
22746
|
var SOURCE_EXTENSIONS4, SKIP_DIRS4, hasSourceExtension4 = (filePath) => {
|
|
22747
22747
|
const idx = filePath.lastIndexOf(".");
|
|
22748
22748
|
if (idx === -1)
|
|
@@ -22861,7 +22861,7 @@ __export(exports_parseAngularConfigImports, {
|
|
|
22861
22861
|
});
|
|
22862
22862
|
import { existsSync as existsSync23, readFileSync as readFileSync20 } from "fs";
|
|
22863
22863
|
import { dirname as dirname14, isAbsolute as isAbsolute3, join as join31 } from "path";
|
|
22864
|
-
import ts10 from "typescript";
|
|
22864
|
+
import ts10 from "./node_modules/typescript/lib/typescript.js";
|
|
22865
22865
|
var findDefineConfigCall = (sf) => {
|
|
22866
22866
|
let result = null;
|
|
22867
22867
|
const visit = (node) => {
|
|
@@ -22983,7 +22983,7 @@ var SVELTE_PAGE_ROOT_ID = "__absolute_svelte_root__", renderToReadableStream = a
|
|
|
22983
22983
|
bodyContent
|
|
22984
22984
|
} = {}) => {
|
|
22985
22985
|
try {
|
|
22986
|
-
const { render } = await import("svelte/server");
|
|
22986
|
+
const { render } = await import("./node_modules/svelte/src/server/index.js");
|
|
22987
22987
|
const renderComponent = render;
|
|
22988
22988
|
const rendered = typeof props === "undefined" ? await renderComponent(component) : await renderComponent(component, { props });
|
|
22989
22989
|
const { head, body } = rendered;
|
|
@@ -23134,7 +23134,7 @@ var resolveDevClientDir2 = () => {
|
|
|
23134
23134
|
server: toServer.startsWith(".") ? toServer : `./${toServer}`
|
|
23135
23135
|
});
|
|
23136
23136
|
}, compileSvelte = async (entryPoints, svelteRoot, cache = new Map, isDev2 = false, stylePreprocessors) => {
|
|
23137
|
-
const { compile, compileModule, preprocess } = await import("svelte/compiler");
|
|
23137
|
+
const { compile, compileModule, preprocess } = await import("./node_modules/svelte/compiler/index.js");
|
|
23138
23138
|
const generatedDir = getFrameworkGeneratedDir("svelte");
|
|
23139
23139
|
const clientDir = join32(generatedDir, "client");
|
|
23140
23140
|
const indexDir = join32(generatedDir, "indexes");
|
|
@@ -24097,7 +24097,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
24097
24097
|
persistentBuildCache.set(sourceFilePath, result);
|
|
24098
24098
|
return result;
|
|
24099
24099
|
}, compileVue = async (entryPoints, vueRootDir, isDev2 = false, stylePreprocessors, ssrOnlyEntries) => {
|
|
24100
|
-
const compiler = await import("
|
|
24100
|
+
const compiler = await import("./node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js");
|
|
24101
24101
|
const generatedDir = getFrameworkGeneratedDir("vue");
|
|
24102
24102
|
const clientOutputDir = join33(generatedDir, "client");
|
|
24103
24103
|
const indexOutputDir = join33(generatedDir, "indexes");
|
|
@@ -24828,7 +24828,7 @@ __export(exports_compileAngular, {
|
|
|
24828
24828
|
import { existsSync as existsSync26, readFileSync as readFileSync23, promises as fs5 } from "fs";
|
|
24829
24829
|
import { join as join34, basename as basename10, sep as sep3, dirname as dirname17, resolve as resolve24, relative as relative12 } from "path";
|
|
24830
24830
|
var {Glob: Glob6 } = globalThis.Bun;
|
|
24831
|
-
import ts11 from "typescript";
|
|
24831
|
+
import ts11 from "./node_modules/typescript/lib/typescript.js";
|
|
24832
24832
|
var traceAngularPhase = async (name, fn2, metadata2) => {
|
|
24833
24833
|
const tracePhase = globalThis.__absoluteBuildTracePhase;
|
|
24834
24834
|
return tracePhase ? tracePhase(`compile/angular/${name}`, fn2, metadata2) : await fn2();
|
|
@@ -25165,8 +25165,8 @@ var traceAngularPhase = async (name, fn2, metadata2) => {
|
|
|
25165
25165
|
buildIslandMetadataExports(readFileSync23(inputPath, "utf-8"))
|
|
25166
25166
|
];
|
|
25167
25167
|
})), { entries: inputPaths.length });
|
|
25168
|
-
await traceAngularPhase("aot/preload-compiler", () => import("
|
|
25169
|
-
const { readConfiguration, performCompilation, EmitFlags } = await traceAngularPhase("aot/import-compiler-cli", () => import("
|
|
25168
|
+
await traceAngularPhase("aot/preload-compiler", () => import("./node_modules/@angular/compiler/fesm2022/compiler.mjs"));
|
|
25169
|
+
const { readConfiguration, performCompilation, EmitFlags } = await traceAngularPhase("aot/import-compiler-cli", () => import("./node_modules/@angular/compiler-cli/bundles/index.js"));
|
|
25170
25170
|
const tsLibDir = await traceAngularPhase("aot/resolve-typescript-lib", () => {
|
|
25171
25171
|
const tsPath = __require.resolve("typescript");
|
|
25172
25172
|
const tsRootDir = dirname17(tsPath);
|
|
@@ -26130,7 +26130,7 @@ var init_compileAngular = __esm(() => {
|
|
|
26130
26130
|
});
|
|
26131
26131
|
|
|
26132
26132
|
// src/dev/angular/hmrImportGenerator.ts
|
|
26133
|
-
import ts12 from "typescript";
|
|
26133
|
+
import ts12 from "./node_modules/typescript/lib/typescript.js";
|
|
26134
26134
|
var createHmrImportGenerator = (namespaceMap) => ({
|
|
26135
26135
|
addImport(request) {
|
|
26136
26136
|
const ns = namespaceMap.get(request.exportModuleSpecifier);
|
|
@@ -26514,7 +26514,7 @@ var init_translator = __esm(() => {
|
|
|
26514
26514
|
});
|
|
26515
26515
|
|
|
26516
26516
|
// src/dev/angular/vendor/translator/ts_util.ts
|
|
26517
|
-
import ts13 from "typescript";
|
|
26517
|
+
import ts13 from "./node_modules/typescript/lib/typescript.js";
|
|
26518
26518
|
function tsNumericExpression(value) {
|
|
26519
26519
|
if (value < 0) {
|
|
26520
26520
|
const operand = ts13.factory.createNumericLiteral(Math.abs(value));
|
|
@@ -26533,7 +26533,7 @@ var init_ts_util = __esm(() => {
|
|
|
26533
26533
|
});
|
|
26534
26534
|
|
|
26535
26535
|
// src/dev/angular/vendor/translator/typescript_ast_factory.ts
|
|
26536
|
-
import ts14 from "typescript";
|
|
26536
|
+
import ts14 from "./node_modules/typescript/lib/typescript.js";
|
|
26537
26537
|
|
|
26538
26538
|
class TypeScriptAstFactory {
|
|
26539
26539
|
annotateForClosureCompiler;
|
|
@@ -26849,7 +26849,7 @@ __export(exports_fastHmrCompiler, {
|
|
|
26849
26849
|
});
|
|
26850
26850
|
import { existsSync as existsSync27, readFileSync as readFileSync24, statSync as statSync2 } from "fs";
|
|
26851
26851
|
import { dirname as dirname18, extname as extname6, relative as relative13, resolve as resolve25 } from "path";
|
|
26852
|
-
import ts15 from "typescript";
|
|
26852
|
+
import ts15 from "./node_modules/typescript/lib/typescript.js";
|
|
26853
26853
|
var fail = (reason, detail, location) => ({
|
|
26854
26854
|
ok: false,
|
|
26855
26855
|
reason,
|
|
@@ -28512,7 +28512,7 @@ ${block}
|
|
|
28512
28512
|
}
|
|
28513
28513
|
let compiler;
|
|
28514
28514
|
try {
|
|
28515
|
-
compiler = await import("
|
|
28515
|
+
compiler = await import("./node_modules/@angular/compiler/fesm2022/compiler.mjs");
|
|
28516
28516
|
} catch (err) {
|
|
28517
28517
|
return fail("unexpected-error", `import @angular/compiler: ${err}`);
|
|
28518
28518
|
}
|
|
@@ -33080,7 +33080,7 @@ __export(exports_resolveOwningComponents, {
|
|
|
33080
33080
|
});
|
|
33081
33081
|
import { readdirSync as readdirSync7, readFileSync as readFileSync29, statSync as statSync5 } from "fs";
|
|
33082
33082
|
import { dirname as dirname23, extname as extname9, join as join43, resolve as resolve36 } from "path";
|
|
33083
|
-
import ts16 from "typescript";
|
|
33083
|
+
import ts16 from "./node_modules/typescript/lib/typescript.js";
|
|
33084
33084
|
var ENTITY_DECORATORS, isAngularSourceFile = (file5) => file5.endsWith(".ts") || file5.endsWith(".tsx"), walkAngularSourceFiles = (root) => {
|
|
33085
33085
|
const out = [];
|
|
33086
33086
|
const visit = (dir) => {
|
|
@@ -33769,8 +33769,8 @@ ${code}`;
|
|
|
33769
33769
|
return vueCompiler;
|
|
33770
33770
|
}, warmCompilers = async (frameworks2) => {
|
|
33771
33771
|
const [svelteModule, vueModule] = await Promise.all([
|
|
33772
|
-
frameworks2.svelte ? import("svelte/compiler") : undefined,
|
|
33773
|
-
frameworks2.vue ? import("
|
|
33772
|
+
frameworks2.svelte ? import("./node_modules/svelte/compiler/index.js") : undefined,
|
|
33773
|
+
frameworks2.vue ? import("./node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js") : undefined
|
|
33774
33774
|
]);
|
|
33775
33775
|
if (svelteModule) {
|
|
33776
33776
|
svelteCompiler = svelteModule;
|
|
@@ -33829,7 +33829,7 @@ ${code}`;
|
|
|
33829
33829
|
}, transformSvelteFile = async (filePath, projectRoot, rewriter, stylePreprocessors) => {
|
|
33830
33830
|
const raw = readFileSync30(filePath, "utf-8");
|
|
33831
33831
|
if (!svelteCompiler) {
|
|
33832
|
-
svelteCompiler = await import("svelte/compiler");
|
|
33832
|
+
svelteCompiler = await import("./node_modules/svelte/compiler/index.js");
|
|
33833
33833
|
}
|
|
33834
33834
|
const isModule = filePath.endsWith(".svelte.ts") || filePath.endsWith(".svelte.js");
|
|
33835
33835
|
const loweredAwaitSource = isModule ? { code: raw, transformed: false } : lowerSvelteAwaitSlotSyntax(raw);
|
|
@@ -33896,7 +33896,7 @@ ${code}`;
|
|
|
33896
33896
|
const rawSource = readFileSync30(filePath, "utf-8");
|
|
33897
33897
|
const raw = addAutoRouterSetupApp(rawSource);
|
|
33898
33898
|
if (!vueCompiler) {
|
|
33899
|
-
vueCompiler = await import("
|
|
33899
|
+
vueCompiler = await import("./node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js");
|
|
33900
33900
|
}
|
|
33901
33901
|
const fileName = basename14(filePath, ".vue");
|
|
33902
33902
|
const componentId = toKebab(fileName);
|
|
@@ -37723,7 +37723,7 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config2) => {
|
|
|
37723
37723
|
loadVendorFiles(state.assetStore, depVendorDir, "vendor")
|
|
37724
37724
|
]);
|
|
37725
37725
|
if (config2.reactDirectory && !globalThis.__reactModuleRef) {
|
|
37726
|
-
globalThis.__reactModuleRef = await import("react");
|
|
37726
|
+
globalThis.__reactModuleRef = await import("./node_modules/react/index.js");
|
|
37727
37727
|
}
|
|
37728
37728
|
recordStep("load vendor files", stepStartedAt);
|
|
37729
37729
|
stepStartedAt = performance.now();
|
|
@@ -37830,7 +37830,7 @@ var INTERNALS_KEYS, isRecord7 = (val) => typeof val === "object" && val !== null
|
|
|
37830
37830
|
const pinnedRef = globalThis.__reactModuleRef;
|
|
37831
37831
|
if (!isRecord7(pinnedRef))
|
|
37832
37832
|
return;
|
|
37833
|
-
const react = await import("react");
|
|
37833
|
+
const react = await import("./node_modules/react/index.js");
|
|
37834
37834
|
if (pinnedRef === react)
|
|
37835
37835
|
return;
|
|
37836
37836
|
const pinnedInternals = findInternals(pinnedRef);
|
|
@@ -37862,7 +37862,7 @@ var exports_hmr = {};
|
|
|
37862
37862
|
__export(exports_hmr, {
|
|
37863
37863
|
hmr: () => hmr
|
|
37864
37864
|
});
|
|
37865
|
-
import Elysia3 from "elysia";
|
|
37865
|
+
import Elysia3 from "./node_modules/elysia/dist/bun/index.js";
|
|
37866
37866
|
var STORE_KEY = "__elysiaStore", getGlobalValue = (key) => Reflect.get(globalThis, key), restoreStore = (store) => {
|
|
37867
37867
|
const saved = getGlobalValue(STORE_KEY);
|
|
37868
37868
|
if (saved && typeof saved === "object") {
|
|
@@ -38020,7 +38020,7 @@ __export(exports_devtoolsJson, {
|
|
|
38020
38020
|
});
|
|
38021
38021
|
import { existsSync as existsSync37, mkdirSync as mkdirSync15, readFileSync as readFileSync31, writeFileSync as writeFileSync10 } from "fs";
|
|
38022
38022
|
import { dirname as dirname27, join as join47, resolve as resolve43 } from "path";
|
|
38023
|
-
import { Elysia as Elysia4 } from "elysia";
|
|
38023
|
+
import { Elysia as Elysia4 } from "./node_modules/elysia/dist/bun/index.js";
|
|
38024
38024
|
var ENDPOINT = "/.well-known/appspecific/com.chrome.devtools.json", UUID_CACHE_KEY = "__absoluteDevtoolsWorkspaceUuid", getGlobalUuid = () => Reflect.get(globalThis, UUID_CACHE_KEY), setGlobalUuid = (uuid3) => {
|
|
38025
38025
|
Reflect.set(globalThis, UUID_CACHE_KEY, uuid3);
|
|
38026
38026
|
return uuid3;
|
|
@@ -38080,7 +38080,7 @@ __export(exports_imageOptimizer, {
|
|
|
38080
38080
|
});
|
|
38081
38081
|
import { existsSync as existsSync38 } from "fs";
|
|
38082
38082
|
import { resolve as resolve44 } from "path";
|
|
38083
|
-
import { Elysia as Elysia5 } from "elysia";
|
|
38083
|
+
import { Elysia as Elysia5 } from "./node_modules/elysia/dist/bun/index.js";
|
|
38084
38084
|
var DEFAULT_CACHE_TTL_SECONDS = 60, MS_PER_SECOND = 1000, MAX_QUALITY = 100, avifInProgress, safeResolve = (path, baseDir) => {
|
|
38085
38085
|
try {
|
|
38086
38086
|
const resolved = validateSafePath(path, baseDir);
|
|
@@ -38293,7 +38293,7 @@ var exports_requestInspector = {};
|
|
|
38293
38293
|
__export(exports_requestInspector, {
|
|
38294
38294
|
requestInspector: () => requestInspector
|
|
38295
38295
|
});
|
|
38296
|
-
import { Elysia as Elysia6 } from "elysia";
|
|
38296
|
+
import { Elysia as Elysia6 } from "./node_modules/elysia/dist/bun/index.js";
|
|
38297
38297
|
var RING_MAX = 200, DEFAULT_STATUS = 200, ASSET_EXTENSION, requestLog = () => {
|
|
38298
38298
|
globalThis.__absoluteRequestLog ??= [];
|
|
38299
38299
|
return globalThis.__absoluteRequestLog;
|
|
@@ -38367,7 +38367,7 @@ __export(exports_dist2, {
|
|
|
38367
38367
|
});
|
|
38368
38368
|
import {
|
|
38369
38369
|
Elysia as Elysia7
|
|
38370
|
-
} from "elysia";
|
|
38370
|
+
} from "./node_modules/elysia/dist/bun/index.js";
|
|
38371
38371
|
var getLabel = (event, listener, write5) => {
|
|
38372
38372
|
listener(async ({ onStop, onEvent, total }) => {
|
|
38373
38373
|
let label = "";
|
|
@@ -39378,7 +39378,7 @@ var handleHTMXPageRequest = async (pagePath) => {
|
|
|
39378
39378
|
// src/core/prepare.ts
|
|
39379
39379
|
import { existsSync as existsSync39, readdirSync as readdirSync8, readFileSync as readFileSync33 } from "fs";
|
|
39380
39380
|
import { basename as basename16, join as join49, relative as relative18, resolve as resolve45 } from "path";
|
|
39381
|
-
import { Elysia as Elysia8 } from "elysia";
|
|
39381
|
+
import { Elysia as Elysia8 } from "./node_modules/elysia/dist/bun/index.js";
|
|
39382
39382
|
|
|
39383
39383
|
// src/plugins/openApiPlugin.ts
|
|
39384
39384
|
import { existsSync as existsSync7, readFileSync as readFileSync8 } from "fs";
|
|
@@ -39569,8 +39569,8 @@ var buildErrorProps = (error) => {
|
|
|
39569
39569
|
return { message: String(error), name: "Error" };
|
|
39570
39570
|
};
|
|
39571
39571
|
var renderReactError = async (conventionPath, errorProps) => {
|
|
39572
|
-
const { createElement } = await import("react");
|
|
39573
|
-
const { renderToReadableStream } = await import("react-dom/server");
|
|
39572
|
+
const { createElement } = await import("./node_modules/react/index.js");
|
|
39573
|
+
const { renderToReadableStream } = await import("./node_modules/react-dom/server.bun.js");
|
|
39574
39574
|
const mod = await import(conventionPath);
|
|
39575
39575
|
const ErrorComponent = mod.default;
|
|
39576
39576
|
if (typeof ErrorComponent !== "function")
|
|
@@ -39583,7 +39583,7 @@ var renderReactError = async (conventionPath, errorProps) => {
|
|
|
39583
39583
|
});
|
|
39584
39584
|
};
|
|
39585
39585
|
var renderSvelteError = async (conventionPath, errorProps) => {
|
|
39586
|
-
const { render } = await import("svelte/server");
|
|
39586
|
+
const { render } = await import("./node_modules/svelte/src/server/index.js");
|
|
39587
39587
|
const mod = await import(conventionPath);
|
|
39588
39588
|
const ErrorComponent = mod.default;
|
|
39589
39589
|
if (!ErrorComponent)
|
|
@@ -39606,8 +39606,8 @@ var unescapeVueStyles = (ssrBody) => {
|
|
|
39606
39606
|
return { body, styles };
|
|
39607
39607
|
};
|
|
39608
39608
|
var renderVueError = async (conventionPath, errorProps) => {
|
|
39609
|
-
const { createSSRApp, h: h2 } = await import("vue");
|
|
39610
|
-
const { renderToString } = await import("vue/server-renderer");
|
|
39609
|
+
const { createSSRApp, h: h2 } = await import("./node_modules/vue/index.mjs");
|
|
39610
|
+
const { renderToString } = await import("./node_modules/vue/server-renderer/index.mjs");
|
|
39611
39611
|
const mod = await import(conventionPath);
|
|
39612
39612
|
const ErrorComponent = mod.default;
|
|
39613
39613
|
if (!ErrorComponent)
|
|
@@ -39699,8 +39699,8 @@ var renderConventionError = async (framework, pageName, error) => {
|
|
|
39699
39699
|
return null;
|
|
39700
39700
|
};
|
|
39701
39701
|
var renderReactNotFound = async (conventionPath) => {
|
|
39702
|
-
const { createElement } = await import("react");
|
|
39703
|
-
const { renderToReadableStream } = await import("react-dom/server");
|
|
39702
|
+
const { createElement } = await import("./node_modules/react/index.js");
|
|
39703
|
+
const { renderToReadableStream } = await import("./node_modules/react-dom/server.bun.js");
|
|
39704
39704
|
const mod = await import(conventionPath);
|
|
39705
39705
|
const NotFoundComponent = mod.default;
|
|
39706
39706
|
if (typeof NotFoundComponent !== "function")
|
|
@@ -39713,7 +39713,7 @@ var renderReactNotFound = async (conventionPath) => {
|
|
|
39713
39713
|
});
|
|
39714
39714
|
};
|
|
39715
39715
|
var renderSvelteNotFound = async (conventionPath) => {
|
|
39716
|
-
const { render } = await import("svelte/server");
|
|
39716
|
+
const { render } = await import("./node_modules/svelte/src/server/index.js");
|
|
39717
39717
|
const mod = await import(conventionPath);
|
|
39718
39718
|
const NotFoundComponent = mod.default;
|
|
39719
39719
|
if (!NotFoundComponent)
|
|
@@ -39726,8 +39726,8 @@ var renderSvelteNotFound = async (conventionPath) => {
|
|
|
39726
39726
|
});
|
|
39727
39727
|
};
|
|
39728
39728
|
var renderVueNotFound = async (conventionPath) => {
|
|
39729
|
-
const { createSSRApp, h: h2 } = await import("vue");
|
|
39730
|
-
const { renderToString } = await import("vue/server-renderer");
|
|
39729
|
+
const { createSSRApp, h: h2 } = await import("./node_modules/vue/index.mjs");
|
|
39730
|
+
const { renderToString } = await import("./node_modules/vue/server-renderer/index.mjs");
|
|
39731
39731
|
const mod = await import(conventionPath);
|
|
39732
39732
|
const NotFoundComponent = mod.default;
|
|
39733
39733
|
if (!NotFoundComponent)
|
|
@@ -40109,6 +40109,25 @@ var prepare = async (configOrPath) => {
|
|
|
40109
40109
|
return file5;
|
|
40110
40110
|
});
|
|
40111
40111
|
recordStep("create static plugin", stepStartedAt);
|
|
40112
|
+
const isFingerprintedAsset = (pathname) => {
|
|
40113
|
+
if (pathname.startsWith("/.absolutejs/"))
|
|
40114
|
+
return true;
|
|
40115
|
+
const base = pathname.slice(pathname.lastIndexOf("/") + 1);
|
|
40116
|
+
const hash = base.match(/[.-]([0-9a-z]{6,12})\.[0-9a-z]+$/i)?.[1];
|
|
40117
|
+
return hash ? /[0-9]/.test(hash) && /[a-z]/i.test(hash) : false;
|
|
40118
|
+
};
|
|
40119
|
+
const assetCachePlugin = new Elysia8({
|
|
40120
|
+
name: "absolutejs-asset-cache"
|
|
40121
|
+
}).onAfterHandle({ as: "global" }, ({ request, response }) => {
|
|
40122
|
+
if (!(response instanceof Response))
|
|
40123
|
+
return;
|
|
40124
|
+
if (request.method !== "GET" && request.method !== "HEAD")
|
|
40125
|
+
return;
|
|
40126
|
+
const { pathname } = new URL(request.url);
|
|
40127
|
+
if (pathname.endsWith("/") || !/\.[0-9a-z]+$/i.test(pathname))
|
|
40128
|
+
return;
|
|
40129
|
+
response.headers.set("cache-control", isFingerprintedAsset(pathname) ? "public, max-age=31536000, immutable" : "public, max-age=0, must-revalidate");
|
|
40130
|
+
});
|
|
40112
40131
|
stepStartedAt = performance.now();
|
|
40113
40132
|
const prerenderDir = join49(buildDir, "_prerendered");
|
|
40114
40133
|
const prerenderMap = loadPrerenderMap(prerenderDir);
|
|
@@ -40141,7 +40160,7 @@ var prepare = async (configOrPath) => {
|
|
|
40141
40160
|
});
|
|
40142
40161
|
stepStartedAt = performance.now();
|
|
40143
40162
|
const { imageOptimizer: imageOptimizer3 } = await Promise.resolve().then(() => (init_imageOptimizer(), exports_imageOptimizer));
|
|
40144
|
-
const absolutejs2 = new Elysia8({ name: "absolutejs-runtime" }).use(imageOptimizer3(config2.images, buildDir)).use(prerenderPlugin).use(staticFiles).use(generatedAssetsPlugin).use(createNotFoundPlugin());
|
|
40163
|
+
const absolutejs2 = new Elysia8({ name: "absolutejs-runtime" }).use(assetCachePlugin).use(imageOptimizer3(config2.images, buildDir)).use(prerenderPlugin).use(staticFiles).use(generatedAssetsPlugin).use(createNotFoundPlugin());
|
|
40145
40164
|
await withOpenApi(absolutejs2, config2, process.cwd(), false);
|
|
40146
40165
|
await withTelemetry(absolutejs2, config2, process.cwd());
|
|
40147
40166
|
recordStep("assemble production runtime", stepStartedAt);
|
|
@@ -40150,7 +40169,7 @@ var prepare = async (configOrPath) => {
|
|
|
40150
40169
|
}
|
|
40151
40170
|
stepStartedAt = performance.now();
|
|
40152
40171
|
const { imageOptimizer: imageOptimizer2 } = await Promise.resolve().then(() => (init_imageOptimizer(), exports_imageOptimizer));
|
|
40153
|
-
const absolutejs = new Elysia8({ name: "absolutejs-runtime" }).use(imageOptimizer2(config2.images, buildDir)).use(staticFiles).use(generatedAssetsPlugin).use(createNotFoundPlugin());
|
|
40172
|
+
const absolutejs = new Elysia8({ name: "absolutejs-runtime" }).use(assetCachePlugin).use(imageOptimizer2(config2.images, buildDir)).use(staticFiles).use(generatedAssetsPlugin).use(createNotFoundPlugin());
|
|
40154
40173
|
await withOpenApi(absolutejs, config2, process.cwd(), false);
|
|
40155
40174
|
await withTelemetry(absolutejs, config2, process.cwd());
|
|
40156
40175
|
recordStep("assemble production runtime", stepStartedAt);
|
|
@@ -40170,7 +40189,7 @@ var wrapPageHandlerWithStreamingSlots = (handler, options) => {
|
|
|
40170
40189
|
init_constants();
|
|
40171
40190
|
import { argv } from "process";
|
|
40172
40191
|
var {env: env4 } = globalThis.Bun;
|
|
40173
|
-
import { websocket as elysiaWebSocketHandler } from "elysia/ws";
|
|
40192
|
+
import { websocket as elysiaWebSocketHandler } from "./node_modules/elysia/dist/ws/index.mjs";
|
|
40174
40193
|
|
|
40175
40194
|
// src/dev/devCert.ts
|
|
40176
40195
|
import {
|
|
@@ -47014,5 +47033,5 @@ export {
|
|
|
47014
47033
|
ANGULAR_INIT_TIMEOUT_MS
|
|
47015
47034
|
};
|
|
47016
47035
|
|
|
47017
|
-
//# debugId=
|
|
47036
|
+
//# debugId=5C2761F3C51DB90064756E2164756E21
|
|
47018
47037
|
//# sourceMappingURL=index.js.map
|