@absolutejs/absolute 0.19.0-beta.704 → 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 +71 -82
- package/dist/angular/index.js.map +10 -10
- package/dist/angular/server.js +70 -81
- package/dist/angular/server.js.map +10 -10
- package/dist/build.js +152 -84
- package/dist/build.js.map +15 -15
- package/dist/cli/index.js +330 -296
- package/dist/client/index.js +7 -4
- package/dist/client/index.js.map +3 -3
- package/dist/index.js +253 -153
- package/dist/index.js.map +24 -24
- package/dist/islands/index.js +9 -6
- package/dist/islands/index.js.map +5 -5
- 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 +77 -88
- package/dist/react/index.js.map +10 -10
- package/dist/react/jsxDevRuntimeCompat.js +1 -6
- package/dist/react/jsxDevRuntimeCompat.js.map +3 -3
- package/dist/react/server.js +57 -71
- package/dist/react/server.js.map +8 -8
- 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/angular/pageHandler.d.ts +6 -1
- package/dist/src/angular/ssrRender.d.ts +1 -1
- package/dist/src/build/buildAngularVendor.d.ts +3 -4
- package/dist/src/constants.d.ts +21 -0
- package/dist/src/core/ssrCache.d.ts +1 -1
- package/dist/src/core/wrapPageHandlerWithStreamingSlots.d.ts +1 -1
- package/dist/src/react/jsxDevRuntimeCompat.d.ts +3 -6
- package/dist/src/react/pageHandler.d.ts +2 -1
- package/dist/src/svelte/pageHandler.d.ts +2 -2
- package/dist/src/utils/defineConfig.d.ts +2 -2
- package/dist/src/utils/imageProcessing.d.ts +1 -1
- package/dist/src/utils/loadConfig.d.ts +38 -2
- package/dist/src/vue/components/Image.d.ts +3 -3
- package/dist/src/vue/components/index.d.ts +1 -1
- package/dist/src/vue/index.d.ts +1 -1
- package/dist/src/vue/pageHandler.d.ts +2 -1
- package/dist/svelte/index.js +52 -58
- package/dist/svelte/index.js.map +10 -10
- package/dist/svelte/server.js +46 -55
- package/dist/svelte/server.js.map +9 -9
- package/dist/vue/components/Image.js +18 -18
- package/dist/vue/components/Image.js.map +3 -3
- package/dist/vue/components/index.js +77 -62
- package/dist/vue/components/index.js.map +5 -5
- package/dist/vue/index.js +137 -142
- package/dist/vue/index.js.map +13 -13
- package/dist/vue/server.js +54 -77
- package/dist/vue/server.js.map +8 -8
- package/package.json +42 -42
- package/dist/angular/components/constants.js +0 -56
- 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 -53
- 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/build.js
CHANGED
|
@@ -79,7 +79,7 @@ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
|
79
79
|
var __require = import.meta.require;
|
|
80
80
|
|
|
81
81
|
// src/constants.ts
|
|
82
|
-
var ANGULAR_INIT_TIMEOUT_MS = 500, ANSI_ESCAPE_LENGTH = 3, ASCII_SPACE = 32, BASE_36_RADIX = 36, BUN_BUILD_WARNING_SUPPRESSION = "wildcard sideEffects are not supported yet", BODY_SLICE_LENGTH = 2000, BYTES_PER_KILOBYTE = 1024, CLI_ARGS_OFFSET = 3, CSS_ERROR_RESOLVE_DELAY_MS = 50, CSS_MAX_CHECK_ATTEMPTS = 10, CSS_MAX_PARSE_TIMEOUT_MS = 500, CSS_SHEET_READY_TIMEOUT_MS = 100, DEFAULT_CHUNK_SIZE = 16384, DEFAULT_DEBOUNCE_MS = 15, DEFAULT_PORT = 3000, DEV_SERVER_RESTART_DEBOUNCE_MS = 100, DOM_UPDATE_DELAY_MS = 50, FILE_PROTOCOL_PREFIX_LENGTH = 7, FOCUS_ID_PREFIX_LENGTH = 3, FOCUS_IDX_PREFIX_LENGTH = 4, FOCUS_NAME_PREFIX_LENGTH = 5, HMR_UPDATE_TIMEOUT_MS = 2000, HOOK_SIGNATURE_LENGTH = 12, EXCLUDE_LAST_OFFSET = -1, HTTP_STATUS_OK = 200, HTTP_STATUS_BAD_REQUEST = 400, HTTP_STATUS_NOT_FOUND = 404, HOURS_IN_DAY = 24, HOURS_IN_HALF_DAY = 12, MAX_ERROR_LENGTH = 200, MAX_RECONNECT_ATTEMPTS = 60, MILLISECONDS_IN_A_SECOND = 1000, MINUTES_IN_AN_HOUR = 60, SECONDS_IN_A_MINUTE = 60, MILLISECONDS_IN_A_MINUTE, MILLISECONDS_IN_A_DAY, OVERLAY_FADE_DURATION_MS = 150, PING_INTERVAL_MS = 30000, RAF_BATCH_COUNT = 3, RANDOM_ID_END_INDEX = 11, REBUILD_BATCH_DELAY_MS = 10, REBUILD_RELOAD_DELAY_MS = 200, RECONNECT_INITIAL_DELAY_MS = 500, RECONNECT_POLL_INTERVAL_MS = 300, REACT_STREAM_SLOT_FAST_DELAY_MS = 5, REACT_STREAM_SLOT_SLOW_DELAY_MS = 20, SIGINT_EXIT_CODE = 130, SIGTERM_EXIT_CODE = 143, SVELTE_CSS_LOAD_TIMEOUT_MS = 500, TIME_PRECISION = 2, TWO_THIRDS, UNFOUND_INDEX = -1, WEBSOCKET_NORMAL_CLOSURE = 1000;
|
|
82
|
+
var ANGULAR_INIT_TIMEOUT_MS = 500, ANSI_ESCAPE_LENGTH = 3, ASCII_SPACE = 32, BASE_36_RADIX = 36, BUN_BUILD_WARNING_SUPPRESSION = "wildcard sideEffects are not supported yet", BODY_SLICE_LENGTH = 2000, BYTES_PER_KILOBYTE = 1024, CLI_ARGS_OFFSET = 3, CSS_ERROR_RESOLVE_DELAY_MS = 50, CSS_MAX_CHECK_ATTEMPTS = 10, CSS_MAX_PARSE_TIMEOUT_MS = 500, CSS_SHEET_READY_TIMEOUT_MS = 100, DEFAULT_CHUNK_SIZE = 16384, DEFAULT_DEBOUNCE_MS = 15, DEFAULT_PORT = 3000, DEV_SERVER_RESTART_DEBOUNCE_MS = 100, DOM_UPDATE_DELAY_MS = 50, FILE_PROTOCOL_PREFIX_LENGTH = 7, FOCUS_ID_PREFIX_LENGTH = 3, FOCUS_IDX_PREFIX_LENGTH = 4, FOCUS_NAME_PREFIX_LENGTH = 5, HMR_UPDATE_TIMEOUT_MS = 2000, HOOK_SIGNATURE_LENGTH = 12, EXCLUDE_LAST_OFFSET = -1, HTTP_STATUS_OK = 200, HTTP_STATUS_BAD_REQUEST = 400, HTTP_STATUS_NOT_FOUND = 404, HOURS_IN_DAY = 24, HOURS_IN_HALF_DAY = 12, MAX_ERROR_LENGTH = 200, MAX_RECONNECT_ATTEMPTS = 60, MILLISECONDS_IN_A_SECOND = 1000, MINUTES_IN_AN_HOUR = 60, SECONDS_IN_A_MINUTE = 60, MILLISECONDS_IN_A_MINUTE, MILLISECONDS_IN_A_DAY, OVERLAY_FADE_DURATION_MS = 150, PING_INTERVAL_MS = 30000, RAF_BATCH_COUNT = 3, RANDOM_ID_END_INDEX = 11, REBUILD_BATCH_DELAY_MS = 10, REBUILD_RELOAD_DELAY_MS = 200, RECONNECT_INITIAL_DELAY_MS = 500, RECONNECT_POLL_INTERVAL_MS = 300, REACT_STREAM_SLOT_FAST_DELAY_MS = 5, REACT_STREAM_SLOT_SLOW_DELAY_MS = 20, SIGINT_EXIT_CODE = 130, SIGTERM_EXIT_CODE = 143, SVELTE_CSS_LOAD_TIMEOUT_MS = 500, TIME_PRECISION = 2, TWO_THIRDS, UNFOUND_INDEX = -1, WEBSOCKET_NORMAL_CLOSURE = 1000, WORKSPACE_COMMAND_ARGS_OFFSET = 3, WORKSPACE_FAILURE_LOG_PRINT_LIMIT = 30, WORKSPACE_FAILURE_RECENT_LOG_LIMIT = 60, WORKSPACE_READY_ATTEMPT_TIMEOUT_MS = 5000, WORKSPACE_READY_PROBE_INTERVAL_MS = 250, WORKSPACE_READY_TIMEOUT_MS = 30000, WORKSPACE_SHUTDOWN_TIMEOUT_MS = 1e4, WORKSPACE_TUI_DEFAULT_HEIGHT = 28, WORKSPACE_TUI_DEFAULT_WIDTH = 100, WORKSPACE_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS = 30, WORKSPACE_TUI_FOOTER_LINE_COUNT = 3, WORKSPACE_TUI_MIN_LOG_HEIGHT = 3, WORKSPACE_TUI_MIN_SERVICE_NAME_WIDTH = 7, WORKSPACE_TUI_MIN_TARGET_WIDTH = 8, WORKSPACE_TUI_MIN_WRAP_WIDTH = 12, WORKSPACE_TUI_PROMPT_CURSOR_OFFSET = 3, WORKSPACE_TUI_RECENT_LOG_LIMIT = 40, WORKSPACE_TUI_RENDER_DEBOUNCE_MS = 16, WORKSPACE_TUI_STATUS_WIDTH = 10, WORKSPACE_TUI_TARGET_PADDING_WIDTH = 6, WORKSPACE_TUI_VISIBILITY_WIDTH = 8;
|
|
83
83
|
var init_constants = __esm(() => {
|
|
84
84
|
MILLISECONDS_IN_A_MINUTE = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE;
|
|
85
85
|
MILLISECONDS_IN_A_DAY = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE * MINUTES_IN_AN_HOUR * HOURS_IN_DAY;
|
|
@@ -1840,7 +1840,9 @@ var initDominoAdapter = (platformServer) => {
|
|
|
1840
1840
|
import(resolveAngularPackage("@angular/common")),
|
|
1841
1841
|
import(resolveAngularPackage("@angular/core"))
|
|
1842
1842
|
]);
|
|
1843
|
-
if (
|
|
1843
|
+
if (true) {
|
|
1844
|
+
core.enableProdMode();
|
|
1845
|
+
}
|
|
1844
1846
|
initDominoAdapter(platformServer);
|
|
1845
1847
|
return {
|
|
1846
1848
|
APP_BASE_HREF: common.APP_BASE_HREF,
|
|
@@ -1965,7 +1967,7 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
|
1965
1967
|
Sanitizer: core.Sanitizer,
|
|
1966
1968
|
SecurityContext: core.SecurityContext
|
|
1967
1969
|
};
|
|
1968
|
-
}, buildProviders = (deps, sanitizer, maybeProps, tokenMap) => {
|
|
1970
|
+
}, buildProviders = (deps, sanitizer, maybeProps, tokenMap, userProviders = []) => {
|
|
1969
1971
|
const providers = [
|
|
1970
1972
|
deps.provideServerRendering(),
|
|
1971
1973
|
deps.provideClientHydration(),
|
|
@@ -1975,7 +1977,8 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
|
1975
1977
|
provide: deps.DomSanitizer,
|
|
1976
1978
|
useValue: sanitizer
|
|
1977
1979
|
},
|
|
1978
|
-
{ provide: deps.Sanitizer, useValue: sanitizer }
|
|
1980
|
+
{ provide: deps.Sanitizer, useValue: sanitizer },
|
|
1981
|
+
...userProviders
|
|
1979
1982
|
];
|
|
1980
1983
|
if (!maybeProps) {
|
|
1981
1984
|
return providers;
|
|
@@ -2601,7 +2604,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
2601
2604
|
const config = normalizePostcssModule(loaded);
|
|
2602
2605
|
const value = typeof config === "function" ? await config({
|
|
2603
2606
|
cwd: process.cwd(),
|
|
2604
|
-
env: "
|
|
2607
|
+
env: "test"
|
|
2605
2608
|
}) : config;
|
|
2606
2609
|
return normalizePostcssModule(value) ?? {};
|
|
2607
2610
|
}, normalizePostcssPlugins = (plugins) => {
|
|
@@ -13010,7 +13013,14 @@ function asColor(value2, modifier, theme2) {
|
|
|
13010
13013
|
return withAlpha(value2, `${modifier.value}%`);
|
|
13011
13014
|
}
|
|
13012
13015
|
function resolveThemeColor(candidate, theme2, themeKeys) {
|
|
13013
|
-
if (
|
|
13016
|
+
if (true) {
|
|
13017
|
+
if (!candidate.value) {
|
|
13018
|
+
throw new Error("resolveThemeColor must be called with a named candidate");
|
|
13019
|
+
}
|
|
13020
|
+
if (candidate.value.kind !== "named") {
|
|
13021
|
+
throw new Error("resolveThemeColor must be called with a named value");
|
|
13022
|
+
}
|
|
13023
|
+
}
|
|
13014
13024
|
let value2 = null;
|
|
13015
13025
|
switch (candidate.value.value) {
|
|
13016
13026
|
case "inherit": {
|
|
@@ -21689,9 +21699,7 @@ ${output}`);
|
|
|
21689
21699
|
}
|
|
21690
21700
|
async function compileAst(input, opts = {}) {
|
|
21691
21701
|
let { designSystem, ast, sources, root, utilitiesNode, features, inlineCandidates } = await parseCss(input, opts);
|
|
21692
|
-
if (
|
|
21693
|
-
ast.unshift(comment(`! tailwindcss v${version} | MIT License | https://tailwindcss.com `));
|
|
21694
|
-
}
|
|
21702
|
+
if (false) {}
|
|
21695
21703
|
function onInvalidCandidate(candidate) {
|
|
21696
21704
|
designSystem.invalidCandidates.add(candidate);
|
|
21697
21705
|
}
|
|
@@ -22609,7 +22617,7 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
|
|
|
22609
22617
|
throw error;
|
|
22610
22618
|
};
|
|
22611
22619
|
return next();
|
|
22612
|
-
}, 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,
|
|
22620
|
+
}, 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 {
|
|
22613
22621
|
constructor(values = /* @__PURE__ */ new Map, keyframes = /* @__PURE__ */ new Set([])) {
|
|
22614
22622
|
this.values = values;
|
|
22615
22623
|
this.keyframes = keyframes;
|
|
@@ -31248,7 +31256,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
31248
31256
|
return false;
|
|
31249
31257
|
let i2 = dist_i(true);
|
|
31250
31258
|
return delete i2[t3], true;
|
|
31251
|
-
}, ownKeys: () => Object.keys(dist_i(true)) }), to = "u" > typeof process && process.env && "
|
|
31259
|
+
}, 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() {
|
|
31252
31260
|
if (globalThis.process?.env)
|
|
31253
31261
|
for (let e10 of th) {
|
|
31254
31262
|
let t3 = e10[1] || e10[0];
|
|
@@ -41295,9 +41303,11 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
|
|
|
41295
41303
|
return actual.startsWith(prefix);
|
|
41296
41304
|
}
|
|
41297
41305
|
return actual === pattern;
|
|
41298
|
-
}, MIME_MAP, callSharp = (sharpRef, input) => {
|
|
41299
|
-
|
|
41300
|
-
|
|
41306
|
+
}, MIME_MAP, isSharpFactory = (value2) => typeof value2 === "function", callSharp = (sharpRef, input) => {
|
|
41307
|
+
if (!isSharpFactory(sharpRef)) {
|
|
41308
|
+
throw new Error("Loaded sharp module is not callable.");
|
|
41309
|
+
}
|
|
41310
|
+
return sharpRef(input);
|
|
41301
41311
|
}, toBuffer = (input) => {
|
|
41302
41312
|
if (Buffer.isBuffer(input))
|
|
41303
41313
|
return input;
|
|
@@ -41548,9 +41558,9 @@ var checkCandidate = (candidate) => {
|
|
|
41548
41558
|
let { dir } = import.meta;
|
|
41549
41559
|
while (dir !== parse4(dir).root) {
|
|
41550
41560
|
const candidate = join10(dir, "package.json");
|
|
41551
|
-
const
|
|
41552
|
-
if (
|
|
41553
|
-
return
|
|
41561
|
+
const version = checkCandidate(candidate);
|
|
41562
|
+
if (version) {
|
|
41563
|
+
return version;
|
|
41554
41564
|
}
|
|
41555
41565
|
dir = dirname6(dir);
|
|
41556
41566
|
}
|
|
@@ -44316,7 +44326,7 @@ var resolveJsxDevRuntimeCompatPath = () => {
|
|
|
44316
44326
|
return paths;
|
|
44317
44327
|
}, generateEntrySource = async (specifier) => {
|
|
44318
44328
|
if (specifier === "react/jsx-dev-runtime") {
|
|
44319
|
-
return `export { Fragment, jsxDEV
|
|
44329
|
+
return `export { Fragment, jsxDEV } from '${jsxDevRuntimeCompatPath}';
|
|
44320
44330
|
`;
|
|
44321
44331
|
}
|
|
44322
44332
|
const mod = await import(specifier);
|
|
@@ -44379,13 +44389,49 @@ __export(exports_buildAngularVendor, {
|
|
|
44379
44389
|
import { mkdirSync as mkdirSync7 } from "fs";
|
|
44380
44390
|
import { join as join17 } from "path";
|
|
44381
44391
|
import { rm as rm6 } from "fs/promises";
|
|
44382
|
-
var {build: bunBuild4 } = globalThis.Bun;
|
|
44383
|
-
var
|
|
44392
|
+
var {build: bunBuild4, Glob: Glob6 } = globalThis.Bun;
|
|
44393
|
+
var REQUIRED_ANGULAR_SPECIFIERS, SERVER_ONLY_ANGULAR_SPECIFIERS, SCAN_SKIP_DIRS, isResolvable2 = (specifier) => {
|
|
44394
|
+
try {
|
|
44395
|
+
Bun.resolveSync(specifier, process.cwd());
|
|
44396
|
+
return true;
|
|
44397
|
+
} catch {
|
|
44398
|
+
return false;
|
|
44399
|
+
}
|
|
44400
|
+
}, isAngularBrowserSpecifier = (spec) => spec.startsWith("@angular/") && !SERVER_ONLY_ANGULAR_SPECIFIERS.has(spec), scanAngularSpecifiers = async (directories) => {
|
|
44401
|
+
const found = new Set;
|
|
44402
|
+
const transpiler4 = new Bun.Transpiler({ loader: "tsx" });
|
|
44403
|
+
const glob = new Glob6("**/*.{ts,tsx,js,jsx}");
|
|
44404
|
+
for (const dir of directories) {
|
|
44405
|
+
try {
|
|
44406
|
+
for await (const file3 of glob.scan({ absolute: true, cwd: dir })) {
|
|
44407
|
+
const rel = file3.slice(dir.length + 1);
|
|
44408
|
+
const [first] = rel.split("/");
|
|
44409
|
+
if (first && SCAN_SKIP_DIRS.has(first))
|
|
44410
|
+
continue;
|
|
44411
|
+
try {
|
|
44412
|
+
const content = await Bun.file(file3).text();
|
|
44413
|
+
for (const imp of transpiler4.scanImports(content)) {
|
|
44414
|
+
if (isAngularBrowserSpecifier(imp.path)) {
|
|
44415
|
+
found.add(imp.path);
|
|
44416
|
+
}
|
|
44417
|
+
}
|
|
44418
|
+
} catch {}
|
|
44419
|
+
}
|
|
44420
|
+
} catch {}
|
|
44421
|
+
}
|
|
44422
|
+
return found;
|
|
44423
|
+
}, toSafeFileName2 = (specifier) => specifier.replace(/^@/, "").replace(/\//g, "_"), resolveAngularSpecifiers = async (directories) => {
|
|
44424
|
+
const discovered = await scanAngularSpecifiers(directories);
|
|
44425
|
+
for (const spec of REQUIRED_ANGULAR_SPECIFIERS)
|
|
44426
|
+
discovered.add(spec);
|
|
44427
|
+
return Array.from(discovered).filter(isResolvable2);
|
|
44428
|
+
}, buildAngularVendor = async (buildDir, directories = []) => {
|
|
44384
44429
|
const vendorDir = join17(buildDir, "angular", "vendor");
|
|
44385
44430
|
mkdirSync7(vendorDir, { recursive: true });
|
|
44386
44431
|
const tmpDir = join17(buildDir, "_angular_vendor_tmp");
|
|
44387
44432
|
mkdirSync7(tmpDir, { recursive: true });
|
|
44388
|
-
const
|
|
44433
|
+
const specifiers = await resolveAngularSpecifiers(directories);
|
|
44434
|
+
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
44389
44435
|
const safeName = toSafeFileName2(specifier);
|
|
44390
44436
|
const entryPath = join17(tmpDir, `${safeName}.ts`);
|
|
44391
44437
|
await Bun.write(entryPath, `export * from '${specifier}';
|
|
@@ -44407,22 +44453,35 @@ var angularSpecifiers, toSafeFileName2 = (specifier) => specifier.replace(/^@/,
|
|
|
44407
44453
|
if (!result.success) {
|
|
44408
44454
|
console.warn("\u26A0\uFE0F Angular vendor build had errors:", result.logs);
|
|
44409
44455
|
}
|
|
44410
|
-
|
|
44456
|
+
return specifiers;
|
|
44457
|
+
}, computeAngularVendorPaths = (specifiers = REQUIRED_ANGULAR_SPECIFIERS) => {
|
|
44411
44458
|
const paths = {};
|
|
44412
|
-
for (const specifier of
|
|
44459
|
+
for (const specifier of specifiers) {
|
|
44413
44460
|
paths[specifier] = `/angular/vendor/${toSafeFileName2(specifier)}.js`;
|
|
44414
44461
|
}
|
|
44415
44462
|
return paths;
|
|
44416
44463
|
};
|
|
44417
44464
|
var init_buildAngularVendor = __esm(() => {
|
|
44418
44465
|
init_angularLinkerPlugin();
|
|
44419
|
-
|
|
44466
|
+
REQUIRED_ANGULAR_SPECIFIERS = [
|
|
44420
44467
|
"@angular/core",
|
|
44421
44468
|
"@angular/compiler",
|
|
44422
44469
|
"@angular/common",
|
|
44423
44470
|
"@angular/common/http",
|
|
44424
44471
|
"@angular/platform-browser"
|
|
44425
44472
|
];
|
|
44473
|
+
SERVER_ONLY_ANGULAR_SPECIFIERS = new Set([
|
|
44474
|
+
"@angular/platform-server",
|
|
44475
|
+
"@angular/ssr",
|
|
44476
|
+
"@angular/compiler-cli"
|
|
44477
|
+
]);
|
|
44478
|
+
SCAN_SKIP_DIRS = new Set([
|
|
44479
|
+
"node_modules",
|
|
44480
|
+
"build",
|
|
44481
|
+
"dist",
|
|
44482
|
+
".absolutejs",
|
|
44483
|
+
"generated"
|
|
44484
|
+
]);
|
|
44426
44485
|
});
|
|
44427
44486
|
|
|
44428
44487
|
// src/build/buildVueVendor.ts
|
|
@@ -44500,14 +44559,14 @@ import { mkdirSync as mkdirSync9 } from "fs";
|
|
|
44500
44559
|
import { join as join19 } from "path";
|
|
44501
44560
|
import { rm as rm8 } from "fs/promises";
|
|
44502
44561
|
var {build: bunBuild6 } = globalThis.Bun;
|
|
44503
|
-
var svelteSpecifiers,
|
|
44562
|
+
var svelteSpecifiers, isResolvable3 = (specifier) => {
|
|
44504
44563
|
try {
|
|
44505
44564
|
__require.resolve(specifier);
|
|
44506
44565
|
return true;
|
|
44507
44566
|
} catch {
|
|
44508
44567
|
return false;
|
|
44509
44568
|
}
|
|
44510
|
-
}, resolveVendorSpecifiers2 = () => svelteSpecifiers.filter(
|
|
44569
|
+
}, resolveVendorSpecifiers2 = () => svelteSpecifiers.filter(isResolvable3), toSafeFileName4 = (specifier) => specifier.replace(/\//g, "_"), buildSvelteVendor = async (buildDir) => {
|
|
44511
44570
|
const specifiers = resolveVendorSpecifiers2();
|
|
44512
44571
|
if (specifiers.length === 0)
|
|
44513
44572
|
return;
|
|
@@ -44603,7 +44662,7 @@ import {
|
|
|
44603
44662
|
} from "fs";
|
|
44604
44663
|
import { basename as basename7, dirname as dirname11, join as join20, relative as relative10, resolve as resolve18 } from "path";
|
|
44605
44664
|
import { cwd, env as env2, exit } from "process";
|
|
44606
|
-
var {build: bunBuild7, Glob:
|
|
44665
|
+
var {build: bunBuild7, Glob: Glob7 } = globalThis.Bun;
|
|
44607
44666
|
var isDev, collectConventionSourceFiles = (entry) => {
|
|
44608
44667
|
if (!entry)
|
|
44609
44668
|
return [];
|
|
@@ -44674,7 +44733,7 @@ var isDev, collectConventionSourceFiles = (entry) => {
|
|
|
44674
44733
|
exit(1);
|
|
44675
44734
|
}, copyHtmxVendor = (htmxDir, htmxDestDir) => {
|
|
44676
44735
|
mkdirSync10(htmxDestDir, { recursive: true });
|
|
44677
|
-
const glob = new
|
|
44736
|
+
const glob = new Glob7("htmx*.min.js");
|
|
44678
44737
|
for (const relPath of glob.scanSync({ cwd: htmxDir })) {
|
|
44679
44738
|
const src = join20(htmxDir, relPath);
|
|
44680
44739
|
const dest = join20(htmxDestDir, "htmx.min.js");
|
|
@@ -44692,15 +44751,19 @@ var isDev, collectConventionSourceFiles = (entry) => {
|
|
|
44692
44751
|
resolve18(import.meta.dir, "..", "..", "package.json"),
|
|
44693
44752
|
resolve18(import.meta.dir, "..", "package.json")
|
|
44694
44753
|
];
|
|
44695
|
-
|
|
44754
|
+
const resolveCandidate = async (remaining) => {
|
|
44755
|
+
const [candidate, ...rest] = remaining;
|
|
44756
|
+
if (!candidate) {
|
|
44757
|
+
return;
|
|
44758
|
+
}
|
|
44696
44759
|
const pkg = await tryReadPackageJson(candidate);
|
|
44697
|
-
if (!pkg)
|
|
44698
|
-
|
|
44699
|
-
|
|
44700
|
-
|
|
44760
|
+
if (!pkg || pkg.name !== "@absolutejs/absolute") {
|
|
44761
|
+
await resolveCandidate(rest);
|
|
44762
|
+
return;
|
|
44763
|
+
}
|
|
44701
44764
|
globalThis.__absoluteVersion = pkg.version;
|
|
44702
|
-
|
|
44703
|
-
|
|
44765
|
+
};
|
|
44766
|
+
await resolveCandidate(candidates);
|
|
44704
44767
|
}, SKIP_DIRS, addWorkerPathIfExists = (file3, relPath, workerPaths) => {
|
|
44705
44768
|
const absPath = resolve18(file3, "..", relPath);
|
|
44706
44769
|
try {
|
|
@@ -44722,7 +44785,7 @@ var isDev, collectConventionSourceFiles = (entry) => {
|
|
|
44722
44785
|
collectWorkerPathsFromContent(content, pattern, file3, workerPaths);
|
|
44723
44786
|
}
|
|
44724
44787
|
}, scanWorkerReferencesInDir = async (dir, patterns, workerPaths) => {
|
|
44725
|
-
const glob = new
|
|
44788
|
+
const glob = new Glob7("**/*.{ts,tsx,js,jsx,svelte,vue}");
|
|
44726
44789
|
for await (const file3 of glob.scan({ absolute: true, cwd: dir })) {
|
|
44727
44790
|
const relToDir = file3.slice(dir.length + 1);
|
|
44728
44791
|
const [firstSegment] = relToDir.split("/");
|
|
@@ -44734,9 +44797,7 @@ var isDev, collectConventionSourceFiles = (entry) => {
|
|
|
44734
44797
|
const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
|
|
44735
44798
|
const resolvePattern = /import\.meta\.resolve\(\s*["'](\.\.?\/[^"']+)["']\s*\)/g;
|
|
44736
44799
|
const workerPaths = new Set;
|
|
44737
|
-
|
|
44738
|
-
await scanWorkerReferencesInDir(dir, [urlPattern, resolvePattern], workerPaths);
|
|
44739
|
-
}
|
|
44800
|
+
await dirs.reduce((chain, dir) => chain.then(() => scanWorkerReferencesInDir(dir, [urlPattern, resolvePattern], workerPaths)), Promise.resolve());
|
|
44740
44801
|
return [...workerPaths];
|
|
44741
44802
|
}, copyDevIndexes = async ({
|
|
44742
44803
|
buildPath,
|
|
@@ -45270,7 +45331,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45270
45331
|
let angularVendorPaths2 = getAngularVendorPaths();
|
|
45271
45332
|
if (!angularVendorPaths2 && hmr && angularDir) {
|
|
45272
45333
|
const { computeAngularVendorPaths: computeAngularVendorPaths2 } = await Promise.resolve().then(() => (init_buildAngularVendor(), exports_buildAngularVendor));
|
|
45273
|
-
angularVendorPaths2 = computeAngularVendorPaths2();
|
|
45334
|
+
angularVendorPaths2 = computeAngularVendorPaths2(globalThis.__angularVendorSpecifiers);
|
|
45274
45335
|
setAngularVendorPaths(angularVendorPaths2);
|
|
45275
45336
|
}
|
|
45276
45337
|
let vueVendorPaths2 = getVueVendorPaths();
|
|
@@ -45348,16 +45409,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45348
45409
|
"svelte/*",
|
|
45349
45410
|
"vue",
|
|
45350
45411
|
"vue/*",
|
|
45351
|
-
"@angular
|
|
45352
|
-
"@angular/core/*",
|
|
45353
|
-
"@angular/common",
|
|
45354
|
-
"@angular/common/*",
|
|
45355
|
-
"@angular/compiler",
|
|
45356
|
-
"@angular/compiler/*",
|
|
45357
|
-
"@angular/platform-browser",
|
|
45358
|
-
"@angular/platform-browser/*",
|
|
45359
|
-
"@angular/platform-server",
|
|
45360
|
-
"@angular/platform-server/*",
|
|
45412
|
+
"@angular/*",
|
|
45361
45413
|
"typescript"
|
|
45362
45414
|
],
|
|
45363
45415
|
format: "esm",
|
|
@@ -45411,9 +45463,9 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45411
45463
|
entrypoints: globalCssEntries,
|
|
45412
45464
|
naming: `[dir]/[name].[hash].[ext]`,
|
|
45413
45465
|
outdir: stylesDir ? join20(buildPath, basename7(stylesDir)) : buildPath,
|
|
45466
|
+
plugins: [stylePreprocessorPlugin2],
|
|
45414
45467
|
root: stylesDir || clientRoot,
|
|
45415
45468
|
target: "browser",
|
|
45416
|
-
plugins: [stylePreprocessorPlugin2],
|
|
45417
45469
|
throw: false
|
|
45418
45470
|
}) : undefined,
|
|
45419
45471
|
vueCssPaths.length > 0 ? bunBuild7({
|
|
@@ -45704,7 +45756,7 @@ var init_build = __esm(() => {
|
|
|
45704
45756
|
|
|
45705
45757
|
// src/dev/dependencyGraph.ts
|
|
45706
45758
|
import { existsSync as existsSync19, readFileSync as readFileSync11 } from "fs";
|
|
45707
|
-
var {Glob:
|
|
45759
|
+
var {Glob: Glob8 } = globalThis.Bun;
|
|
45708
45760
|
import { resolve as resolve19 } from "path";
|
|
45709
45761
|
var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath) => {
|
|
45710
45762
|
const lower = filePath.toLowerCase();
|
|
@@ -45766,7 +45818,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
|
|
|
45766
45818
|
dependencies.forEach(addDependent);
|
|
45767
45819
|
}, IGNORED_SEGMENTS, buildInitialDependencyGraph = (graph, directories) => {
|
|
45768
45820
|
const processedFiles = new Set;
|
|
45769
|
-
const glob = new
|
|
45821
|
+
const glob = new Glob8("**/*.{ts,tsx,js,jsx,vue,svelte,html,htm}");
|
|
45770
45822
|
const resolvedDirs = directories.map((dir) => resolve19(dir)).filter((dir) => existsSync19(dir));
|
|
45771
45823
|
const allFiles = resolvedDirs.flatMap((dir) => Array.from(glob.scanSync({ absolute: true, cwd: dir })));
|
|
45772
45824
|
for (const file3 of allFiles) {
|
|
@@ -45953,14 +46005,14 @@ var globalVersionCounter = 0, createModuleVersionTracker = () => new Map, getNex
|
|
|
45953
46005
|
}, incrementModuleVersions = (versions, modulePaths) => {
|
|
45954
46006
|
const updated = new Map;
|
|
45955
46007
|
for (const path2 of modulePaths) {
|
|
45956
|
-
const
|
|
45957
|
-
updated.set(path2,
|
|
46008
|
+
const version = incrementModuleVersion(versions, path2);
|
|
46009
|
+
updated.set(path2, version);
|
|
45958
46010
|
}
|
|
45959
46011
|
return updated;
|
|
45960
46012
|
}, serializeModuleVersions = (versions) => {
|
|
45961
46013
|
const serialized = {};
|
|
45962
|
-
for (const [path2,
|
|
45963
|
-
serialized[path2] =
|
|
46014
|
+
for (const [path2, version] of versions.entries()) {
|
|
46015
|
+
serialized[path2] = version;
|
|
45964
46016
|
}
|
|
45965
46017
|
return serialized;
|
|
45966
46018
|
};
|
|
@@ -46667,9 +46719,9 @@ var init_webSocket = __esm(() => {
|
|
|
46667
46719
|
});
|
|
46668
46720
|
|
|
46669
46721
|
// src/core/ssrCache.ts
|
|
46670
|
-
var dirtyFrameworks, markSsrCacheDirty = (framework) => {
|
|
46722
|
+
var dirtyFrameworks, isSsrCacheDirty = (framework) => dirtyFrameworks.has(framework), markSsrCacheDirty = (framework) => {
|
|
46671
46723
|
dirtyFrameworks.add(framework);
|
|
46672
|
-
}
|
|
46724
|
+
};
|
|
46673
46725
|
var init_ssrCache = __esm(() => {
|
|
46674
46726
|
dirtyFrameworks = new Set;
|
|
46675
46727
|
});
|
|
@@ -47788,7 +47840,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
47788
47840
|
if (!angVendorPaths) {
|
|
47789
47841
|
const { computeAngularVendorPaths: computeAngularVendorPaths2 } = await Promise.resolve().then(() => (init_buildAngularVendor(), exports_buildAngularVendor));
|
|
47790
47842
|
const { setAngularVendorPaths: setAngularVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
|
|
47791
|
-
angVendorPaths = computeAngularVendorPaths2();
|
|
47843
|
+
angVendorPaths = computeAngularVendorPaths2(globalThis.__angularVendorSpecifiers);
|
|
47792
47844
|
setAngularVendorPaths2(angVendorPaths);
|
|
47793
47845
|
}
|
|
47794
47846
|
const clientResult = await bunBuild8({
|
|
@@ -49076,15 +49128,15 @@ __export(exports_buildDepVendor, {
|
|
|
49076
49128
|
import { mkdirSync as mkdirSync11 } from "fs";
|
|
49077
49129
|
import { join as join22 } from "path";
|
|
49078
49130
|
import { rm as rm9 } from "fs/promises";
|
|
49079
|
-
var {build: bunBuild8, Glob:
|
|
49080
|
-
var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_"),
|
|
49131
|
+
var {build: bunBuild8, Glob: Glob9 } = globalThis.Bun;
|
|
49132
|
+
var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_"), isResolvable4 = (specifier) => {
|
|
49081
49133
|
try {
|
|
49082
49134
|
Bun.resolveSync(specifier, process.cwd());
|
|
49083
49135
|
return true;
|
|
49084
49136
|
} catch {
|
|
49085
49137
|
return false;
|
|
49086
49138
|
}
|
|
49087
|
-
}, isBareSpecifier = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAbsolutePackageSpecifier = (spec) => spec === "@absolutejs/absolute" || spec.startsWith("@absolutejs/absolute/"), FRAMEWORK_SPECIFIERS, isSkippedFile = (file3) => file3.includes("node_modules") || file3.includes("/build/") || file3.includes("/dist/") || file3.includes("/indexes/"), isDepSpecifier = (path2) => isBareSpecifier(path2) && !
|
|
49139
|
+
}, 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 = (file3) => file3.includes("node_modules") || file3.includes("/build/") || file3.includes("/dist/") || file3.includes("/indexes/"), isDepSpecifier = (path2) => isBareSpecifier(path2) && !isFrameworkSpecifier(path2) && !isAbsolutePackageSpecifier(path2), readFileSpecifiers = async (file3, transpiler4) => {
|
|
49088
49140
|
const empty = [];
|
|
49089
49141
|
try {
|
|
49090
49142
|
const content = await Bun.file(file3).text();
|
|
@@ -49094,7 +49146,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49094
49146
|
}
|
|
49095
49147
|
}, scanDirFiles = async (dir) => {
|
|
49096
49148
|
const empty = [];
|
|
49097
|
-
const glob = new
|
|
49149
|
+
const glob = new Glob9("**/*.{ts,tsx,js,jsx}");
|
|
49098
49150
|
try {
|
|
49099
49151
|
const all = await Array.fromAsync(glob.scan({ absolute: true, cwd: dir }));
|
|
49100
49152
|
return all.filter((file3) => !isSkippedFile(file3));
|
|
@@ -49111,7 +49163,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49111
49163
|
const specifiers = new Set;
|
|
49112
49164
|
const transpiler4 = new Bun.Transpiler({ loader: "tsx" });
|
|
49113
49165
|
await Promise.all(directories.map((dir) => collectDirSpecifiers(dir, transpiler4, specifiers)));
|
|
49114
|
-
return Array.from(specifiers).filter(
|
|
49166
|
+
return Array.from(specifiers).filter(isResolvable4);
|
|
49115
49167
|
}, generateEntrySource2 = (specifier) => `export * from '${specifier}';
|
|
49116
49168
|
`, rewriteVendorFiles = async (vendorDir) => {
|
|
49117
49169
|
const { readdirSync: readdirSync2, readFileSync: readFileSync15, writeFileSync: writeFileSync8 } = await import("fs");
|
|
@@ -49147,7 +49199,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49147
49199
|
}));
|
|
49148
49200
|
const result = await bunBuild8({
|
|
49149
49201
|
entrypoints,
|
|
49150
|
-
external:
|
|
49202
|
+
external: FRAMEWORK_EXTERNALS,
|
|
49151
49203
|
format: "esm",
|
|
49152
49204
|
minify: false,
|
|
49153
49205
|
naming: "[name].[ext]",
|
|
@@ -49195,14 +49247,13 @@ var init_buildDepVendor = __esm(() => {
|
|
|
49195
49247
|
"svelte/compiler",
|
|
49196
49248
|
"vue",
|
|
49197
49249
|
"vue/server-renderer",
|
|
49198
|
-
"@vue/compiler-sfc"
|
|
49199
|
-
"@angular/core",
|
|
49200
|
-
"@angular/common",
|
|
49201
|
-
"@angular/compiler",
|
|
49202
|
-
"@angular/platform-browser",
|
|
49203
|
-
"@angular/platform-server",
|
|
49204
|
-
"@angular/ssr"
|
|
49250
|
+
"@vue/compiler-sfc"
|
|
49205
49251
|
]);
|
|
49252
|
+
FRAMEWORK_NAMESPACE_PREFIXES = ["@angular/"];
|
|
49253
|
+
FRAMEWORK_EXTERNALS = [
|
|
49254
|
+
...FRAMEWORK_SPECIFIERS,
|
|
49255
|
+
...FRAMEWORK_NAMESPACE_PREFIXES.map((prefix) => `${prefix}*`)
|
|
49256
|
+
];
|
|
49206
49257
|
});
|
|
49207
49258
|
|
|
49208
49259
|
// src/core/devBuild.ts
|
|
@@ -49284,9 +49335,11 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49284
49335
|
delete target[key];
|
|
49285
49336
|
}
|
|
49286
49337
|
}, REBUILD_POLL_MS = 10, waitForRebuild = async (state) => {
|
|
49287
|
-
|
|
49288
|
-
|
|
49338
|
+
if (!state.isRebuilding) {
|
|
49339
|
+
return;
|
|
49289
49340
|
}
|
|
49341
|
+
await Bun.sleep(REBUILD_POLL_MS);
|
|
49342
|
+
await waitForRebuild(state);
|
|
49290
49343
|
}, rebuildManifest = async (cached) => {
|
|
49291
49344
|
const state = cached.hmrState;
|
|
49292
49345
|
await waitForRebuild(state);
|
|
@@ -49352,12 +49405,25 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49352
49405
|
resolve32(import.meta.dir, "..", "..", "package.json"),
|
|
49353
49406
|
resolve32(import.meta.dir, "..", "package.json")
|
|
49354
49407
|
];
|
|
49355
|
-
|
|
49356
|
-
|
|
49357
|
-
|
|
49358
|
-
|
|
49359
|
-
|
|
49408
|
+
const [candidate, ...remaining] = candidates;
|
|
49409
|
+
if (!candidate) {
|
|
49410
|
+
return;
|
|
49411
|
+
}
|
|
49412
|
+
const found = await tryReadPackageVersion(candidate);
|
|
49413
|
+
if (found) {
|
|
49414
|
+
return;
|
|
49415
|
+
}
|
|
49416
|
+
await resolveAbsoluteVersionFromCandidates(remaining);
|
|
49417
|
+
}, resolveAbsoluteVersionFromCandidates = async (candidates) => {
|
|
49418
|
+
const [candidate, ...remaining] = candidates;
|
|
49419
|
+
if (!candidate) {
|
|
49420
|
+
return;
|
|
49421
|
+
}
|
|
49422
|
+
const found = await tryReadPackageVersion(candidate);
|
|
49423
|
+
if (found) {
|
|
49424
|
+
return;
|
|
49360
49425
|
}
|
|
49426
|
+
await resolveAbsoluteVersionFromCandidates(remaining);
|
|
49361
49427
|
}, loadVendorFiles = async (assetStore, vendorDir, framework) => {
|
|
49362
49428
|
const emptyStringArray = [];
|
|
49363
49429
|
const entries = await readdir4(vendorDir).catch(() => emptyStringArray);
|
|
@@ -49374,9 +49440,10 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49374
49440
|
}
|
|
49375
49441
|
const startupSteps = [];
|
|
49376
49442
|
const recordStep = (label, startedAt) => {
|
|
49443
|
+
const durationMs = performance.now() - startedAt;
|
|
49377
49444
|
startupSteps.push({
|
|
49378
|
-
|
|
49379
|
-
|
|
49445
|
+
durationMs,
|
|
49446
|
+
label
|
|
49380
49447
|
});
|
|
49381
49448
|
};
|
|
49382
49449
|
let stepStartedAt = performance.now();
|
|
@@ -49434,9 +49501,10 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49434
49501
|
}
|
|
49435
49502
|
return true;
|
|
49436
49503
|
}) : undefined;
|
|
49437
|
-
const buildAngularVendorTask = config.angularDirectory ? buildAngularVendor(state.resolvedPaths.buildDir).then(async () => {
|
|
49504
|
+
const buildAngularVendorTask = config.angularDirectory ? buildAngularVendor(state.resolvedPaths.buildDir, sourceDirs).then(async (specs) => {
|
|
49438
49505
|
const vendorDir = resolve32(state.resolvedPaths.buildDir, "angular", "vendor");
|
|
49439
49506
|
await loadVendorFiles(state.assetStore, vendorDir, "angular");
|
|
49507
|
+
globalThis.__angularVendorSpecifiers = specs;
|
|
49440
49508
|
return true;
|
|
49441
49509
|
}) : undefined;
|
|
49442
49510
|
const buildSvelteVendorTask = config.svelteDirectory ? buildSvelteVendor(state.resolvedPaths.buildDir).then(async () => {
|
|
@@ -49524,5 +49592,5 @@ export {
|
|
|
49524
49592
|
build
|
|
49525
49593
|
};
|
|
49526
49594
|
|
|
49527
|
-
//# debugId=
|
|
49595
|
+
//# debugId=D9904D693CFD183B64756E2164756E21
|
|
49528
49596
|
//# sourceMappingURL=build.js.map
|