@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/build.js
CHANGED
|
@@ -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,
|
|
@@ -2602,7 +2604,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
2602
2604
|
const config = normalizePostcssModule(loaded);
|
|
2603
2605
|
const value = typeof config === "function" ? await config({
|
|
2604
2606
|
cwd: process.cwd(),
|
|
2605
|
-
env: "
|
|
2607
|
+
env: "test"
|
|
2606
2608
|
}) : config;
|
|
2607
2609
|
return normalizePostcssModule(value) ?? {};
|
|
2608
2610
|
}, normalizePostcssPlugins = (plugins) => {
|
|
@@ -13011,7 +13013,14 @@ function asColor(value2, modifier, theme2) {
|
|
|
13011
13013
|
return withAlpha(value2, `${modifier.value}%`);
|
|
13012
13014
|
}
|
|
13013
13015
|
function resolveThemeColor(candidate, theme2, themeKeys) {
|
|
13014
|
-
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
|
+
}
|
|
13015
13024
|
let value2 = null;
|
|
13016
13025
|
switch (candidate.value.value) {
|
|
13017
13026
|
case "inherit": {
|
|
@@ -21690,9 +21699,7 @@ ${output}`);
|
|
|
21690
21699
|
}
|
|
21691
21700
|
async function compileAst(input, opts = {}) {
|
|
21692
21701
|
let { designSystem, ast, sources, root, utilitiesNode, features, inlineCandidates } = await parseCss(input, opts);
|
|
21693
|
-
if (
|
|
21694
|
-
ast.unshift(comment(`! tailwindcss v${version} | MIT License | https://tailwindcss.com `));
|
|
21695
|
-
}
|
|
21702
|
+
if (false) {}
|
|
21696
21703
|
function onInvalidCandidate(candidate) {
|
|
21697
21704
|
designSystem.invalidCandidates.add(candidate);
|
|
21698
21705
|
}
|
|
@@ -22610,7 +22617,7 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
|
|
|
22610
22617
|
throw error;
|
|
22611
22618
|
};
|
|
22612
22619
|
return next();
|
|
22613
|
-
}, 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 {
|
|
22614
22621
|
constructor(values = /* @__PURE__ */ new Map, keyframes = /* @__PURE__ */ new Set([])) {
|
|
22615
22622
|
this.values = values;
|
|
22616
22623
|
this.keyframes = keyframes;
|
|
@@ -31249,7 +31256,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
31249
31256
|
return false;
|
|
31250
31257
|
let i2 = dist_i(true);
|
|
31251
31258
|
return delete i2[t3], true;
|
|
31252
|
-
}, 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() {
|
|
31253
31260
|
if (globalThis.process?.env)
|
|
31254
31261
|
for (let e10 of th) {
|
|
31255
31262
|
let t3 = e10[1] || e10[0];
|
|
@@ -41296,9 +41303,11 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
|
|
|
41296
41303
|
return actual.startsWith(prefix);
|
|
41297
41304
|
}
|
|
41298
41305
|
return actual === pattern;
|
|
41299
|
-
}, MIME_MAP, callSharp = (sharpRef, input) => {
|
|
41300
|
-
|
|
41301
|
-
|
|
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);
|
|
41302
41311
|
}, toBuffer = (input) => {
|
|
41303
41312
|
if (Buffer.isBuffer(input))
|
|
41304
41313
|
return input;
|
|
@@ -41549,9 +41558,9 @@ var checkCandidate = (candidate) => {
|
|
|
41549
41558
|
let { dir } = import.meta;
|
|
41550
41559
|
while (dir !== parse4(dir).root) {
|
|
41551
41560
|
const candidate = join10(dir, "package.json");
|
|
41552
|
-
const
|
|
41553
|
-
if (
|
|
41554
|
-
return
|
|
41561
|
+
const version = checkCandidate(candidate);
|
|
41562
|
+
if (version) {
|
|
41563
|
+
return version;
|
|
41555
41564
|
}
|
|
41556
41565
|
dir = dirname6(dir);
|
|
41557
41566
|
}
|
|
@@ -44380,13 +44389,49 @@ __export(exports_buildAngularVendor, {
|
|
|
44380
44389
|
import { mkdirSync as mkdirSync7 } from "fs";
|
|
44381
44390
|
import { join as join17 } from "path";
|
|
44382
44391
|
import { rm as rm6 } from "fs/promises";
|
|
44383
|
-
var {build: bunBuild4 } = globalThis.Bun;
|
|
44384
|
-
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 = []) => {
|
|
44385
44429
|
const vendorDir = join17(buildDir, "angular", "vendor");
|
|
44386
44430
|
mkdirSync7(vendorDir, { recursive: true });
|
|
44387
44431
|
const tmpDir = join17(buildDir, "_angular_vendor_tmp");
|
|
44388
44432
|
mkdirSync7(tmpDir, { recursive: true });
|
|
44389
|
-
const
|
|
44433
|
+
const specifiers = await resolveAngularSpecifiers(directories);
|
|
44434
|
+
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
44390
44435
|
const safeName = toSafeFileName2(specifier);
|
|
44391
44436
|
const entryPath = join17(tmpDir, `${safeName}.ts`);
|
|
44392
44437
|
await Bun.write(entryPath, `export * from '${specifier}';
|
|
@@ -44408,22 +44453,35 @@ var angularSpecifiers, toSafeFileName2 = (specifier) => specifier.replace(/^@/,
|
|
|
44408
44453
|
if (!result.success) {
|
|
44409
44454
|
console.warn("\u26A0\uFE0F Angular vendor build had errors:", result.logs);
|
|
44410
44455
|
}
|
|
44411
|
-
|
|
44456
|
+
return specifiers;
|
|
44457
|
+
}, computeAngularVendorPaths = (specifiers = REQUIRED_ANGULAR_SPECIFIERS) => {
|
|
44412
44458
|
const paths = {};
|
|
44413
|
-
for (const specifier of
|
|
44459
|
+
for (const specifier of specifiers) {
|
|
44414
44460
|
paths[specifier] = `/angular/vendor/${toSafeFileName2(specifier)}.js`;
|
|
44415
44461
|
}
|
|
44416
44462
|
return paths;
|
|
44417
44463
|
};
|
|
44418
44464
|
var init_buildAngularVendor = __esm(() => {
|
|
44419
44465
|
init_angularLinkerPlugin();
|
|
44420
|
-
|
|
44466
|
+
REQUIRED_ANGULAR_SPECIFIERS = [
|
|
44421
44467
|
"@angular/core",
|
|
44422
44468
|
"@angular/compiler",
|
|
44423
44469
|
"@angular/common",
|
|
44424
44470
|
"@angular/common/http",
|
|
44425
44471
|
"@angular/platform-browser"
|
|
44426
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
|
+
]);
|
|
44427
44485
|
});
|
|
44428
44486
|
|
|
44429
44487
|
// src/build/buildVueVendor.ts
|
|
@@ -44501,14 +44559,14 @@ import { mkdirSync as mkdirSync9 } from "fs";
|
|
|
44501
44559
|
import { join as join19 } from "path";
|
|
44502
44560
|
import { rm as rm8 } from "fs/promises";
|
|
44503
44561
|
var {build: bunBuild6 } = globalThis.Bun;
|
|
44504
|
-
var svelteSpecifiers,
|
|
44562
|
+
var svelteSpecifiers, isResolvable3 = (specifier) => {
|
|
44505
44563
|
try {
|
|
44506
44564
|
__require.resolve(specifier);
|
|
44507
44565
|
return true;
|
|
44508
44566
|
} catch {
|
|
44509
44567
|
return false;
|
|
44510
44568
|
}
|
|
44511
|
-
}, resolveVendorSpecifiers2 = () => svelteSpecifiers.filter(
|
|
44569
|
+
}, resolveVendorSpecifiers2 = () => svelteSpecifiers.filter(isResolvable3), toSafeFileName4 = (specifier) => specifier.replace(/\//g, "_"), buildSvelteVendor = async (buildDir) => {
|
|
44512
44570
|
const specifiers = resolveVendorSpecifiers2();
|
|
44513
44571
|
if (specifiers.length === 0)
|
|
44514
44572
|
return;
|
|
@@ -44604,7 +44662,7 @@ import {
|
|
|
44604
44662
|
} from "fs";
|
|
44605
44663
|
import { basename as basename7, dirname as dirname11, join as join20, relative as relative10, resolve as resolve18 } from "path";
|
|
44606
44664
|
import { cwd, env as env2, exit } from "process";
|
|
44607
|
-
var {build: bunBuild7, Glob:
|
|
44665
|
+
var {build: bunBuild7, Glob: Glob7 } = globalThis.Bun;
|
|
44608
44666
|
var isDev, collectConventionSourceFiles = (entry) => {
|
|
44609
44667
|
if (!entry)
|
|
44610
44668
|
return [];
|
|
@@ -44675,7 +44733,7 @@ var isDev, collectConventionSourceFiles = (entry) => {
|
|
|
44675
44733
|
exit(1);
|
|
44676
44734
|
}, copyHtmxVendor = (htmxDir, htmxDestDir) => {
|
|
44677
44735
|
mkdirSync10(htmxDestDir, { recursive: true });
|
|
44678
|
-
const glob = new
|
|
44736
|
+
const glob = new Glob7("htmx*.min.js");
|
|
44679
44737
|
for (const relPath of glob.scanSync({ cwd: htmxDir })) {
|
|
44680
44738
|
const src = join20(htmxDir, relPath);
|
|
44681
44739
|
const dest = join20(htmxDestDir, "htmx.min.js");
|
|
@@ -44693,15 +44751,19 @@ var isDev, collectConventionSourceFiles = (entry) => {
|
|
|
44693
44751
|
resolve18(import.meta.dir, "..", "..", "package.json"),
|
|
44694
44752
|
resolve18(import.meta.dir, "..", "package.json")
|
|
44695
44753
|
];
|
|
44696
|
-
|
|
44754
|
+
const resolveCandidate = async (remaining) => {
|
|
44755
|
+
const [candidate, ...rest] = remaining;
|
|
44756
|
+
if (!candidate) {
|
|
44757
|
+
return;
|
|
44758
|
+
}
|
|
44697
44759
|
const pkg = await tryReadPackageJson(candidate);
|
|
44698
|
-
if (!pkg)
|
|
44699
|
-
|
|
44700
|
-
|
|
44701
|
-
|
|
44760
|
+
if (!pkg || pkg.name !== "@absolutejs/absolute") {
|
|
44761
|
+
await resolveCandidate(rest);
|
|
44762
|
+
return;
|
|
44763
|
+
}
|
|
44702
44764
|
globalThis.__absoluteVersion = pkg.version;
|
|
44703
|
-
|
|
44704
|
-
|
|
44765
|
+
};
|
|
44766
|
+
await resolveCandidate(candidates);
|
|
44705
44767
|
}, SKIP_DIRS, addWorkerPathIfExists = (file3, relPath, workerPaths) => {
|
|
44706
44768
|
const absPath = resolve18(file3, "..", relPath);
|
|
44707
44769
|
try {
|
|
@@ -44723,7 +44785,7 @@ var isDev, collectConventionSourceFiles = (entry) => {
|
|
|
44723
44785
|
collectWorkerPathsFromContent(content, pattern, file3, workerPaths);
|
|
44724
44786
|
}
|
|
44725
44787
|
}, scanWorkerReferencesInDir = async (dir, patterns, workerPaths) => {
|
|
44726
|
-
const glob = new
|
|
44788
|
+
const glob = new Glob7("**/*.{ts,tsx,js,jsx,svelte,vue}");
|
|
44727
44789
|
for await (const file3 of glob.scan({ absolute: true, cwd: dir })) {
|
|
44728
44790
|
const relToDir = file3.slice(dir.length + 1);
|
|
44729
44791
|
const [firstSegment] = relToDir.split("/");
|
|
@@ -44735,9 +44797,7 @@ var isDev, collectConventionSourceFiles = (entry) => {
|
|
|
44735
44797
|
const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
|
|
44736
44798
|
const resolvePattern = /import\.meta\.resolve\(\s*["'](\.\.?\/[^"']+)["']\s*\)/g;
|
|
44737
44799
|
const workerPaths = new Set;
|
|
44738
|
-
|
|
44739
|
-
await scanWorkerReferencesInDir(dir, [urlPattern, resolvePattern], workerPaths);
|
|
44740
|
-
}
|
|
44800
|
+
await dirs.reduce((chain, dir) => chain.then(() => scanWorkerReferencesInDir(dir, [urlPattern, resolvePattern], workerPaths)), Promise.resolve());
|
|
44741
44801
|
return [...workerPaths];
|
|
44742
44802
|
}, copyDevIndexes = async ({
|
|
44743
44803
|
buildPath,
|
|
@@ -45271,7 +45331,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45271
45331
|
let angularVendorPaths2 = getAngularVendorPaths();
|
|
45272
45332
|
if (!angularVendorPaths2 && hmr && angularDir) {
|
|
45273
45333
|
const { computeAngularVendorPaths: computeAngularVendorPaths2 } = await Promise.resolve().then(() => (init_buildAngularVendor(), exports_buildAngularVendor));
|
|
45274
|
-
angularVendorPaths2 = computeAngularVendorPaths2();
|
|
45334
|
+
angularVendorPaths2 = computeAngularVendorPaths2(globalThis.__angularVendorSpecifiers);
|
|
45275
45335
|
setAngularVendorPaths(angularVendorPaths2);
|
|
45276
45336
|
}
|
|
45277
45337
|
let vueVendorPaths2 = getVueVendorPaths();
|
|
@@ -45349,16 +45409,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45349
45409
|
"svelte/*",
|
|
45350
45410
|
"vue",
|
|
45351
45411
|
"vue/*",
|
|
45352
|
-
"@angular
|
|
45353
|
-
"@angular/core/*",
|
|
45354
|
-
"@angular/common",
|
|
45355
|
-
"@angular/common/*",
|
|
45356
|
-
"@angular/compiler",
|
|
45357
|
-
"@angular/compiler/*",
|
|
45358
|
-
"@angular/platform-browser",
|
|
45359
|
-
"@angular/platform-browser/*",
|
|
45360
|
-
"@angular/platform-server",
|
|
45361
|
-
"@angular/platform-server/*",
|
|
45412
|
+
"@angular/*",
|
|
45362
45413
|
"typescript"
|
|
45363
45414
|
],
|
|
45364
45415
|
format: "esm",
|
|
@@ -45412,9 +45463,9 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45412
45463
|
entrypoints: globalCssEntries,
|
|
45413
45464
|
naming: `[dir]/[name].[hash].[ext]`,
|
|
45414
45465
|
outdir: stylesDir ? join20(buildPath, basename7(stylesDir)) : buildPath,
|
|
45466
|
+
plugins: [stylePreprocessorPlugin2],
|
|
45415
45467
|
root: stylesDir || clientRoot,
|
|
45416
45468
|
target: "browser",
|
|
45417
|
-
plugins: [stylePreprocessorPlugin2],
|
|
45418
45469
|
throw: false
|
|
45419
45470
|
}) : undefined,
|
|
45420
45471
|
vueCssPaths.length > 0 ? bunBuild7({
|
|
@@ -45705,7 +45756,7 @@ var init_build = __esm(() => {
|
|
|
45705
45756
|
|
|
45706
45757
|
// src/dev/dependencyGraph.ts
|
|
45707
45758
|
import { existsSync as existsSync19, readFileSync as readFileSync11 } from "fs";
|
|
45708
|
-
var {Glob:
|
|
45759
|
+
var {Glob: Glob8 } = globalThis.Bun;
|
|
45709
45760
|
import { resolve as resolve19 } from "path";
|
|
45710
45761
|
var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath) => {
|
|
45711
45762
|
const lower = filePath.toLowerCase();
|
|
@@ -45767,7 +45818,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
|
|
|
45767
45818
|
dependencies.forEach(addDependent);
|
|
45768
45819
|
}, IGNORED_SEGMENTS, buildInitialDependencyGraph = (graph, directories) => {
|
|
45769
45820
|
const processedFiles = new Set;
|
|
45770
|
-
const glob = new
|
|
45821
|
+
const glob = new Glob8("**/*.{ts,tsx,js,jsx,vue,svelte,html,htm}");
|
|
45771
45822
|
const resolvedDirs = directories.map((dir) => resolve19(dir)).filter((dir) => existsSync19(dir));
|
|
45772
45823
|
const allFiles = resolvedDirs.flatMap((dir) => Array.from(glob.scanSync({ absolute: true, cwd: dir })));
|
|
45773
45824
|
for (const file3 of allFiles) {
|
|
@@ -45954,14 +46005,14 @@ var globalVersionCounter = 0, createModuleVersionTracker = () => new Map, getNex
|
|
|
45954
46005
|
}, incrementModuleVersions = (versions, modulePaths) => {
|
|
45955
46006
|
const updated = new Map;
|
|
45956
46007
|
for (const path2 of modulePaths) {
|
|
45957
|
-
const
|
|
45958
|
-
updated.set(path2,
|
|
46008
|
+
const version = incrementModuleVersion(versions, path2);
|
|
46009
|
+
updated.set(path2, version);
|
|
45959
46010
|
}
|
|
45960
46011
|
return updated;
|
|
45961
46012
|
}, serializeModuleVersions = (versions) => {
|
|
45962
46013
|
const serialized = {};
|
|
45963
|
-
for (const [path2,
|
|
45964
|
-
serialized[path2] =
|
|
46014
|
+
for (const [path2, version] of versions.entries()) {
|
|
46015
|
+
serialized[path2] = version;
|
|
45965
46016
|
}
|
|
45966
46017
|
return serialized;
|
|
45967
46018
|
};
|
|
@@ -47789,7 +47840,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
47789
47840
|
if (!angVendorPaths) {
|
|
47790
47841
|
const { computeAngularVendorPaths: computeAngularVendorPaths2 } = await Promise.resolve().then(() => (init_buildAngularVendor(), exports_buildAngularVendor));
|
|
47791
47842
|
const { setAngularVendorPaths: setAngularVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
|
|
47792
|
-
angVendorPaths = computeAngularVendorPaths2();
|
|
47843
|
+
angVendorPaths = computeAngularVendorPaths2(globalThis.__angularVendorSpecifiers);
|
|
47793
47844
|
setAngularVendorPaths2(angVendorPaths);
|
|
47794
47845
|
}
|
|
47795
47846
|
const clientResult = await bunBuild8({
|
|
@@ -49077,15 +49128,15 @@ __export(exports_buildDepVendor, {
|
|
|
49077
49128
|
import { mkdirSync as mkdirSync11 } from "fs";
|
|
49078
49129
|
import { join as join22 } from "path";
|
|
49079
49130
|
import { rm as rm9 } from "fs/promises";
|
|
49080
|
-
var {build: bunBuild8, Glob:
|
|
49081
|
-
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) => {
|
|
49082
49133
|
try {
|
|
49083
49134
|
Bun.resolveSync(specifier, process.cwd());
|
|
49084
49135
|
return true;
|
|
49085
49136
|
} catch {
|
|
49086
49137
|
return false;
|
|
49087
49138
|
}
|
|
49088
|
-
}, 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) => {
|
|
49089
49140
|
const empty = [];
|
|
49090
49141
|
try {
|
|
49091
49142
|
const content = await Bun.file(file3).text();
|
|
@@ -49095,7 +49146,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49095
49146
|
}
|
|
49096
49147
|
}, scanDirFiles = async (dir) => {
|
|
49097
49148
|
const empty = [];
|
|
49098
|
-
const glob = new
|
|
49149
|
+
const glob = new Glob9("**/*.{ts,tsx,js,jsx}");
|
|
49099
49150
|
try {
|
|
49100
49151
|
const all = await Array.fromAsync(glob.scan({ absolute: true, cwd: dir }));
|
|
49101
49152
|
return all.filter((file3) => !isSkippedFile(file3));
|
|
@@ -49112,7 +49163,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49112
49163
|
const specifiers = new Set;
|
|
49113
49164
|
const transpiler4 = new Bun.Transpiler({ loader: "tsx" });
|
|
49114
49165
|
await Promise.all(directories.map((dir) => collectDirSpecifiers(dir, transpiler4, specifiers)));
|
|
49115
|
-
return Array.from(specifiers).filter(
|
|
49166
|
+
return Array.from(specifiers).filter(isResolvable4);
|
|
49116
49167
|
}, generateEntrySource2 = (specifier) => `export * from '${specifier}';
|
|
49117
49168
|
`, rewriteVendorFiles = async (vendorDir) => {
|
|
49118
49169
|
const { readdirSync: readdirSync2, readFileSync: readFileSync15, writeFileSync: writeFileSync8 } = await import("fs");
|
|
@@ -49148,7 +49199,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49148
49199
|
}));
|
|
49149
49200
|
const result = await bunBuild8({
|
|
49150
49201
|
entrypoints,
|
|
49151
|
-
external:
|
|
49202
|
+
external: FRAMEWORK_EXTERNALS,
|
|
49152
49203
|
format: "esm",
|
|
49153
49204
|
minify: false,
|
|
49154
49205
|
naming: "[name].[ext]",
|
|
@@ -49196,14 +49247,13 @@ var init_buildDepVendor = __esm(() => {
|
|
|
49196
49247
|
"svelte/compiler",
|
|
49197
49248
|
"vue",
|
|
49198
49249
|
"vue/server-renderer",
|
|
49199
|
-
"@vue/compiler-sfc"
|
|
49200
|
-
"@angular/core",
|
|
49201
|
-
"@angular/common",
|
|
49202
|
-
"@angular/compiler",
|
|
49203
|
-
"@angular/platform-browser",
|
|
49204
|
-
"@angular/platform-server",
|
|
49205
|
-
"@angular/ssr"
|
|
49250
|
+
"@vue/compiler-sfc"
|
|
49206
49251
|
]);
|
|
49252
|
+
FRAMEWORK_NAMESPACE_PREFIXES = ["@angular/"];
|
|
49253
|
+
FRAMEWORK_EXTERNALS = [
|
|
49254
|
+
...FRAMEWORK_SPECIFIERS,
|
|
49255
|
+
...FRAMEWORK_NAMESPACE_PREFIXES.map((prefix) => `${prefix}*`)
|
|
49256
|
+
];
|
|
49207
49257
|
});
|
|
49208
49258
|
|
|
49209
49259
|
// src/core/devBuild.ts
|
|
@@ -49285,9 +49335,11 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49285
49335
|
delete target[key];
|
|
49286
49336
|
}
|
|
49287
49337
|
}, REBUILD_POLL_MS = 10, waitForRebuild = async (state) => {
|
|
49288
|
-
|
|
49289
|
-
|
|
49338
|
+
if (!state.isRebuilding) {
|
|
49339
|
+
return;
|
|
49290
49340
|
}
|
|
49341
|
+
await Bun.sleep(REBUILD_POLL_MS);
|
|
49342
|
+
await waitForRebuild(state);
|
|
49291
49343
|
}, rebuildManifest = async (cached) => {
|
|
49292
49344
|
const state = cached.hmrState;
|
|
49293
49345
|
await waitForRebuild(state);
|
|
@@ -49353,12 +49405,25 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49353
49405
|
resolve32(import.meta.dir, "..", "..", "package.json"),
|
|
49354
49406
|
resolve32(import.meta.dir, "..", "package.json")
|
|
49355
49407
|
];
|
|
49356
|
-
|
|
49357
|
-
|
|
49358
|
-
|
|
49359
|
-
|
|
49360
|
-
|
|
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;
|
|
49361
49425
|
}
|
|
49426
|
+
await resolveAbsoluteVersionFromCandidates(remaining);
|
|
49362
49427
|
}, loadVendorFiles = async (assetStore, vendorDir, framework) => {
|
|
49363
49428
|
const emptyStringArray = [];
|
|
49364
49429
|
const entries = await readdir4(vendorDir).catch(() => emptyStringArray);
|
|
@@ -49375,9 +49440,10 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49375
49440
|
}
|
|
49376
49441
|
const startupSteps = [];
|
|
49377
49442
|
const recordStep = (label, startedAt) => {
|
|
49443
|
+
const durationMs = performance.now() - startedAt;
|
|
49378
49444
|
startupSteps.push({
|
|
49379
|
-
|
|
49380
|
-
|
|
49445
|
+
durationMs,
|
|
49446
|
+
label
|
|
49381
49447
|
});
|
|
49382
49448
|
};
|
|
49383
49449
|
let stepStartedAt = performance.now();
|
|
@@ -49435,9 +49501,10 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49435
49501
|
}
|
|
49436
49502
|
return true;
|
|
49437
49503
|
}) : undefined;
|
|
49438
|
-
const buildAngularVendorTask = config.angularDirectory ? buildAngularVendor(state.resolvedPaths.buildDir).then(async () => {
|
|
49504
|
+
const buildAngularVendorTask = config.angularDirectory ? buildAngularVendor(state.resolvedPaths.buildDir, sourceDirs).then(async (specs) => {
|
|
49439
49505
|
const vendorDir = resolve32(state.resolvedPaths.buildDir, "angular", "vendor");
|
|
49440
49506
|
await loadVendorFiles(state.assetStore, vendorDir, "angular");
|
|
49507
|
+
globalThis.__angularVendorSpecifiers = specs;
|
|
49441
49508
|
return true;
|
|
49442
49509
|
}) : undefined;
|
|
49443
49510
|
const buildSvelteVendorTask = config.svelteDirectory ? buildSvelteVendor(state.resolvedPaths.buildDir).then(async () => {
|
|
@@ -49525,5 +49592,5 @@ export {
|
|
|
49525
49592
|
build
|
|
49526
49593
|
};
|
|
49527
49594
|
|
|
49528
|
-
//# debugId=
|
|
49595
|
+
//# debugId=D9904D693CFD183B64756E2164756E21
|
|
49529
49596
|
//# sourceMappingURL=build.js.map
|