@absolutejs/absolute 0.19.0-beta.705 → 0.19.0-beta.706
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 +6 -4
- package/dist/angular/browser.js.map +3 -3
- package/dist/angular/index.js +19 -10
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +19 -10
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +145 -78
- package/dist/build.js.map +10 -10
- package/dist/cli/index.js +18 -11
- package/dist/client/index.js +4 -2
- package/dist/client/index.js.map +2 -2
- package/dist/index.js +166 -90
- package/dist/index.js.map +12 -12
- package/dist/islands/index.js +5 -3
- package/dist/islands/index.js.map +2 -2
- package/dist/react/browser.js +7 -7
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/browser/index.js +101 -101
- package/dist/react/components/index.js +104 -104
- package/dist/react/components/index.js.map +2 -2
- package/dist/react/index.js +29 -20
- package/dist/react/index.js.map +3 -3
- package/dist/react/server.js +15 -8
- package/dist/react/server.js.map +3 -3
- package/dist/src/angular/components/defer-slot-templates.directive.d.ts +0 -7
- package/dist/src/angular/components/defer-slot.component.d.ts +2 -5
- package/dist/src/angular/components/image.component.d.ts +2 -5
- package/dist/src/angular/components/index.d.ts +4 -4
- package/dist/src/angular/components/stream-slot.component.d.ts +0 -3
- package/dist/src/build/buildAngularVendor.d.ts +3 -4
- package/dist/src/utils/imageProcessing.d.ts +1 -1
- package/dist/src/vue/components/Image.d.ts +1 -1
- package/dist/svelte/index.js +19 -10
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +16 -9
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +19 -10
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +15 -8
- package/dist/vue/server.js.map +3 -3
- package/package.json +1 -1
- package/dist/angular/components/constants.js +0 -77
- package/dist/angular/components/core/streamingSlotRegistrar.js +0 -58
- package/dist/angular/components/core/streamingSlotRegistry.js +0 -114
- package/dist/angular/components/defer-slot-payload.js +0 -6
- package/dist/angular/components/defer-slot-templates.directive.js +0 -44
- package/dist/angular/components/defer-slot.component.js +0 -149
- package/dist/angular/components/image.component.js +0 -202
- package/dist/angular/components/index.js +0 -4
- package/dist/angular/components/stream-slot.component.js +0 -103
- package/dist/dev/client/constants.ts +0 -26
- package/dist/dev/client/cssUtils.ts +0 -307
- package/dist/dev/client/domDiff.ts +0 -226
- package/dist/dev/client/domState.ts +0 -421
- package/dist/dev/client/domTracker.ts +0 -61
- package/dist/dev/client/errorOverlay.ts +0 -184
- package/dist/dev/client/frameworkDetect.ts +0 -63
- package/dist/dev/client/handlers/angular.ts +0 -551
- package/dist/dev/client/handlers/angularRuntime.ts +0 -206
- package/dist/dev/client/handlers/html.ts +0 -363
- package/dist/dev/client/handlers/htmx.ts +0 -272
- package/dist/dev/client/handlers/react.ts +0 -108
- package/dist/dev/client/handlers/rebuild.ts +0 -153
- package/dist/dev/client/handlers/svelte.ts +0 -332
- package/dist/dev/client/handlers/vue.ts +0 -292
- package/dist/dev/client/headPatch.ts +0 -233
- package/dist/dev/client/hmrClient.ts +0 -251
- package/dist/dev/client/hmrState.ts +0 -14
- package/dist/dev/client/moduleVersions.ts +0 -62
- package/dist/dev/client/reactRefreshSetup.ts +0 -33
- package/dist/src/angular/components/constants.d.ts +0 -74
- package/dist/svelte/components/AwaitSlot.svelte +0 -39
- package/dist/svelte/components/AwaitSlot.svelte.d.ts +0 -2
- package/dist/svelte/components/Head.svelte +0 -144
- package/dist/svelte/components/Head.svelte.d.ts +0 -2
- package/dist/svelte/components/Image.svelte +0 -164
- package/dist/svelte/components/Image.svelte.d.ts +0 -5
- package/dist/svelte/components/Island.svelte +0 -71
- package/dist/svelte/components/Island.svelte.d.ts +0 -5
- package/dist/svelte/components/JsonLd.svelte +0 -21
- package/dist/svelte/components/JsonLd.svelte.d.ts +0 -2
- package/dist/svelte/components/StreamSlot.svelte +0 -41
- package/dist/svelte/components/StreamSlot.svelte.d.ts +0 -2
- package/dist/types/globals.d.ts +0 -121
package/dist/index.js
CHANGED
|
@@ -965,7 +965,9 @@ var initDominoAdapter = (platformServer) => {
|
|
|
965
965
|
import(resolveAngularPackage("@angular/common")),
|
|
966
966
|
import(resolveAngularPackage("@angular/core"))
|
|
967
967
|
]);
|
|
968
|
-
if (
|
|
968
|
+
if (true) {
|
|
969
|
+
core.enableProdMode();
|
|
970
|
+
}
|
|
969
971
|
initDominoAdapter(platformServer);
|
|
970
972
|
return {
|
|
971
973
|
APP_BASE_HREF: common.APP_BASE_HREF,
|
|
@@ -1735,7 +1737,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
1735
1737
|
const config = normalizePostcssModule(loaded);
|
|
1736
1738
|
const value = typeof config === "function" ? await config({
|
|
1737
1739
|
cwd: process.cwd(),
|
|
1738
|
-
env: "
|
|
1740
|
+
env: "test"
|
|
1739
1741
|
}) : config;
|
|
1740
1742
|
return normalizePostcssModule(value) ?? {};
|
|
1741
1743
|
}, normalizePostcssPlugins = (plugins) => {
|
|
@@ -13280,7 +13282,14 @@ function asColor(value2, modifier, theme2) {
|
|
|
13280
13282
|
return withAlpha(value2, `${modifier.value}%`);
|
|
13281
13283
|
}
|
|
13282
13284
|
function resolveThemeColor(candidate, theme2, themeKeys) {
|
|
13283
|
-
if (
|
|
13285
|
+
if (true) {
|
|
13286
|
+
if (!candidate.value) {
|
|
13287
|
+
throw new Error("resolveThemeColor must be called with a named candidate");
|
|
13288
|
+
}
|
|
13289
|
+
if (candidate.value.kind !== "named") {
|
|
13290
|
+
throw new Error("resolveThemeColor must be called with a named value");
|
|
13291
|
+
}
|
|
13292
|
+
}
|
|
13284
13293
|
let value2 = null;
|
|
13285
13294
|
switch (candidate.value.value) {
|
|
13286
13295
|
case "inherit": {
|
|
@@ -21959,9 +21968,7 @@ ${output}`);
|
|
|
21959
21968
|
}
|
|
21960
21969
|
async function compileAst(input, opts = {}) {
|
|
21961
21970
|
let { designSystem, ast, sources, root, utilitiesNode, features, inlineCandidates } = await parseCss(input, opts);
|
|
21962
|
-
if (
|
|
21963
|
-
ast.unshift(comment(`! tailwindcss v${version} | MIT License | https://tailwindcss.com `));
|
|
21964
|
-
}
|
|
21971
|
+
if (false) {}
|
|
21965
21972
|
function onInvalidCandidate(candidate) {
|
|
21966
21973
|
designSystem.invalidCandidates.add(candidate);
|
|
21967
21974
|
}
|
|
@@ -22879,7 +22886,7 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
|
|
|
22879
22886
|
throw error;
|
|
22880
22887
|
};
|
|
22881
22888
|
return next();
|
|
22882
|
-
}, require_memoize, require_CachedInputFileSystem, require_polyfills, require_legacy_streams, require_clone, require_graceful_fs, require_forEachBail, require_DescriptionFileUtils, require_getInnerRequest, require_AliasFieldPlugin, require_path, require_AliasPlugin, require_AppendPlugin, require_ConditionalPlugin, require_DescriptionFilePlugin, require_DirectoryExistsPlugin, require_identifier, require_entrypoints, require_ExportsFieldPlugin, require_ExtensionAliasPlugin, require_FileExistsPlugin, require_ImportsFieldPlugin, require_JoinRequestPartPlugin, require_JoinRequestPlugin, require_MainFieldPlugin, require_getPaths, require_ModulesInHierarchicalDirectoriesPlugin, require_ModulesInRootPlugin, require_NextPlugin, require_ParsePlugin, require_PnpPlugin, require_Hook, require_HookCodeFactory, require_SyncHook, require_SyncBailHook, require_SyncWaterfallHook, require_SyncLoopHook, require_AsyncParallelHook, require_AsyncParallelBailHook, require_AsyncSeriesHook, require_AsyncSeriesBailHook, require_AsyncSeriesLoopHook, require_AsyncSeriesWaterfallHook, require_HookMap, require_MultiHook, require_lib, require_createInnerContext, require_Resolver, require_RestrictionsPlugin, require_ResultPlugin, require_RootsPlugin, require_SelfReferencePlugin, require_SymlinkPlugin, require_SyncAsyncFileSystemDecorator, require_TryNextPlugin, require_UnsafeCachePlugin, require_UseFilePlugin, require_ResolverFactory, require_CloneBasenamePlugin, require_LogInfoPlugin, require_lib2, require_jiti, require_base64, require_base64_vlq, require_util, require_array_set, require_mapping_list, require_source_map_generator, require_binary_search, require_quick_sort, require_source_map_consumer, require_source_node, require_source_map, require_require_cache, require_tailwindcss_oxide_android_arm64, require_package, require_tailwindcss_oxide_win32_x64_msvc, require_package2, require_tailwindcss_oxide_win32_arm64_msvc, require_package3, require_tailwindcss_oxide_darwin_x64, require_package4, require_tailwindcss_oxide_darwin_arm64, require_package5, require_package6, require_tailwindcss_oxide_linux_x64_musl, require_package7, require_tailwindcss_oxide_linux_x64_gnu, require_package8, require_tailwindcss_oxide_linux_arm64_musl, require_package9, require_tailwindcss_oxide_linux_arm64_gnu, require_package10, require_package11, _WebAssembly, ENVIRONMENT_IS_NODE, WASI_THREADS_MAX_TID, nextWorkerID, ThreadManager, kIsProxy, patchedWasiInstances, WASIThreads, ThreadMessageHandler, init_wasi_threads_esm_bundler, extendStatics, __assign, init_tslib_es6, emnapi_core_esm_bundler_exports, _WebAssembly2, MessageHandler, version2, init_emnapi_core_esm_bundler, emnapi_esm_bundler_exports, externalValue, External, supportNewFunction, _global, TryCatch, canSetFunctionName, supportReflect, supportFinalizer, supportWeakSymbol, supportBigInt, _require, _MessageChannel, _setImmediate, _Buffer, version3, NODE_API_SUPPORTED_VERSION_MIN, NODE_API_SUPPORTED_VERSION_MAX, NAPI_VERSION_EXPERIMENTAL, NODE_API_DEFAULT_MODULE_API_VERSION, Handle, ConstHandle, HandleStore, HandleScope, ScopeStore, RefTracker, Finalizer, TrackedFinalizer, Env, NodeEnv, EmnapiError, NotSupportWeakRefError, NotSupportBufferError, StrongRef, Persistent, ReferenceOwnership, Reference, ReferenceWithData, ReferenceWithFinalizer, Deferred, Store, CleanupHookCallback, CleanupQueue, NodejsWaitingRequestCounter, Context, defaultContext, init_emnapi_esm_bundler, wasm_util_esm_bundler_exports, _WebAssembly3, ignoreNames, Asyncify, CHAR_DOT, CHAR_FORWARD_SLASH, FD_DATASYNC, FD_READ, FD_SEEK, FD_FDSTAT_SET_FLAGS, FD_SYNC, FD_TELL, FD_WRITE, FD_ADVISE, FD_ALLOCATE, PATH_CREATE_DIRECTORY, PATH_CREATE_FILE, PATH_LINK_SOURCE, PATH_LINK_TARGET, PATH_OPEN, FD_READDIR, PATH_READLINK, PATH_RENAME_SOURCE, PATH_RENAME_TARGET, PATH_FILESTAT_GET, PATH_FILESTAT_SET_SIZE, PATH_FILESTAT_SET_TIMES, FD_FILESTAT_GET, FD_FILESTAT_SET_SIZE, FD_FILESTAT_SET_TIMES, PATH_SYMLINK, PATH_REMOVE_DIRECTORY, PATH_UNLINK_FILE, POLL_FD_READWRITE, SOCK_SHUTDOWN, SOCK_ACCEPT, WasiRights, WasiError, RIGHTS_ALL, BLOCK_DEVICE_BASE, BLOCK_DEVICE_INHERITING, CHARACTER_DEVICE_BASE, CHARACTER_DEVICE_INHERITING, REGULAR_FILE_BASE, REGULAR_FILE_INHERITING, DIRECTORY_BASE, DIRECTORY_INHERITING, SOCKET_BASE, SOCKET_INHERITING, TTY_BASE, TTY_INHERITING, FileDescriptor, StandardOutput, FileDescriptorTable, SyncTable, AsyncTable, WebAssemblyMemory, Memory, _memory, _wasi, _fs, encoder, decoder, INT64_MAX, WASI$1, kEmptyObject, kExitCode, kSetMemory, kStarted, kInstance, kBindingName, WASI, init_wasm_util_esm_bundler, require_fs_proxy, require_runtime, require_tailwindcss_oxide_wasi, require_tailwindcss_oxide_wasi2, require_node, import_enhanced_resolve, import_jiti, nativeImport = (id) => import(id), _transform,
|
|
22889
|
+
}, require_memoize, require_CachedInputFileSystem, require_polyfills, require_legacy_streams, require_clone, require_graceful_fs, require_forEachBail, require_DescriptionFileUtils, require_getInnerRequest, require_AliasFieldPlugin, require_path, require_AliasPlugin, require_AppendPlugin, require_ConditionalPlugin, require_DescriptionFilePlugin, require_DirectoryExistsPlugin, require_identifier, require_entrypoints, require_ExportsFieldPlugin, require_ExtensionAliasPlugin, require_FileExistsPlugin, require_ImportsFieldPlugin, require_JoinRequestPartPlugin, require_JoinRequestPlugin, require_MainFieldPlugin, require_getPaths, require_ModulesInHierarchicalDirectoriesPlugin, require_ModulesInRootPlugin, require_NextPlugin, require_ParsePlugin, require_PnpPlugin, require_Hook, require_HookCodeFactory, require_SyncHook, require_SyncBailHook, require_SyncWaterfallHook, require_SyncLoopHook, require_AsyncParallelHook, require_AsyncParallelBailHook, require_AsyncSeriesHook, require_AsyncSeriesBailHook, require_AsyncSeriesLoopHook, require_AsyncSeriesWaterfallHook, require_HookMap, require_MultiHook, require_lib, require_createInnerContext, require_Resolver, require_RestrictionsPlugin, require_ResultPlugin, require_RootsPlugin, require_SelfReferencePlugin, require_SymlinkPlugin, require_SyncAsyncFileSystemDecorator, require_TryNextPlugin, require_UnsafeCachePlugin, require_UseFilePlugin, require_ResolverFactory, require_CloneBasenamePlugin, require_LogInfoPlugin, require_lib2, require_jiti, require_base64, require_base64_vlq, require_util, require_array_set, require_mapping_list, require_source_map_generator, require_binary_search, require_quick_sort, require_source_map_consumer, require_source_node, require_source_map, require_require_cache, require_tailwindcss_oxide_android_arm64, require_package, require_tailwindcss_oxide_win32_x64_msvc, require_package2, require_tailwindcss_oxide_win32_arm64_msvc, require_package3, require_tailwindcss_oxide_darwin_x64, require_package4, require_tailwindcss_oxide_darwin_arm64, require_package5, require_package6, require_tailwindcss_oxide_linux_x64_musl, require_package7, require_tailwindcss_oxide_linux_x64_gnu, require_package8, require_tailwindcss_oxide_linux_arm64_musl, require_package9, require_tailwindcss_oxide_linux_arm64_gnu, require_package10, require_package11, _WebAssembly, ENVIRONMENT_IS_NODE, WASI_THREADS_MAX_TID, nextWorkerID, ThreadManager, kIsProxy, patchedWasiInstances, WASIThreads, ThreadMessageHandler, init_wasi_threads_esm_bundler, extendStatics, __assign, init_tslib_es6, emnapi_core_esm_bundler_exports, _WebAssembly2, MessageHandler, version2, init_emnapi_core_esm_bundler, emnapi_esm_bundler_exports, externalValue, External, supportNewFunction, _global, TryCatch, canSetFunctionName, supportReflect, supportFinalizer, supportWeakSymbol, supportBigInt, _require, _MessageChannel, _setImmediate, _Buffer, version3, NODE_API_SUPPORTED_VERSION_MIN, NODE_API_SUPPORTED_VERSION_MAX, NAPI_VERSION_EXPERIMENTAL, NODE_API_DEFAULT_MODULE_API_VERSION, Handle, ConstHandle, HandleStore, HandleScope, ScopeStore, RefTracker, Finalizer, TrackedFinalizer, Env, NodeEnv, EmnapiError, NotSupportWeakRefError, NotSupportBufferError, StrongRef, Persistent, ReferenceOwnership, Reference, ReferenceWithData, ReferenceWithFinalizer, Deferred, Store, CleanupHookCallback, CleanupQueue, NodejsWaitingRequestCounter, Context, defaultContext, init_emnapi_esm_bundler, wasm_util_esm_bundler_exports, _WebAssembly3, ignoreNames, Asyncify, CHAR_DOT, CHAR_FORWARD_SLASH, FD_DATASYNC, FD_READ, FD_SEEK, FD_FDSTAT_SET_FLAGS, FD_SYNC, FD_TELL, FD_WRITE, FD_ADVISE, FD_ALLOCATE, PATH_CREATE_DIRECTORY, PATH_CREATE_FILE, PATH_LINK_SOURCE, PATH_LINK_TARGET, PATH_OPEN, FD_READDIR, PATH_READLINK, PATH_RENAME_SOURCE, PATH_RENAME_TARGET, PATH_FILESTAT_GET, PATH_FILESTAT_SET_SIZE, PATH_FILESTAT_SET_TIMES, FD_FILESTAT_GET, FD_FILESTAT_SET_SIZE, FD_FILESTAT_SET_TIMES, PATH_SYMLINK, PATH_REMOVE_DIRECTORY, PATH_UNLINK_FILE, POLL_FD_READWRITE, SOCK_SHUTDOWN, SOCK_ACCEPT, WasiRights, WasiError, RIGHTS_ALL, BLOCK_DEVICE_BASE, BLOCK_DEVICE_INHERITING, CHARACTER_DEVICE_BASE, CHARACTER_DEVICE_INHERITING, REGULAR_FILE_BASE, REGULAR_FILE_INHERITING, DIRECTORY_BASE, DIRECTORY_INHERITING, SOCKET_BASE, SOCKET_INHERITING, TTY_BASE, TTY_INHERITING, FileDescriptor, StandardOutput, FileDescriptorTable, SyncTable, AsyncTable, WebAssemblyMemory, Memory, _memory, _wasi, _fs, encoder, decoder, INT64_MAX, WASI$1, kEmptyObject, kExitCode, kSetMemory, kStarted, kInstance, kBindingName, WASI, init_wasm_util_esm_bundler, require_fs_proxy, require_runtime, require_tailwindcss_oxide_wasi, require_tailwindcss_oxide_wasi2, require_node, import_enhanced_resolve, import_jiti, nativeImport = (id) => import(id), _transform, BACKSLASH = 92, SLASH = 47, ASTERISK = 42, DOUBLE_QUOTE = 34, SINGLE_QUOTE = 39, COLON = 58, SEMICOLON = 59, LINE_BREAK = 10, CARRIAGE_RETURN = 13, SPACE = 32, TAB = 9, OPEN_CURLY = 123, CLOSE_CURLY = 125, OPEN_PAREN = 40, CLOSE_PAREN = 41, OPEN_BRACKET = 91, CLOSE_BRACKET = 93, DASH = 45, AT_SIGN = 64, EXCLAMATION_MARK = 33, ignoredThemeKeyMap, Theme = class {
|
|
22883
22890
|
constructor(values = /* @__PURE__ */ new Map, keyframes = /* @__PURE__ */ new Set([])) {
|
|
22884
22891
|
this.values = values;
|
|
22885
22892
|
this.keyframes = keyframes;
|
|
@@ -31518,7 +31525,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
31518
31525
|
return false;
|
|
31519
31526
|
let i2 = dist_i(true);
|
|
31520
31527
|
return delete i2[t3], true;
|
|
31521
|
-
}, ownKeys: () => Object.keys(dist_i(true)) }), to = "u" > typeof process && process.env && "
|
|
31528
|
+
}, ownKeys: () => Object.keys(dist_i(true)) }), to = "u" > typeof process && process.env && "test" || "", th = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CLOUDFLARE_WORKERS", "WORKERS_CI", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["CODESANDBOX", "CODESANDBOX_HOST", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]], tc = function() {
|
|
31522
31529
|
if (globalThis.process?.env)
|
|
31523
31530
|
for (let e10 of th) {
|
|
31524
31531
|
let t3 = e10[1] || e10[0];
|
|
@@ -41565,9 +41572,11 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
|
|
|
41565
41572
|
return actual.startsWith(prefix);
|
|
41566
41573
|
}
|
|
41567
41574
|
return actual === pattern;
|
|
41568
|
-
}, MIME_MAP, callSharp = (sharpRef, input) => {
|
|
41569
|
-
|
|
41570
|
-
|
|
41575
|
+
}, MIME_MAP, isSharpFactory = (value2) => typeof value2 === "function", callSharp = (sharpRef, input) => {
|
|
41576
|
+
if (!isSharpFactory(sharpRef)) {
|
|
41577
|
+
throw new Error("Loaded sharp module is not callable.");
|
|
41578
|
+
}
|
|
41579
|
+
return sharpRef(input);
|
|
41571
41580
|
}, toBuffer = (input) => {
|
|
41572
41581
|
if (Buffer.isBuffer(input))
|
|
41573
41582
|
return input;
|
|
@@ -41818,9 +41827,9 @@ var checkCandidate = (candidate) => {
|
|
|
41818
41827
|
let { dir } = import.meta;
|
|
41819
41828
|
while (dir !== parse4(dir).root) {
|
|
41820
41829
|
const candidate = join10(dir, "package.json");
|
|
41821
|
-
const
|
|
41822
|
-
if (
|
|
41823
|
-
return
|
|
41830
|
+
const version = checkCandidate(candidate);
|
|
41831
|
+
if (version) {
|
|
41832
|
+
return version;
|
|
41824
41833
|
}
|
|
41825
41834
|
dir = dirname7(dir);
|
|
41826
41835
|
}
|
|
@@ -44572,13 +44581,49 @@ __export(exports_buildAngularVendor, {
|
|
|
44572
44581
|
import { mkdirSync as mkdirSync7 } from "fs";
|
|
44573
44582
|
import { join as join17 } from "path";
|
|
44574
44583
|
import { rm as rm6 } from "fs/promises";
|
|
44575
|
-
var {build: bunBuild4 } = globalThis.Bun;
|
|
44576
|
-
var
|
|
44584
|
+
var {build: bunBuild4, Glob: Glob6 } = globalThis.Bun;
|
|
44585
|
+
var REQUIRED_ANGULAR_SPECIFIERS, SERVER_ONLY_ANGULAR_SPECIFIERS, SCAN_SKIP_DIRS, isResolvable2 = (specifier) => {
|
|
44586
|
+
try {
|
|
44587
|
+
Bun.resolveSync(specifier, process.cwd());
|
|
44588
|
+
return true;
|
|
44589
|
+
} catch {
|
|
44590
|
+
return false;
|
|
44591
|
+
}
|
|
44592
|
+
}, isAngularBrowserSpecifier = (spec) => spec.startsWith("@angular/") && !SERVER_ONLY_ANGULAR_SPECIFIERS.has(spec), scanAngularSpecifiers = async (directories) => {
|
|
44593
|
+
const found = new Set;
|
|
44594
|
+
const transpiler4 = new Bun.Transpiler({ loader: "tsx" });
|
|
44595
|
+
const glob = new Glob6("**/*.{ts,tsx,js,jsx}");
|
|
44596
|
+
for (const dir of directories) {
|
|
44597
|
+
try {
|
|
44598
|
+
for await (const file4 of glob.scan({ absolute: true, cwd: dir })) {
|
|
44599
|
+
const rel = file4.slice(dir.length + 1);
|
|
44600
|
+
const [first] = rel.split("/");
|
|
44601
|
+
if (first && SCAN_SKIP_DIRS.has(first))
|
|
44602
|
+
continue;
|
|
44603
|
+
try {
|
|
44604
|
+
const content = await Bun.file(file4).text();
|
|
44605
|
+
for (const imp of transpiler4.scanImports(content)) {
|
|
44606
|
+
if (isAngularBrowserSpecifier(imp.path)) {
|
|
44607
|
+
found.add(imp.path);
|
|
44608
|
+
}
|
|
44609
|
+
}
|
|
44610
|
+
} catch {}
|
|
44611
|
+
}
|
|
44612
|
+
} catch {}
|
|
44613
|
+
}
|
|
44614
|
+
return found;
|
|
44615
|
+
}, toSafeFileName2 = (specifier) => specifier.replace(/^@/, "").replace(/\//g, "_"), resolveAngularSpecifiers = async (directories) => {
|
|
44616
|
+
const discovered = await scanAngularSpecifiers(directories);
|
|
44617
|
+
for (const spec of REQUIRED_ANGULAR_SPECIFIERS)
|
|
44618
|
+
discovered.add(spec);
|
|
44619
|
+
return Array.from(discovered).filter(isResolvable2);
|
|
44620
|
+
}, buildAngularVendor = async (buildDir, directories = []) => {
|
|
44577
44621
|
const vendorDir = join17(buildDir, "angular", "vendor");
|
|
44578
44622
|
mkdirSync7(vendorDir, { recursive: true });
|
|
44579
44623
|
const tmpDir = join17(buildDir, "_angular_vendor_tmp");
|
|
44580
44624
|
mkdirSync7(tmpDir, { recursive: true });
|
|
44581
|
-
const
|
|
44625
|
+
const specifiers = await resolveAngularSpecifiers(directories);
|
|
44626
|
+
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
44582
44627
|
const safeName = toSafeFileName2(specifier);
|
|
44583
44628
|
const entryPath = join17(tmpDir, `${safeName}.ts`);
|
|
44584
44629
|
await Bun.write(entryPath, `export * from '${specifier}';
|
|
@@ -44600,22 +44645,35 @@ var angularSpecifiers, toSafeFileName2 = (specifier) => specifier.replace(/^@/,
|
|
|
44600
44645
|
if (!result.success) {
|
|
44601
44646
|
console.warn("\u26A0\uFE0F Angular vendor build had errors:", result.logs);
|
|
44602
44647
|
}
|
|
44603
|
-
|
|
44648
|
+
return specifiers;
|
|
44649
|
+
}, computeAngularVendorPaths = (specifiers = REQUIRED_ANGULAR_SPECIFIERS) => {
|
|
44604
44650
|
const paths = {};
|
|
44605
|
-
for (const specifier of
|
|
44651
|
+
for (const specifier of specifiers) {
|
|
44606
44652
|
paths[specifier] = `/angular/vendor/${toSafeFileName2(specifier)}.js`;
|
|
44607
44653
|
}
|
|
44608
44654
|
return paths;
|
|
44609
44655
|
};
|
|
44610
44656
|
var init_buildAngularVendor = __esm(() => {
|
|
44611
44657
|
init_angularLinkerPlugin();
|
|
44612
|
-
|
|
44658
|
+
REQUIRED_ANGULAR_SPECIFIERS = [
|
|
44613
44659
|
"@angular/core",
|
|
44614
44660
|
"@angular/compiler",
|
|
44615
44661
|
"@angular/common",
|
|
44616
44662
|
"@angular/common/http",
|
|
44617
44663
|
"@angular/platform-browser"
|
|
44618
44664
|
];
|
|
44665
|
+
SERVER_ONLY_ANGULAR_SPECIFIERS = new Set([
|
|
44666
|
+
"@angular/platform-server",
|
|
44667
|
+
"@angular/ssr",
|
|
44668
|
+
"@angular/compiler-cli"
|
|
44669
|
+
]);
|
|
44670
|
+
SCAN_SKIP_DIRS = new Set([
|
|
44671
|
+
"node_modules",
|
|
44672
|
+
"build",
|
|
44673
|
+
"dist",
|
|
44674
|
+
".absolutejs",
|
|
44675
|
+
"generated"
|
|
44676
|
+
]);
|
|
44619
44677
|
});
|
|
44620
44678
|
|
|
44621
44679
|
// src/build/buildVueVendor.ts
|
|
@@ -44693,14 +44751,14 @@ import { mkdirSync as mkdirSync9 } from "fs";
|
|
|
44693
44751
|
import { join as join19 } from "path";
|
|
44694
44752
|
import { rm as rm8 } from "fs/promises";
|
|
44695
44753
|
var {build: bunBuild6 } = globalThis.Bun;
|
|
44696
|
-
var svelteSpecifiers,
|
|
44754
|
+
var svelteSpecifiers, isResolvable3 = (specifier) => {
|
|
44697
44755
|
try {
|
|
44698
44756
|
__require.resolve(specifier);
|
|
44699
44757
|
return true;
|
|
44700
44758
|
} catch {
|
|
44701
44759
|
return false;
|
|
44702
44760
|
}
|
|
44703
|
-
}, resolveVendorSpecifiers2 = () => svelteSpecifiers.filter(
|
|
44761
|
+
}, resolveVendorSpecifiers2 = () => svelteSpecifiers.filter(isResolvable3), toSafeFileName4 = (specifier) => specifier.replace(/\//g, "_"), buildSvelteVendor = async (buildDir) => {
|
|
44704
44762
|
const specifiers = resolveVendorSpecifiers2();
|
|
44705
44763
|
if (specifiers.length === 0)
|
|
44706
44764
|
return;
|
|
@@ -44796,7 +44854,7 @@ import {
|
|
|
44796
44854
|
} from "fs";
|
|
44797
44855
|
import { basename as basename8, dirname as dirname12, join as join20, relative as relative10, resolve as resolve21 } from "path";
|
|
44798
44856
|
import { cwd, env as env3, exit } from "process";
|
|
44799
|
-
var {build: bunBuild7, Glob:
|
|
44857
|
+
var {build: bunBuild7, Glob: Glob7 } = globalThis.Bun;
|
|
44800
44858
|
var isDev2, collectConventionSourceFiles = (entry) => {
|
|
44801
44859
|
if (!entry)
|
|
44802
44860
|
return [];
|
|
@@ -44867,7 +44925,7 @@ var isDev2, collectConventionSourceFiles = (entry) => {
|
|
|
44867
44925
|
exit(1);
|
|
44868
44926
|
}, copyHtmxVendor = (htmxDir, htmxDestDir) => {
|
|
44869
44927
|
mkdirSync10(htmxDestDir, { recursive: true });
|
|
44870
|
-
const glob = new
|
|
44928
|
+
const glob = new Glob7("htmx*.min.js");
|
|
44871
44929
|
for (const relPath of glob.scanSync({ cwd: htmxDir })) {
|
|
44872
44930
|
const src = join20(htmxDir, relPath);
|
|
44873
44931
|
const dest = join20(htmxDestDir, "htmx.min.js");
|
|
@@ -44885,15 +44943,19 @@ var isDev2, collectConventionSourceFiles = (entry) => {
|
|
|
44885
44943
|
resolve21(import.meta.dir, "..", "..", "package.json"),
|
|
44886
44944
|
resolve21(import.meta.dir, "..", "package.json")
|
|
44887
44945
|
];
|
|
44888
|
-
|
|
44946
|
+
const resolveCandidate = async (remaining) => {
|
|
44947
|
+
const [candidate, ...rest] = remaining;
|
|
44948
|
+
if (!candidate) {
|
|
44949
|
+
return;
|
|
44950
|
+
}
|
|
44889
44951
|
const pkg = await tryReadPackageJson(candidate);
|
|
44890
|
-
if (!pkg)
|
|
44891
|
-
|
|
44892
|
-
|
|
44893
|
-
|
|
44952
|
+
if (!pkg || pkg.name !== "@absolutejs/absolute") {
|
|
44953
|
+
await resolveCandidate(rest);
|
|
44954
|
+
return;
|
|
44955
|
+
}
|
|
44894
44956
|
globalThis.__absoluteVersion = pkg.version;
|
|
44895
|
-
|
|
44896
|
-
|
|
44957
|
+
};
|
|
44958
|
+
await resolveCandidate(candidates);
|
|
44897
44959
|
}, SKIP_DIRS, addWorkerPathIfExists = (file4, relPath, workerPaths) => {
|
|
44898
44960
|
const absPath = resolve21(file4, "..", relPath);
|
|
44899
44961
|
try {
|
|
@@ -44915,7 +44977,7 @@ var isDev2, collectConventionSourceFiles = (entry) => {
|
|
|
44915
44977
|
collectWorkerPathsFromContent(content, pattern, file4, workerPaths);
|
|
44916
44978
|
}
|
|
44917
44979
|
}, scanWorkerReferencesInDir = async (dir, patterns, workerPaths) => {
|
|
44918
|
-
const glob = new
|
|
44980
|
+
const glob = new Glob7("**/*.{ts,tsx,js,jsx,svelte,vue}");
|
|
44919
44981
|
for await (const file4 of glob.scan({ absolute: true, cwd: dir })) {
|
|
44920
44982
|
const relToDir = file4.slice(dir.length + 1);
|
|
44921
44983
|
const [firstSegment] = relToDir.split("/");
|
|
@@ -44927,9 +44989,7 @@ var isDev2, collectConventionSourceFiles = (entry) => {
|
|
|
44927
44989
|
const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
|
|
44928
44990
|
const resolvePattern = /import\.meta\.resolve\(\s*["'](\.\.?\/[^"']+)["']\s*\)/g;
|
|
44929
44991
|
const workerPaths = new Set;
|
|
44930
|
-
|
|
44931
|
-
await scanWorkerReferencesInDir(dir, [urlPattern, resolvePattern], workerPaths);
|
|
44932
|
-
}
|
|
44992
|
+
await dirs.reduce((chain, dir) => chain.then(() => scanWorkerReferencesInDir(dir, [urlPattern, resolvePattern], workerPaths)), Promise.resolve());
|
|
44933
44993
|
return [...workerPaths];
|
|
44934
44994
|
}, copyDevIndexes = async ({
|
|
44935
44995
|
buildPath,
|
|
@@ -45463,7 +45523,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45463
45523
|
let angularVendorPaths2 = getAngularVendorPaths();
|
|
45464
45524
|
if (!angularVendorPaths2 && hmr && angularDir) {
|
|
45465
45525
|
const { computeAngularVendorPaths: computeAngularVendorPaths2 } = await Promise.resolve().then(() => (init_buildAngularVendor(), exports_buildAngularVendor));
|
|
45466
|
-
angularVendorPaths2 = computeAngularVendorPaths2();
|
|
45526
|
+
angularVendorPaths2 = computeAngularVendorPaths2(globalThis.__angularVendorSpecifiers);
|
|
45467
45527
|
setAngularVendorPaths(angularVendorPaths2);
|
|
45468
45528
|
}
|
|
45469
45529
|
let vueVendorPaths2 = getVueVendorPaths();
|
|
@@ -45541,16 +45601,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45541
45601
|
"svelte/*",
|
|
45542
45602
|
"vue",
|
|
45543
45603
|
"vue/*",
|
|
45544
|
-
"@angular
|
|
45545
|
-
"@angular/core/*",
|
|
45546
|
-
"@angular/common",
|
|
45547
|
-
"@angular/common/*",
|
|
45548
|
-
"@angular/compiler",
|
|
45549
|
-
"@angular/compiler/*",
|
|
45550
|
-
"@angular/platform-browser",
|
|
45551
|
-
"@angular/platform-browser/*",
|
|
45552
|
-
"@angular/platform-server",
|
|
45553
|
-
"@angular/platform-server/*",
|
|
45604
|
+
"@angular/*",
|
|
45554
45605
|
"typescript"
|
|
45555
45606
|
],
|
|
45556
45607
|
format: "esm",
|
|
@@ -45604,9 +45655,9 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45604
45655
|
entrypoints: globalCssEntries,
|
|
45605
45656
|
naming: `[dir]/[name].[hash].[ext]`,
|
|
45606
45657
|
outdir: stylesDir ? join20(buildPath, basename8(stylesDir)) : buildPath,
|
|
45658
|
+
plugins: [stylePreprocessorPlugin2],
|
|
45607
45659
|
root: stylesDir || clientRoot,
|
|
45608
45660
|
target: "browser",
|
|
45609
|
-
plugins: [stylePreprocessorPlugin2],
|
|
45610
45661
|
throw: false
|
|
45611
45662
|
}) : undefined,
|
|
45612
45663
|
vueCssPaths.length > 0 ? bunBuild7({
|
|
@@ -45897,7 +45948,7 @@ var init_build = __esm(() => {
|
|
|
45897
45948
|
|
|
45898
45949
|
// src/dev/dependencyGraph.ts
|
|
45899
45950
|
import { existsSync as existsSync19, readFileSync as readFileSync12 } from "fs";
|
|
45900
|
-
var {Glob:
|
|
45951
|
+
var {Glob: Glob8 } = globalThis.Bun;
|
|
45901
45952
|
import { resolve as resolve23 } from "path";
|
|
45902
45953
|
var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath) => {
|
|
45903
45954
|
const lower = filePath.toLowerCase();
|
|
@@ -45959,7 +46010,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
|
|
|
45959
46010
|
dependencies.forEach(addDependent);
|
|
45960
46011
|
}, IGNORED_SEGMENTS, buildInitialDependencyGraph = (graph, directories) => {
|
|
45961
46012
|
const processedFiles = new Set;
|
|
45962
|
-
const glob = new
|
|
46013
|
+
const glob = new Glob8("**/*.{ts,tsx,js,jsx,vue,svelte,html,htm}");
|
|
45963
46014
|
const resolvedDirs = directories.map((dir) => resolve23(dir)).filter((dir) => existsSync19(dir));
|
|
45964
46015
|
const allFiles = resolvedDirs.flatMap((dir) => Array.from(glob.scanSync({ absolute: true, cwd: dir })));
|
|
45965
46016
|
for (const file4 of allFiles) {
|
|
@@ -46146,14 +46197,14 @@ var globalVersionCounter = 0, createModuleVersionTracker = () => new Map, getNex
|
|
|
46146
46197
|
}, incrementModuleVersions = (versions, modulePaths) => {
|
|
46147
46198
|
const updated = new Map;
|
|
46148
46199
|
for (const path2 of modulePaths) {
|
|
46149
|
-
const
|
|
46150
|
-
updated.set(path2,
|
|
46200
|
+
const version = incrementModuleVersion(versions, path2);
|
|
46201
|
+
updated.set(path2, version);
|
|
46151
46202
|
}
|
|
46152
46203
|
return updated;
|
|
46153
46204
|
}, serializeModuleVersions = (versions) => {
|
|
46154
46205
|
const serialized = {};
|
|
46155
|
-
for (const [path2,
|
|
46156
|
-
serialized[path2] =
|
|
46206
|
+
for (const [path2, version] of versions.entries()) {
|
|
46207
|
+
serialized[path2] = version;
|
|
46157
46208
|
}
|
|
46158
46209
|
return serialized;
|
|
46159
46210
|
};
|
|
@@ -47886,7 +47937,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
47886
47937
|
if (!angVendorPaths) {
|
|
47887
47938
|
const { computeAngularVendorPaths: computeAngularVendorPaths2 } = await Promise.resolve().then(() => (init_buildAngularVendor(), exports_buildAngularVendor));
|
|
47888
47939
|
const { setAngularVendorPaths: setAngularVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
|
|
47889
|
-
angVendorPaths = computeAngularVendorPaths2();
|
|
47940
|
+
angVendorPaths = computeAngularVendorPaths2(globalThis.__angularVendorSpecifiers);
|
|
47890
47941
|
setAngularVendorPaths2(angVendorPaths);
|
|
47891
47942
|
}
|
|
47892
47943
|
const clientResult = await bunBuild8({
|
|
@@ -49154,15 +49205,15 @@ __export(exports_buildDepVendor, {
|
|
|
49154
49205
|
import { mkdirSync as mkdirSync11 } from "fs";
|
|
49155
49206
|
import { join as join22 } from "path";
|
|
49156
49207
|
import { rm as rm9 } from "fs/promises";
|
|
49157
|
-
var {build: bunBuild8, Glob:
|
|
49158
|
-
var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_"),
|
|
49208
|
+
var {build: bunBuild8, Glob: Glob9 } = globalThis.Bun;
|
|
49209
|
+
var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_"), isResolvable4 = (specifier) => {
|
|
49159
49210
|
try {
|
|
49160
49211
|
Bun.resolveSync(specifier, process.cwd());
|
|
49161
49212
|
return true;
|
|
49162
49213
|
} catch {
|
|
49163
49214
|
return false;
|
|
49164
49215
|
}
|
|
49165
|
-
}, isBareSpecifier = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAbsolutePackageSpecifier = (spec) => spec === "@absolutejs/absolute" || spec.startsWith("@absolutejs/absolute/"), FRAMEWORK_SPECIFIERS, isSkippedFile = (file4) => file4.includes("node_modules") || file4.includes("/build/") || file4.includes("/dist/") || file4.includes("/indexes/"), isDepSpecifier = (path2) => isBareSpecifier(path2) && !
|
|
49216
|
+
}, isBareSpecifier = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAbsolutePackageSpecifier = (spec) => spec === "@absolutejs/absolute" || spec.startsWith("@absolutejs/absolute/"), FRAMEWORK_SPECIFIERS, FRAMEWORK_NAMESPACE_PREFIXES, isFrameworkSpecifier = (spec) => FRAMEWORK_SPECIFIERS.has(spec) || FRAMEWORK_NAMESPACE_PREFIXES.some((prefix) => spec.startsWith(prefix)), FRAMEWORK_EXTERNALS, isSkippedFile = (file4) => file4.includes("node_modules") || file4.includes("/build/") || file4.includes("/dist/") || file4.includes("/indexes/"), isDepSpecifier = (path2) => isBareSpecifier(path2) && !isFrameworkSpecifier(path2) && !isAbsolutePackageSpecifier(path2), readFileSpecifiers = async (file4, transpiler4) => {
|
|
49166
49217
|
const empty = [];
|
|
49167
49218
|
try {
|
|
49168
49219
|
const content = await Bun.file(file4).text();
|
|
@@ -49172,7 +49223,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49172
49223
|
}
|
|
49173
49224
|
}, scanDirFiles = async (dir) => {
|
|
49174
49225
|
const empty = [];
|
|
49175
|
-
const glob = new
|
|
49226
|
+
const glob = new Glob9("**/*.{ts,tsx,js,jsx}");
|
|
49176
49227
|
try {
|
|
49177
49228
|
const all = await Array.fromAsync(glob.scan({ absolute: true, cwd: dir }));
|
|
49178
49229
|
return all.filter((file4) => !isSkippedFile(file4));
|
|
@@ -49189,7 +49240,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49189
49240
|
const specifiers = new Set;
|
|
49190
49241
|
const transpiler4 = new Bun.Transpiler({ loader: "tsx" });
|
|
49191
49242
|
await Promise.all(directories.map((dir) => collectDirSpecifiers(dir, transpiler4, specifiers)));
|
|
49192
|
-
return Array.from(specifiers).filter(
|
|
49243
|
+
return Array.from(specifiers).filter(isResolvable4);
|
|
49193
49244
|
}, generateEntrySource2 = (specifier) => `export * from '${specifier}';
|
|
49194
49245
|
`, rewriteVendorFiles = async (vendorDir) => {
|
|
49195
49246
|
const { readdirSync: readdirSync2, readFileSync: readFileSync15, writeFileSync: writeFileSync8 } = await import("fs");
|
|
@@ -49225,7 +49276,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49225
49276
|
}));
|
|
49226
49277
|
const result = await bunBuild8({
|
|
49227
49278
|
entrypoints,
|
|
49228
|
-
external:
|
|
49279
|
+
external: FRAMEWORK_EXTERNALS,
|
|
49229
49280
|
format: "esm",
|
|
49230
49281
|
minify: false,
|
|
49231
49282
|
naming: "[name].[ext]",
|
|
@@ -49273,14 +49324,13 @@ var init_buildDepVendor = __esm(() => {
|
|
|
49273
49324
|
"svelte/compiler",
|
|
49274
49325
|
"vue",
|
|
49275
49326
|
"vue/server-renderer",
|
|
49276
|
-
"@vue/compiler-sfc"
|
|
49277
|
-
"@angular/core",
|
|
49278
|
-
"@angular/common",
|
|
49279
|
-
"@angular/compiler",
|
|
49280
|
-
"@angular/platform-browser",
|
|
49281
|
-
"@angular/platform-server",
|
|
49282
|
-
"@angular/ssr"
|
|
49327
|
+
"@vue/compiler-sfc"
|
|
49283
49328
|
]);
|
|
49329
|
+
FRAMEWORK_NAMESPACE_PREFIXES = ["@angular/"];
|
|
49330
|
+
FRAMEWORK_EXTERNALS = [
|
|
49331
|
+
...FRAMEWORK_SPECIFIERS,
|
|
49332
|
+
...FRAMEWORK_NAMESPACE_PREFIXES.map((prefix) => `${prefix}*`)
|
|
49333
|
+
];
|
|
49284
49334
|
});
|
|
49285
49335
|
|
|
49286
49336
|
// src/core/devBuild.ts
|
|
@@ -49362,9 +49412,11 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49362
49412
|
delete target[key];
|
|
49363
49413
|
}
|
|
49364
49414
|
}, REBUILD_POLL_MS = 10, waitForRebuild = async (state) => {
|
|
49365
|
-
|
|
49366
|
-
|
|
49415
|
+
if (!state.isRebuilding) {
|
|
49416
|
+
return;
|
|
49367
49417
|
}
|
|
49418
|
+
await Bun.sleep(REBUILD_POLL_MS);
|
|
49419
|
+
await waitForRebuild(state);
|
|
49368
49420
|
}, rebuildManifest = async (cached) => {
|
|
49369
49421
|
const state = cached.hmrState;
|
|
49370
49422
|
await waitForRebuild(state);
|
|
@@ -49430,12 +49482,25 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49430
49482
|
resolve34(import.meta.dir, "..", "..", "package.json"),
|
|
49431
49483
|
resolve34(import.meta.dir, "..", "package.json")
|
|
49432
49484
|
];
|
|
49433
|
-
|
|
49434
|
-
|
|
49435
|
-
|
|
49436
|
-
|
|
49437
|
-
|
|
49485
|
+
const [candidate, ...remaining] = candidates;
|
|
49486
|
+
if (!candidate) {
|
|
49487
|
+
return;
|
|
49488
|
+
}
|
|
49489
|
+
const found = await tryReadPackageVersion(candidate);
|
|
49490
|
+
if (found) {
|
|
49491
|
+
return;
|
|
49492
|
+
}
|
|
49493
|
+
await resolveAbsoluteVersionFromCandidates(remaining);
|
|
49494
|
+
}, resolveAbsoluteVersionFromCandidates = async (candidates) => {
|
|
49495
|
+
const [candidate, ...remaining] = candidates;
|
|
49496
|
+
if (!candidate) {
|
|
49497
|
+
return;
|
|
49498
|
+
}
|
|
49499
|
+
const found = await tryReadPackageVersion(candidate);
|
|
49500
|
+
if (found) {
|
|
49501
|
+
return;
|
|
49438
49502
|
}
|
|
49503
|
+
await resolveAbsoluteVersionFromCandidates(remaining);
|
|
49439
49504
|
}, loadVendorFiles = async (assetStore, vendorDir, framework) => {
|
|
49440
49505
|
const emptyStringArray = [];
|
|
49441
49506
|
const entries = await readdir4(vendorDir).catch(() => emptyStringArray);
|
|
@@ -49452,9 +49517,10 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49452
49517
|
}
|
|
49453
49518
|
const startupSteps = [];
|
|
49454
49519
|
const recordStep = (label, startedAt) => {
|
|
49520
|
+
const durationMs = performance.now() - startedAt;
|
|
49455
49521
|
startupSteps.push({
|
|
49456
|
-
|
|
49457
|
-
|
|
49522
|
+
durationMs,
|
|
49523
|
+
label
|
|
49458
49524
|
});
|
|
49459
49525
|
};
|
|
49460
49526
|
let stepStartedAt = performance.now();
|
|
@@ -49512,9 +49578,10 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49512
49578
|
}
|
|
49513
49579
|
return true;
|
|
49514
49580
|
}) : undefined;
|
|
49515
|
-
const buildAngularVendorTask = config.angularDirectory ? buildAngularVendor(state.resolvedPaths.buildDir).then(async () => {
|
|
49581
|
+
const buildAngularVendorTask = config.angularDirectory ? buildAngularVendor(state.resolvedPaths.buildDir, sourceDirs).then(async (specs) => {
|
|
49516
49582
|
const vendorDir = resolve34(state.resolvedPaths.buildDir, "angular", "vendor");
|
|
49517
49583
|
await loadVendorFiles(state.assetStore, vendorDir, "angular");
|
|
49584
|
+
globalThis.__angularVendorSpecifiers = specs;
|
|
49518
49585
|
return true;
|
|
49519
49586
|
}) : undefined;
|
|
49520
49587
|
const buildSvelteVendorTask = config.svelteDirectory ? buildSvelteVendor(state.resolvedPaths.buildDir).then(async () => {
|
|
@@ -50855,7 +50922,7 @@ var resolveNotFoundConventionPath = (framework) => getMap()[framework]?.defaults
|
|
|
50855
50922
|
var setConventions = (map) => {
|
|
50856
50923
|
Reflect.set(globalThis, CONVENTIONS_KEY, map);
|
|
50857
50924
|
};
|
|
50858
|
-
var isDev = () =>
|
|
50925
|
+
var isDev = () => false;
|
|
50859
50926
|
var buildErrorProps = (error) => {
|
|
50860
50927
|
const message = error instanceof Error ? error.message : String(error);
|
|
50861
50928
|
const stack = isDev() && error instanceof Error ? error.stack : undefined;
|
|
@@ -51029,14 +51096,21 @@ var NOT_FOUND_PRIORITY = [
|
|
|
51029
51096
|
"angular"
|
|
51030
51097
|
];
|
|
51031
51098
|
var renderFirstNotFound = async () => {
|
|
51032
|
-
|
|
51033
|
-
|
|
51034
|
-
|
|
51099
|
+
const renderNext = async (frameworks2) => {
|
|
51100
|
+
const [framework, ...remaining] = frameworks2;
|
|
51101
|
+
if (!framework) {
|
|
51102
|
+
return null;
|
|
51103
|
+
}
|
|
51104
|
+
if (!getMap()[framework]?.defaults?.notFound) {
|
|
51105
|
+
return renderNext(remaining);
|
|
51106
|
+
}
|
|
51035
51107
|
const response = await renderConventionNotFound(framework);
|
|
51036
|
-
if (response)
|
|
51108
|
+
if (response) {
|
|
51037
51109
|
return response;
|
|
51038
|
-
|
|
51039
|
-
|
|
51110
|
+
}
|
|
51111
|
+
return renderNext(remaining);
|
|
51112
|
+
};
|
|
51113
|
+
return renderNext(NOT_FOUND_PRIORITY);
|
|
51040
51114
|
};
|
|
51041
51115
|
|
|
51042
51116
|
// src/core/prepare.ts
|
|
@@ -51064,10 +51138,10 @@ var buildPrewarmDirs = (config) => {
|
|
|
51064
51138
|
return dirs;
|
|
51065
51139
|
};
|
|
51066
51140
|
var collectPrewarmFiles = async (prewarmDirs) => {
|
|
51067
|
-
const { Glob:
|
|
51141
|
+
const { Glob: Glob10 } = await Promise.resolve(globalThis.Bun);
|
|
51068
51142
|
const files = [];
|
|
51069
51143
|
for (const { dir, pattern } of prewarmDirs) {
|
|
51070
|
-
const glob = new
|
|
51144
|
+
const glob = new Glob10(pattern);
|
|
51071
51145
|
const matches = [
|
|
51072
51146
|
...glob.scanSync({ absolute: true, cwd: resolve37(dir) })
|
|
51073
51147
|
];
|
|
@@ -51311,7 +51385,9 @@ var prepare = async (configOrPath) => {
|
|
|
51311
51385
|
const age = Date.now() - renderedAt;
|
|
51312
51386
|
if (revalidateMs > 0 && renderedAt > 0 && age > revalidateMs) {
|
|
51313
51387
|
rerendering.add(url.pathname);
|
|
51314
|
-
rerenderRoute2(url.pathname, port, prerenderDir).catch(() => {
|
|
51388
|
+
rerenderRoute2(url.pathname, port, prerenderDir).catch(() => {
|
|
51389
|
+
return;
|
|
51390
|
+
}).finally(() => rerendering.delete(url.pathname));
|
|
51315
51391
|
}
|
|
51316
51392
|
return new Response(Bun.file(filePath), {
|
|
51317
51393
|
headers: { "content-type": "text/html; charset=utf-8" }
|
|
@@ -51525,7 +51601,7 @@ var networking = (app) => app.listen({
|
|
|
51525
51601
|
}
|
|
51526
51602
|
const buildDuration = globalThis.__hmrBuildDuration ?? Number(env4.ABSOLUTE_BUILD_DURATION || 0);
|
|
51527
51603
|
const readyDuration = process.uptime() * MILLISECONDS_IN_A_SECOND;
|
|
51528
|
-
const
|
|
51604
|
+
const version = globalThis.__absoluteVersion || env4.ABSOLUTE_VERSION || "";
|
|
51529
51605
|
startupBanner({
|
|
51530
51606
|
buildDuration,
|
|
51531
51607
|
host,
|
|
@@ -51533,7 +51609,7 @@ var networking = (app) => app.listen({
|
|
|
51533
51609
|
port,
|
|
51534
51610
|
protocol,
|
|
51535
51611
|
readyDuration,
|
|
51536
|
-
version
|
|
51612
|
+
version
|
|
51537
51613
|
});
|
|
51538
51614
|
});
|
|
51539
51615
|
// src/plugins/pageRouter.ts
|
|
@@ -57957,5 +58033,5 @@ export {
|
|
|
57957
58033
|
ANGULAR_INIT_TIMEOUT_MS
|
|
57958
58034
|
};
|
|
57959
58035
|
|
|
57960
|
-
//# debugId=
|
|
58036
|
+
//# debugId=1C663D87BEAFDA4164756E2164756E21
|
|
57961
58037
|
//# sourceMappingURL=index.js.map
|