@absolutejs/absolute 0.19.0-beta.706 → 0.19.0-beta.708
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 +1 -19
- package/dist/angular/browser.js.map +3 -3
- package/dist/angular/components/constants.js +78 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +58 -0
- package/dist/angular/components/core/streamingSlotRegistry.js +114 -0
- package/dist/angular/components/defer-slot-payload.js +6 -0
- package/dist/angular/components/defer-slot-templates.directive.js +44 -0
- package/dist/angular/components/defer-slot.component.js +149 -0
- package/dist/angular/components/image.component.js +202 -0
- package/dist/angular/components/index.js +4 -0
- package/dist/angular/components/stream-slot.component.js +103 -0
- package/dist/angular/index.js +91 -36
- package/dist/angular/index.js.map +6 -6
- package/dist/angular/server.js +91 -36
- package/dist/angular/server.js.map +6 -6
- package/dist/build.js +242 -162
- package/dist/build.js.map +12 -12
- package/dist/cli/index.js +214 -142
- package/dist/client/index.js +86 -31
- package/dist/client/index.js.map +4 -4
- package/dist/core/streamingSlotRegistrar.js +1 -19
- package/dist/core/streamingSlotRegistrar.js.map +2 -2
- package/dist/core/streamingSlotRegistry.js +1 -19
- package/dist/core/streamingSlotRegistry.js.map +2 -2
- package/dist/dev/client/constants.ts +26 -0
- package/dist/dev/client/cssUtils.ts +307 -0
- package/dist/dev/client/domDiff.ts +226 -0
- package/dist/dev/client/domState.ts +421 -0
- package/dist/dev/client/domTracker.ts +61 -0
- package/dist/dev/client/errorOverlay.ts +184 -0
- package/dist/dev/client/frameworkDetect.ts +63 -0
- package/dist/dev/client/handlers/angular.ts +578 -0
- package/dist/dev/client/handlers/angularRuntime.ts +231 -0
- package/dist/dev/client/handlers/html.ts +364 -0
- package/dist/dev/client/handlers/htmx.ts +278 -0
- package/dist/dev/client/handlers/react.ts +108 -0
- package/dist/dev/client/handlers/rebuild.ts +153 -0
- package/dist/dev/client/handlers/svelte.ts +334 -0
- package/dist/dev/client/handlers/vue.ts +292 -0
- package/dist/dev/client/headPatch.ts +233 -0
- package/dist/dev/client/hmrClient.ts +273 -0
- package/dist/dev/client/hmrState.ts +14 -0
- package/dist/dev/client/moduleVersions.ts +62 -0
- package/dist/dev/client/reactRefreshSetup.ts +31 -0
- package/dist/index.js +282 -187
- package/dist/index.js.map +15 -15
- package/dist/islands/browser.js +1 -19
- package/dist/islands/browser.js.map +2 -2
- package/dist/islands/index.js +80 -26
- package/dist/islands/index.js.map +5 -5
- package/dist/react/browser.js +7 -25
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/browser/index.js +101 -101
- package/dist/react/components/index.js +104 -122
- package/dist/react/components/index.js.map +3 -3
- package/dist/react/hooks/index.js +1 -19
- package/dist/react/hooks/index.js.map +2 -2
- package/dist/react/index.js +101 -46
- package/dist/react/index.js.map +6 -6
- package/dist/react/jsxDevRuntimeCompat.js +1 -19
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/server.js +13 -30
- package/dist/react/server.js.map +4 -4
- package/dist/src/angular/components/constants.d.ts +75 -0
- package/dist/src/angular/components/defer-slot-templates.directive.d.ts +7 -0
- package/dist/src/angular/components/defer-slot.component.d.ts +5 -2
- package/dist/src/angular/components/image.component.d.ts +5 -2
- package/dist/src/angular/components/index.d.ts +4 -4
- package/dist/src/angular/components/stream-slot.component.d.ts +3 -0
- package/dist/src/client/streamSwap.d.ts +0 -10
- package/dist/src/constants.d.ts +1 -0
- package/dist/src/dev/rebuildTrigger.d.ts +1 -1
- package/dist/src/svelte/renderToPipeableStream.d.ts +2 -2
- package/dist/src/svelte/renderToReadableStream.d.ts +2 -2
- package/dist/src/svelte/renderToString.d.ts +2 -2
- package/dist/src/vue/components/Image.d.ts +3 -3
- package/dist/svelte/browser.js +1 -19
- package/dist/svelte/browser.js.map +2 -2
- package/dist/svelte/components/AwaitSlot.svelte +39 -0
- package/dist/svelte/components/AwaitSlot.svelte.d.ts +2 -0
- package/dist/svelte/components/Head.svelte +144 -0
- package/dist/svelte/components/Head.svelte.d.ts +2 -0
- package/dist/svelte/components/Image.svelte +164 -0
- package/dist/svelte/components/Image.svelte.d.ts +5 -0
- package/dist/svelte/components/Island.svelte +71 -0
- package/dist/svelte/components/Island.svelte.d.ts +5 -0
- package/dist/svelte/components/JsonLd.svelte +21 -0
- package/dist/svelte/components/JsonLd.svelte.d.ts +2 -0
- package/dist/svelte/components/StreamSlot.svelte +41 -0
- package/dist/svelte/components/StreamSlot.svelte.d.ts +2 -0
- package/dist/svelte/index.js +93 -37
- package/dist/svelte/index.js.map +7 -7
- package/dist/svelte/server.js +16 -32
- package/dist/svelte/server.js.map +5 -5
- package/dist/types/globals.d.ts +130 -0
- package/dist/vue/browser.js +1 -19
- package/dist/vue/browser.js.map +2 -2
- package/dist/vue/components/Image.js +1 -19
- package/dist/vue/components/Image.js.map +3 -3
- package/dist/vue/components/index.js +1 -19
- package/dist/vue/components/index.js.map +3 -3
- package/dist/vue/index.js +91 -36
- package/dist/vue/index.js.map +7 -7
- package/dist/vue/server.js +13 -30
- package/dist/vue/server.js.map +4 -4
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -3,7 +3,6 @@ var __create = Object.create;
|
|
|
3
3
|
var __getProtoOf = Object.getPrototypeOf;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
7
|
function __accessProp(key) {
|
|
9
8
|
return this[key];
|
|
@@ -30,23 +29,6 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
30
29
|
cache.set(mod, to);
|
|
31
30
|
return to;
|
|
32
31
|
};
|
|
33
|
-
var __toCommonJS = (from) => {
|
|
34
|
-
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
35
|
-
if (entry)
|
|
36
|
-
return entry;
|
|
37
|
-
entry = __defProp({}, "__esModule", { value: true });
|
|
38
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
39
|
-
for (var key of __getOwnPropNames(from))
|
|
40
|
-
if (!__hasOwnProp.call(entry, key))
|
|
41
|
-
__defProp(entry, key, {
|
|
42
|
-
get: __accessProp.bind(from, key),
|
|
43
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
__moduleCache.set(from, entry);
|
|
47
|
-
return entry;
|
|
48
|
-
};
|
|
49
|
-
var __moduleCache;
|
|
50
32
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
51
33
|
var __returnValue = (v) => v;
|
|
52
34
|
function __exportSetter(name, newValue) {
|
|
@@ -79,7 +61,7 @@ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
|
79
61
|
var __require = import.meta.require;
|
|
80
62
|
|
|
81
63
|
// 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, 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;
|
|
64
|
+
var ANGULAR_INIT_TIMEOUT_MS = 500, ANSI_ESCAPE_CODE = 27, 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
65
|
var init_constants = __esm(() => {
|
|
84
66
|
MILLISECONDS_IN_A_MINUTE = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE;
|
|
85
67
|
MILLISECONDS_IN_A_DAY = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE * MINUTES_IN_AN_HOUR * HOURS_IN_DAY;
|
|
@@ -1037,14 +1019,15 @@ var init_htmlScriptHMRPlugin = __esm(() => {
|
|
|
1037
1019
|
|
|
1038
1020
|
// src/client/streamSwap.ts
|
|
1039
1021
|
var streamSwapRuntime = () => {
|
|
1022
|
+
const absoluteWindow = window;
|
|
1040
1023
|
const SLOT_PATCH_EVENT = "absolutejs:slot-patch";
|
|
1041
|
-
if (
|
|
1024
|
+
if (absoluteWindow.__ABS_SLOT_RUNTIME__ === true)
|
|
1042
1025
|
return;
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
const consumers =
|
|
1047
|
-
const pending =
|
|
1026
|
+
absoluteWindow.__ABS_SLOT_RUNTIME__ = true;
|
|
1027
|
+
absoluteWindow.__ABS_SLOT_CONSUMERS__ = absoluteWindow.__ABS_SLOT_CONSUMERS__ ?? {};
|
|
1028
|
+
absoluteWindow.__ABS_SLOT_PENDING__ = absoluteWindow.__ABS_SLOT_PENDING__ ?? {};
|
|
1029
|
+
const consumers = absoluteWindow.__ABS_SLOT_CONSUMERS__;
|
|
1030
|
+
const pending = absoluteWindow.__ABS_SLOT_PENDING__;
|
|
1048
1031
|
const isObjectRecord = (value) => Boolean(value) && typeof value === "object";
|
|
1049
1032
|
const isPatchedPendingEntry = (value) => {
|
|
1050
1033
|
if (!isObjectRecord(value))
|
|
@@ -1052,7 +1035,7 @@ var streamSwapRuntime = () => {
|
|
|
1052
1035
|
return value.domPatched === true && "payload" in value;
|
|
1053
1036
|
};
|
|
1054
1037
|
const unwrapPendingPayload = (value) => isPatchedPendingEntry(value) ? value.payload : value;
|
|
1055
|
-
const canApplyImmediately = () =>
|
|
1038
|
+
const canApplyImmediately = () => absoluteWindow.__ABS_SLOT_HYDRATION_PENDING__ !== true;
|
|
1056
1039
|
const isAngularDeferPayload = (payload) => {
|
|
1057
1040
|
if (!isObjectRecord(payload))
|
|
1058
1041
|
return false;
|
|
@@ -1122,8 +1105,8 @@ var streamSwapRuntime = () => {
|
|
|
1122
1105
|
apply(id, pending[id] ?? "");
|
|
1123
1106
|
}
|
|
1124
1107
|
};
|
|
1125
|
-
|
|
1126
|
-
|
|
1108
|
+
absoluteWindow.__ABS_SLOT_FLUSH__ = flush;
|
|
1109
|
+
absoluteWindow.__ABS_SLOT_ENQUEUE__ = (id, payload) => {
|
|
1127
1110
|
apply(id, payload);
|
|
1128
1111
|
};
|
|
1129
1112
|
if (typeof MutationObserver === "function") {
|
|
@@ -1789,6 +1772,65 @@ var ensureHead = (doc) => {
|
|
|
1789
1772
|
}
|
|
1790
1773
|
const head = doc.createElement("head");
|
|
1791
1774
|
doc.documentElement.insertBefore(head, doc.documentElement.firstChild);
|
|
1775
|
+
}, SSR_LAYOUT_RECT, layoutPatchApplied = false, patchElementLayout = (doc) => {
|
|
1776
|
+
if (layoutPatchApplied || !doc) {
|
|
1777
|
+
return;
|
|
1778
|
+
}
|
|
1779
|
+
let element;
|
|
1780
|
+
try {
|
|
1781
|
+
element = doc.createElement("div");
|
|
1782
|
+
} catch {
|
|
1783
|
+
return;
|
|
1784
|
+
}
|
|
1785
|
+
const proto = Object.getPrototypeOf(element);
|
|
1786
|
+
if (!proto)
|
|
1787
|
+
return;
|
|
1788
|
+
const define = (name, value) => {
|
|
1789
|
+
if (typeof proto[name] !== "function") {
|
|
1790
|
+
Object.defineProperty(proto, name, {
|
|
1791
|
+
configurable: true,
|
|
1792
|
+
value,
|
|
1793
|
+
writable: true
|
|
1794
|
+
});
|
|
1795
|
+
}
|
|
1796
|
+
};
|
|
1797
|
+
define("getBoundingClientRect", function() {
|
|
1798
|
+
return { ...SSR_LAYOUT_RECT };
|
|
1799
|
+
});
|
|
1800
|
+
define("getClientRects", function() {
|
|
1801
|
+
return [];
|
|
1802
|
+
});
|
|
1803
|
+
define("scrollTo", function() {});
|
|
1804
|
+
define("scrollBy", function() {});
|
|
1805
|
+
define("scrollIntoView", function() {});
|
|
1806
|
+
define("focus", function() {});
|
|
1807
|
+
define("blur", function() {});
|
|
1808
|
+
const numericProps = [
|
|
1809
|
+
"clientWidth",
|
|
1810
|
+
"clientHeight",
|
|
1811
|
+
"clientLeft",
|
|
1812
|
+
"clientTop",
|
|
1813
|
+
"offsetWidth",
|
|
1814
|
+
"offsetHeight",
|
|
1815
|
+
"offsetLeft",
|
|
1816
|
+
"offsetTop",
|
|
1817
|
+
"scrollWidth",
|
|
1818
|
+
"scrollHeight",
|
|
1819
|
+
"scrollLeft",
|
|
1820
|
+
"scrollTop"
|
|
1821
|
+
];
|
|
1822
|
+
for (const prop of numericProps) {
|
|
1823
|
+
const desc = Object.getOwnPropertyDescriptor(proto, prop);
|
|
1824
|
+
if (desc)
|
|
1825
|
+
continue;
|
|
1826
|
+
Object.defineProperty(proto, prop, {
|
|
1827
|
+
configurable: true,
|
|
1828
|
+
get() {
|
|
1829
|
+
return 0;
|
|
1830
|
+
}
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1833
|
+
layoutPatchApplied = true;
|
|
1792
1834
|
}, applyPatches = async () => {
|
|
1793
1835
|
const { \u{275}DominoAdapter } = await import(resolveAngularPackage("@angular/platform-server"));
|
|
1794
1836
|
if (!\u{275}DominoAdapter?.prototype) {
|
|
@@ -1807,18 +1849,33 @@ var ensureHead = (doc) => {
|
|
|
1807
1849
|
proto.createHtmlDocument = function() {
|
|
1808
1850
|
const doc = origCreateHtmlDocument.call(this);
|
|
1809
1851
|
ensureHead(doc);
|
|
1852
|
+
patchElementLayout(doc);
|
|
1810
1853
|
return doc;
|
|
1811
1854
|
};
|
|
1812
1855
|
const origGetDefaultDocument = proto.getDefaultDocument;
|
|
1813
1856
|
proto.getDefaultDocument = function() {
|
|
1814
1857
|
const doc = origGetDefaultDocument.call(this);
|
|
1815
1858
|
ensureHead(doc);
|
|
1859
|
+
patchElementLayout(doc);
|
|
1816
1860
|
return doc;
|
|
1817
1861
|
};
|
|
1818
1862
|
return true;
|
|
1819
1863
|
};
|
|
1820
1864
|
var init_angularPatch = __esm(() => {
|
|
1821
1865
|
init_resolveAngularPackage();
|
|
1866
|
+
SSR_LAYOUT_RECT = Object.freeze({
|
|
1867
|
+
bottom: 0,
|
|
1868
|
+
height: 0,
|
|
1869
|
+
left: 0,
|
|
1870
|
+
right: 0,
|
|
1871
|
+
top: 0,
|
|
1872
|
+
width: 0,
|
|
1873
|
+
x: 0,
|
|
1874
|
+
y: 0,
|
|
1875
|
+
toJSON() {
|
|
1876
|
+
return this;
|
|
1877
|
+
}
|
|
1878
|
+
});
|
|
1822
1879
|
});
|
|
1823
1880
|
|
|
1824
1881
|
// src/angular/angularDeps.ts
|
|
@@ -1840,9 +1897,7 @@ var initDominoAdapter = (platformServer) => {
|
|
|
1840
1897
|
import(resolveAngularPackage("@angular/common")),
|
|
1841
1898
|
import(resolveAngularPackage("@angular/core"))
|
|
1842
1899
|
]);
|
|
1843
|
-
if (
|
|
1844
|
-
core.enableProdMode();
|
|
1845
|
-
}
|
|
1900
|
+
if (false) {}
|
|
1846
1901
|
initDominoAdapter(platformServer);
|
|
1847
1902
|
return {
|
|
1848
1903
|
APP_BASE_HREF: common.APP_BASE_HREF,
|
|
@@ -2236,9 +2291,9 @@ var renderAngularIslandToHtmlInternal = async (component, props, islandId) => {
|
|
|
2236
2291
|
}, renderAngularIslandToHtml2, renderReactIslandToHtml = (component, props) => import("react").then(({ createElement }) => import("react-dom/server").then(({ renderToStaticMarkup }) => renderToStaticMarkup(createElement(component, props)))), renderSvelteIslandToHtml = (component, props) => import("svelte/server").then(({ render }) => {
|
|
2237
2292
|
const { body } = render(component, { props });
|
|
2238
2293
|
return body;
|
|
2239
|
-
}), renderVueIslandToHtml = (component, props) => import("vue").then(({ createSSRApp, h }) => {
|
|
2294
|
+
}), renderVueIslandToHtml = (component, props) => import("vue").then(({ createSSRApp, h: createVueVNode }) => {
|
|
2240
2295
|
const app = createSSRApp({
|
|
2241
|
-
render: () =>
|
|
2296
|
+
render: () => createVueVNode(component, props)
|
|
2242
2297
|
});
|
|
2243
2298
|
return import("vue/server-renderer").then(({ renderToString }) => renderToString(app));
|
|
2244
2299
|
});
|
|
@@ -2604,7 +2659,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
2604
2659
|
const config = normalizePostcssModule(loaded);
|
|
2605
2660
|
const value = typeof config === "function" ? await config({
|
|
2606
2661
|
cwd: process.cwd(),
|
|
2607
|
-
env: "
|
|
2662
|
+
env: "development"
|
|
2608
2663
|
}) : config;
|
|
2609
2664
|
return normalizePostcssModule(value) ?? {};
|
|
2610
2665
|
}, normalizePostcssPlugins = (plugins) => {
|
|
@@ -13013,14 +13068,7 @@ function asColor(value2, modifier, theme2) {
|
|
|
13013
13068
|
return withAlpha(value2, `${modifier.value}%`);
|
|
13014
13069
|
}
|
|
13015
13070
|
function resolveThemeColor(candidate, theme2, themeKeys) {
|
|
13016
|
-
if (
|
|
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
|
-
}
|
|
13071
|
+
if (false) {}
|
|
13024
13072
|
let value2 = null;
|
|
13025
13073
|
switch (candidate.value.value) {
|
|
13026
13074
|
case "inherit": {
|
|
@@ -21699,7 +21747,9 @@ ${output}`);
|
|
|
21699
21747
|
}
|
|
21700
21748
|
async function compileAst(input, opts = {}) {
|
|
21701
21749
|
let { designSystem, ast, sources, root, utilitiesNode, features, inlineCandidates } = await parseCss(input, opts);
|
|
21702
|
-
if (
|
|
21750
|
+
if (true) {
|
|
21751
|
+
ast.unshift(comment(`! tailwindcss v${version} | MIT License | https://tailwindcss.com `));
|
|
21752
|
+
}
|
|
21703
21753
|
function onInvalidCandidate(candidate) {
|
|
21704
21754
|
designSystem.invalidCandidates.add(candidate);
|
|
21705
21755
|
}
|
|
@@ -22555,7 +22605,7 @@ function isPotentialCssRootFile(id) {
|
|
|
22555
22605
|
function idToPath(id) {
|
|
22556
22606
|
return path.resolve(id.replace(/\?.*$/, ""));
|
|
22557
22607
|
}
|
|
22558
|
-
var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind", __filename = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind/index.mjs", __create2, __defProp2,
|
|
22608
|
+
var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind", __filename = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind/index.mjs", __create2, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name), __typeError = (msg) => {
|
|
22559
22609
|
throw TypeError(msg);
|
|
22560
22610
|
}, __require2, __esm2 = (fn, res) => function __init() {
|
|
22561
22611
|
return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
|
|
@@ -22568,10 +22618,10 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
|
|
|
22568
22618
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
22569
22619
|
for (let key of __getOwnPropNames2(from))
|
|
22570
22620
|
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
22571
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc =
|
|
22621
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22572
22622
|
}
|
|
22573
22623
|
return to;
|
|
22574
|
-
}, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, mod)),
|
|
22624
|
+
}, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, mod)), __toCommonJS = (mod) => __copyProps(__defProp2({}, "__esModule", { value: true }), mod), __using = (stack, value2, async) => {
|
|
22575
22625
|
if (value2 != null) {
|
|
22576
22626
|
if (typeof value2 !== "object" && typeof value2 !== "function")
|
|
22577
22627
|
__typeError("Object expected");
|
|
@@ -22617,7 +22667,7 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
|
|
|
22617
22667
|
throw error;
|
|
22618
22668
|
};
|
|
22619
22669
|
return next();
|
|
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 {
|
|
22670
|
+
}, 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, version = "4.1.14", 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 {
|
|
22621
22671
|
constructor(values = /* @__PURE__ */ new Map, keyframes = /* @__PURE__ */ new Set([])) {
|
|
22622
22672
|
this.values = values;
|
|
22623
22673
|
this.keyframes = keyframes;
|
|
@@ -23158,7 +23208,7 @@ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/bun-plugin-tailwind"
|
|
|
23158
23208
|
var init_bun_plugin_tailwind = __esm(() => {
|
|
23159
23209
|
__create2 = Object.create;
|
|
23160
23210
|
__defProp2 = Object.defineProperty;
|
|
23161
|
-
|
|
23211
|
+
__getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
23162
23212
|
__getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
23163
23213
|
__getProtoOf2 = Object.getPrototypeOf;
|
|
23164
23214
|
__hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
@@ -31256,7 +31306,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
31256
31306
|
return false;
|
|
31257
31307
|
let i2 = dist_i(true);
|
|
31258
31308
|
return delete i2[t3], true;
|
|
31259
|
-
}, ownKeys: () => Object.keys(dist_i(true)) }), to = "u" > typeof process && process.env && "
|
|
31309
|
+
}, ownKeys: () => Object.keys(dist_i(true)) }), to = "u" > typeof process && process.env && "development" || "", 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() {
|
|
31260
31310
|
if (globalThis.process?.env)
|
|
31261
31311
|
for (let e10 of th) {
|
|
31262
31312
|
let t3 = e10[1] || e10[0];
|
|
@@ -38079,9 +38129,9 @@ It schedules the call as a new task in the event loop.`);
|
|
|
38079
38129
|
});
|
|
38080
38130
|
require_runtime = __commonJS2({
|
|
38081
38131
|
"../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.5/node_modules/@napi-rs/wasm-runtime/runtime.cjs"(exports, module) {
|
|
38082
|
-
var { MessageHandler: MessageHandler2, instantiateNapiModuleSync: instantiateNapiModuleSync2, instantiateNapiModule: instantiateNapiModule2 } = (init_emnapi_core_esm_bundler(),
|
|
38083
|
-
var { getDefaultContext: getDefaultContext2 } = (init_emnapi_esm_bundler(),
|
|
38084
|
-
var { WASI: WASI2 } = (init_wasm_util_esm_bundler(),
|
|
38132
|
+
var { MessageHandler: MessageHandler2, instantiateNapiModuleSync: instantiateNapiModuleSync2, instantiateNapiModule: instantiateNapiModule2 } = (init_emnapi_core_esm_bundler(), __toCommonJS(emnapi_core_esm_bundler_exports));
|
|
38133
|
+
var { getDefaultContext: getDefaultContext2 } = (init_emnapi_esm_bundler(), __toCommonJS(emnapi_esm_bundler_exports));
|
|
38134
|
+
var { WASI: WASI2 } = (init_wasm_util_esm_bundler(), __toCommonJS(wasm_util_esm_bundler_exports));
|
|
38085
38135
|
var { createFsProxy, createOnMessage } = require_fs_proxy();
|
|
38086
38136
|
module.exports = {
|
|
38087
38137
|
MessageHandler: MessageHandler2,
|
|
@@ -41558,9 +41608,9 @@ var checkCandidate = (candidate) => {
|
|
|
41558
41608
|
let { dir } = import.meta;
|
|
41559
41609
|
while (dir !== parse4(dir).root) {
|
|
41560
41610
|
const candidate = join10(dir, "package.json");
|
|
41561
|
-
const
|
|
41562
|
-
if (
|
|
41563
|
-
return
|
|
41611
|
+
const version4 = checkCandidate(candidate);
|
|
41612
|
+
if (version4) {
|
|
41613
|
+
return version4;
|
|
41564
41614
|
}
|
|
41565
41615
|
dir = dirname6(dir);
|
|
41566
41616
|
}
|
|
@@ -42104,7 +42154,8 @@ var SVELTE_PAGE_ROOT_ID = "__absolute_svelte_root__", renderToReadableStream = a
|
|
|
42104
42154
|
} = {}) => {
|
|
42105
42155
|
try {
|
|
42106
42156
|
const { render } = await import("svelte/server");
|
|
42107
|
-
const
|
|
42157
|
+
const renderComponent = render;
|
|
42158
|
+
const rendered = typeof props === "undefined" ? await renderComponent(component) : await renderComponent(component, { props });
|
|
42108
42159
|
const { head, body } = rendered;
|
|
42109
42160
|
const nonceAttr = nonce ? ` nonce="${nonce}"` : "";
|
|
42110
42161
|
const scripts = (bootstrapScriptContent ? `<script${nonceAttr}>${escapeScriptContent(bootstrapScriptContent)}</script>` : "") + bootstrapScripts.map((src) => `<script${nonceAttr} src="${src}"></script>`).join("") + bootstrapModules.map((src) => `<script${nonceAttr} type="module" src="${src}"></script>`).join("");
|
|
@@ -46005,14 +46056,14 @@ var globalVersionCounter = 0, createModuleVersionTracker = () => new Map, getNex
|
|
|
46005
46056
|
}, incrementModuleVersions = (versions, modulePaths) => {
|
|
46006
46057
|
const updated = new Map;
|
|
46007
46058
|
for (const path2 of modulePaths) {
|
|
46008
|
-
const
|
|
46009
|
-
updated.set(path2,
|
|
46059
|
+
const version4 = incrementModuleVersion(versions, path2);
|
|
46060
|
+
updated.set(path2, version4);
|
|
46010
46061
|
}
|
|
46011
46062
|
return updated;
|
|
46012
46063
|
}, serializeModuleVersions = (versions) => {
|
|
46013
46064
|
const serialized = {};
|
|
46014
|
-
for (const [path2,
|
|
46015
|
-
serialized[path2] =
|
|
46065
|
+
for (const [path2, version4] of versions.entries()) {
|
|
46066
|
+
serialized[path2] = version4;
|
|
46016
46067
|
}
|
|
46017
46068
|
return serialized;
|
|
46018
46069
|
};
|
|
@@ -46483,6 +46534,68 @@ var init_fileHashTracker = __esm(() => {
|
|
|
46483
46534
|
init_constants();
|
|
46484
46535
|
});
|
|
46485
46536
|
|
|
46537
|
+
// src/dev/transformCache.ts
|
|
46538
|
+
var exports_transformCache = {};
|
|
46539
|
+
__export(exports_transformCache, {
|
|
46540
|
+
setTransformed: () => setTransformed,
|
|
46541
|
+
invalidateAll: () => invalidateAll,
|
|
46542
|
+
invalidate: () => invalidate,
|
|
46543
|
+
getTransformed: () => getTransformed,
|
|
46544
|
+
getInvalidationVersion: () => getInvalidationVersion,
|
|
46545
|
+
findNearestComponent: () => findNearestComponent
|
|
46546
|
+
});
|
|
46547
|
+
var cache, importers, getTransformed = (filePath) => cache.get(filePath)?.content, setTransformed = (filePath, content, mtime, imports) => {
|
|
46548
|
+
const resolvedImports = imports ?? [];
|
|
46549
|
+
cache.set(filePath, { content, imports: resolvedImports, mtime });
|
|
46550
|
+
for (const imp of resolvedImports) {
|
|
46551
|
+
const set2 = importers.get(imp) ?? new Set;
|
|
46552
|
+
importers.set(imp, set2);
|
|
46553
|
+
set2.add(filePath);
|
|
46554
|
+
}
|
|
46555
|
+
}, invalidationVersions, isComponentFile = (filePath) => filePath.endsWith(".tsx") || filePath.endsWith(".jsx"), processParents = (parents, queue) => {
|
|
46556
|
+
const component = [...parents].find(isComponentFile);
|
|
46557
|
+
if (component !== undefined)
|
|
46558
|
+
return component;
|
|
46559
|
+
for (const parent of parents)
|
|
46560
|
+
queue.push(parent);
|
|
46561
|
+
return;
|
|
46562
|
+
}, findNearestComponent = (filePath) => {
|
|
46563
|
+
const visited = new Set;
|
|
46564
|
+
const queue = [filePath];
|
|
46565
|
+
while (queue.length > 0) {
|
|
46566
|
+
const current = queue.shift();
|
|
46567
|
+
if (!current)
|
|
46568
|
+
break;
|
|
46569
|
+
if (visited.has(current))
|
|
46570
|
+
continue;
|
|
46571
|
+
visited.add(current);
|
|
46572
|
+
const parents = importers.get(current);
|
|
46573
|
+
if (!parents)
|
|
46574
|
+
continue;
|
|
46575
|
+
const found = processParents(parents, queue);
|
|
46576
|
+
if (found !== undefined)
|
|
46577
|
+
return found;
|
|
46578
|
+
}
|
|
46579
|
+
return;
|
|
46580
|
+
}, getInvalidationVersion = (filePath) => invalidationVersions.get(filePath) ?? 0, invalidate = (filePath) => {
|
|
46581
|
+
cache.delete(filePath);
|
|
46582
|
+
invalidationVersions.set(filePath, (invalidationVersions.get(filePath) ?? 0) + 1);
|
|
46583
|
+
for (const parent of importers.get(filePath) ?? []) {
|
|
46584
|
+
cache.delete(parent);
|
|
46585
|
+
}
|
|
46586
|
+
}, invalidateAll = () => {
|
|
46587
|
+
cache.clear();
|
|
46588
|
+
importers.clear();
|
|
46589
|
+
};
|
|
46590
|
+
var init_transformCache = __esm(() => {
|
|
46591
|
+
cache = globalThis.__transformCache ?? new Map;
|
|
46592
|
+
globalThis.__transformCache = cache;
|
|
46593
|
+
importers = globalThis.__transformImporters ?? new Map;
|
|
46594
|
+
globalThis.__transformImporters = importers;
|
|
46595
|
+
invalidationVersions = globalThis.__transformInvalidationVersions ?? new Map;
|
|
46596
|
+
globalThis.__transformInvalidationVersions = invalidationVersions;
|
|
46597
|
+
});
|
|
46598
|
+
|
|
46486
46599
|
// src/dev/reactComponentClassifier.ts
|
|
46487
46600
|
import { resolve as resolve26 } from "path";
|
|
46488
46601
|
var classifyComponent = (filePath) => {
|
|
@@ -46726,68 +46839,6 @@ var init_ssrCache = __esm(() => {
|
|
|
46726
46839
|
dirtyFrameworks = new Set;
|
|
46727
46840
|
});
|
|
46728
46841
|
|
|
46729
|
-
// src/dev/transformCache.ts
|
|
46730
|
-
var exports_transformCache = {};
|
|
46731
|
-
__export(exports_transformCache, {
|
|
46732
|
-
setTransformed: () => setTransformed,
|
|
46733
|
-
invalidateAll: () => invalidateAll,
|
|
46734
|
-
invalidate: () => invalidate,
|
|
46735
|
-
getTransformed: () => getTransformed,
|
|
46736
|
-
getInvalidationVersion: () => getInvalidationVersion,
|
|
46737
|
-
findNearestComponent: () => findNearestComponent
|
|
46738
|
-
});
|
|
46739
|
-
var cache, importers, getTransformed = (filePath) => cache.get(filePath)?.content, setTransformed = (filePath, content, mtime, imports) => {
|
|
46740
|
-
const resolvedImports = imports ?? [];
|
|
46741
|
-
cache.set(filePath, { content, imports: resolvedImports, mtime });
|
|
46742
|
-
for (const imp of resolvedImports) {
|
|
46743
|
-
const set2 = importers.get(imp) ?? new Set;
|
|
46744
|
-
importers.set(imp, set2);
|
|
46745
|
-
set2.add(filePath);
|
|
46746
|
-
}
|
|
46747
|
-
}, invalidationVersions, isComponentFile = (filePath) => filePath.endsWith(".tsx") || filePath.endsWith(".jsx"), processParents = (parents, queue) => {
|
|
46748
|
-
const component = [...parents].find(isComponentFile);
|
|
46749
|
-
if (component !== undefined)
|
|
46750
|
-
return component;
|
|
46751
|
-
for (const parent of parents)
|
|
46752
|
-
queue.push(parent);
|
|
46753
|
-
return;
|
|
46754
|
-
}, findNearestComponent = (filePath) => {
|
|
46755
|
-
const visited = new Set;
|
|
46756
|
-
const queue = [filePath];
|
|
46757
|
-
while (queue.length > 0) {
|
|
46758
|
-
const current = queue.shift();
|
|
46759
|
-
if (!current)
|
|
46760
|
-
break;
|
|
46761
|
-
if (visited.has(current))
|
|
46762
|
-
continue;
|
|
46763
|
-
visited.add(current);
|
|
46764
|
-
const parents = importers.get(current);
|
|
46765
|
-
if (!parents)
|
|
46766
|
-
continue;
|
|
46767
|
-
const found = processParents(parents, queue);
|
|
46768
|
-
if (found !== undefined)
|
|
46769
|
-
return found;
|
|
46770
|
-
}
|
|
46771
|
-
return;
|
|
46772
|
-
}, getInvalidationVersion = (filePath) => invalidationVersions.get(filePath) ?? 0, invalidate = (filePath) => {
|
|
46773
|
-
cache.delete(filePath);
|
|
46774
|
-
invalidationVersions.set(filePath, (invalidationVersions.get(filePath) ?? 0) + 1);
|
|
46775
|
-
for (const parent of importers.get(filePath) ?? []) {
|
|
46776
|
-
cache.delete(parent);
|
|
46777
|
-
}
|
|
46778
|
-
}, invalidateAll = () => {
|
|
46779
|
-
cache.clear();
|
|
46780
|
-
importers.clear();
|
|
46781
|
-
};
|
|
46782
|
-
var init_transformCache = __esm(() => {
|
|
46783
|
-
cache = globalThis.__transformCache ?? new Map;
|
|
46784
|
-
globalThis.__transformCache = cache;
|
|
46785
|
-
importers = globalThis.__transformImporters ?? new Map;
|
|
46786
|
-
globalThis.__transformImporters = importers;
|
|
46787
|
-
invalidationVersions = globalThis.__transformInvalidationVersions ?? new Map;
|
|
46788
|
-
globalThis.__transformInvalidationVersions = invalidationVersions;
|
|
46789
|
-
});
|
|
46790
|
-
|
|
46791
46842
|
// src/dev/moduleServer.ts
|
|
46792
46843
|
var exports_moduleServer = {};
|
|
46793
46844
|
__export(exports_moduleServer, {
|
|
@@ -47045,7 +47096,15 @@ ${code}`;
|
|
|
47045
47096
|
const endPos = findFunctionEnd(source, insertPos);
|
|
47046
47097
|
const funcBody = source.slice(insertPos, endPos);
|
|
47047
47098
|
return `${source.slice(0, insertPos)}__hmr_wrap(${JSON.stringify(name)}, ${funcBody})${source.slice(endPos)}`;
|
|
47048
|
-
}, svelteExternalCss, svelteCompiler = null, vueCompiler = null,
|
|
47099
|
+
}, svelteExternalCss, svelteCompiler = null, vueCompiler = null, getLoadedSvelteCompiler = () => {
|
|
47100
|
+
if (!svelteCompiler)
|
|
47101
|
+
throw new Error("Svelte compiler is not loaded.");
|
|
47102
|
+
return svelteCompiler;
|
|
47103
|
+
}, getLoadedVueCompiler = () => {
|
|
47104
|
+
if (!vueCompiler)
|
|
47105
|
+
throw new Error("Vue compiler is not loaded.");
|
|
47106
|
+
return vueCompiler;
|
|
47107
|
+
}, warmCompilers = async (frameworks2) => {
|
|
47049
47108
|
const [svelteModule, vueModule] = await Promise.all([
|
|
47050
47109
|
frameworks2.svelte ? import("svelte/compiler") : undefined,
|
|
47051
47110
|
frameworks2.vue ? import("@vue/compiler-sfc") : undefined
|
|
@@ -47073,13 +47132,15 @@ ${code}`;
|
|
|
47073
47132
|
source: descriptor.template.content
|
|
47074
47133
|
});
|
|
47075
47134
|
}, compileSvelteModule = (raw, filePath) => {
|
|
47135
|
+
const compiler = getLoadedSvelteCompiler();
|
|
47076
47136
|
const source = tsTranspiler2.transformSync(raw);
|
|
47077
|
-
return
|
|
47137
|
+
return compiler.compileModule(source, {
|
|
47078
47138
|
dev: true,
|
|
47079
47139
|
filename: filePath
|
|
47080
47140
|
}).js.code;
|
|
47081
47141
|
}, compileSvelteComponent = (raw, filePath, projectRoot, enableAsync = false) => {
|
|
47082
|
-
const
|
|
47142
|
+
const compiler = getLoadedSvelteCompiler();
|
|
47143
|
+
const compiled = compiler.compile(raw, {
|
|
47083
47144
|
css: "external",
|
|
47084
47145
|
dev: true,
|
|
47085
47146
|
experimental: {
|
|
@@ -47115,11 +47176,12 @@ ${code}`;
|
|
|
47115
47176
|
const code = isModule ? compileSvelteModule(source, filePath) : compileSvelteComponent(source, filePath, projectRoot, enableAsync);
|
|
47116
47177
|
return rewriteImports2(code, filePath, projectRoot, rewriter);
|
|
47117
47178
|
}, compileVueTemplate = (descriptor, compiledScript, filePath, componentId) => {
|
|
47179
|
+
const compiler = getLoadedVueCompiler();
|
|
47118
47180
|
const scriptContent = compiledScript.content;
|
|
47119
47181
|
if (!descriptor.template)
|
|
47120
47182
|
return scriptContent;
|
|
47121
47183
|
const isScoped = descriptor.styles.some((style) => style.scoped);
|
|
47122
|
-
const templateResult =
|
|
47184
|
+
const templateResult = compiler.compileTemplate({
|
|
47123
47185
|
compilerOptions: {
|
|
47124
47186
|
bindingMetadata: compiledScript.bindings,
|
|
47125
47187
|
prefixIdentifiers: true
|
|
@@ -47140,10 +47202,11 @@ export default __script__;`;
|
|
|
47140
47202
|
}, compileVueStyles = async (descriptor, filePath, componentId, code, stylePreprocessors) => {
|
|
47141
47203
|
if (descriptor.styles.length === 0)
|
|
47142
47204
|
return code;
|
|
47143
|
-
const
|
|
47205
|
+
const compiler = getLoadedVueCompiler();
|
|
47206
|
+
const cssCode = (await Promise.all(descriptor.styles.map(async (style) => compiler.compileStyle({
|
|
47144
47207
|
filename: filePath,
|
|
47145
47208
|
id: `data-v-${componentId}`,
|
|
47146
|
-
scoped: style.scoped,
|
|
47209
|
+
scoped: Boolean(style.scoped),
|
|
47147
47210
|
source: style.lang ? await compileStyleSource(filePath, style.content, style.lang, stylePreprocessors) : style.content,
|
|
47148
47211
|
trim: true
|
|
47149
47212
|
}).code))).join(`
|
|
@@ -47172,7 +47235,11 @@ ${code}`;
|
|
|
47172
47235
|
id: componentId,
|
|
47173
47236
|
inlineTemplate: false
|
|
47174
47237
|
});
|
|
47175
|
-
|
|
47238
|
+
const compiledSfcScript = {
|
|
47239
|
+
bindings: compiledScript.bindings ?? {},
|
|
47240
|
+
content: compiledScript.content
|
|
47241
|
+
};
|
|
47242
|
+
let code = compileVueTemplate(descriptor, compiledSfcScript, filePath, componentId);
|
|
47176
47243
|
code = await compileVueStyles(descriptor, filePath, componentId, code, stylePreprocessors);
|
|
47177
47244
|
code = tsTranspiler2.transformSync(code);
|
|
47178
47245
|
code = injectVueHmr(code, filePath, projectRoot, vueDir);
|
|
@@ -47550,7 +47617,7 @@ var init_simpleHTMXHMR = () => {};
|
|
|
47550
47617
|
// src/dev/rebuildTrigger.ts
|
|
47551
47618
|
import { existsSync as existsSync22 } from "fs";
|
|
47552
47619
|
import { basename as basename10, dirname as dirname14, relative as relative12, resolve as resolve31 } from "path";
|
|
47553
|
-
var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTransformConfig = (config) => createStyleTransformConfig(config.stylePreprocessors, config.postcss), parseErrorLocationFromMessage = (msg) => {
|
|
47620
|
+
var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequentially = (items, action) => items.reduce((chain, item) => chain.then(() => action(item)), Promise.resolve()), getStyleTransformConfig = (config) => createStyleTransformConfig(config.stylePreprocessors, config.postcss), parseErrorLocationFromMessage = (msg) => {
|
|
47554
47621
|
const pathLineCol = msg.match(/^([^\s:]+):(\d+)(?::(\d+))?/);
|
|
47555
47622
|
if (pathLineCol) {
|
|
47556
47623
|
const [, file3, lineStr, colStr] = pathLineCol;
|
|
@@ -47720,19 +47787,31 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
47720
47787
|
return allFiles;
|
|
47721
47788
|
}, areAllQueuedFilesStable = async (fileChangeQueue) => {
|
|
47722
47789
|
const allFiles = collectAllQueuedFiles(fileChangeQueue);
|
|
47723
|
-
|
|
47790
|
+
const checkFile = async (files) => {
|
|
47791
|
+
const [file3, ...remaining] = files;
|
|
47792
|
+
if (!file3) {
|
|
47793
|
+
return true;
|
|
47794
|
+
}
|
|
47724
47795
|
const stable = await isFileStable(file3);
|
|
47725
|
-
if (!stable)
|
|
47796
|
+
if (!stable) {
|
|
47726
47797
|
return false;
|
|
47727
|
-
|
|
47728
|
-
|
|
47798
|
+
}
|
|
47799
|
+
return checkFile(remaining);
|
|
47800
|
+
};
|
|
47801
|
+
return checkFile(allFiles);
|
|
47729
47802
|
}, waitForStableWrites = async (state) => {
|
|
47730
|
-
|
|
47803
|
+
const waitRound = async (round) => {
|
|
47804
|
+
if (round >= STABILITY_CHECK_ROUNDS) {
|
|
47805
|
+
return;
|
|
47806
|
+
}
|
|
47731
47807
|
const stable = await areAllQueuedFilesStable(state.fileChangeQueue);
|
|
47732
|
-
if (stable)
|
|
47733
|
-
|
|
47734
|
-
|
|
47735
|
-
|
|
47808
|
+
if (stable) {
|
|
47809
|
+
return;
|
|
47810
|
+
}
|
|
47811
|
+
await waitRound(round + 1);
|
|
47812
|
+
};
|
|
47813
|
+
await waitRound(0);
|
|
47814
|
+
}, queueFileChange = async (state, filePath, config, onRebuildComplete) => {
|
|
47736
47815
|
const framework = detectFramework(filePath, state.resolvedPaths);
|
|
47737
47816
|
if (framework === "ignored") {
|
|
47738
47817
|
return;
|
|
@@ -47742,8 +47821,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
47742
47821
|
return;
|
|
47743
47822
|
}
|
|
47744
47823
|
if (framework === "unknown") {
|
|
47745
|
-
|
|
47746
|
-
invalidate2(resolve31(filePath));
|
|
47824
|
+
invalidate(resolve31(filePath));
|
|
47747
47825
|
const relPath = relative12(process.cwd(), filePath);
|
|
47748
47826
|
logHmrUpdate(relPath);
|
|
47749
47827
|
return;
|
|
@@ -48148,9 +48226,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
48148
48226
|
}
|
|
48149
48227
|
markSsrCacheDirty("svelte");
|
|
48150
48228
|
const serverDuration = Date.now() - startTime;
|
|
48151
|
-
|
|
48152
|
-
await broadcastSvelteModuleUpdate(state, changedFile, svelteFiles, serverDuration);
|
|
48153
|
-
}
|
|
48229
|
+
await runSequentially(svelteFiles, (changedFile) => broadcastSvelteModuleUpdate(state, changedFile, svelteFiles, serverDuration));
|
|
48154
48230
|
onRebuildComplete({
|
|
48155
48231
|
hmrState: state,
|
|
48156
48232
|
manifest: state.manifest
|
|
@@ -48274,9 +48350,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
48274
48350
|
await invalidateNonVueModules(nonVueFiles);
|
|
48275
48351
|
const serverDuration = Date.now() - startTime;
|
|
48276
48352
|
const forceReload = nonVueFiles.length > 0;
|
|
48277
|
-
|
|
48278
|
-
await broadcastVueModuleUpdate(state, changedFile, vueFiles, nonVueFiles, forceReload, serverDuration);
|
|
48279
|
-
}
|
|
48353
|
+
await runSequentially(vueFiles, (changedFile) => broadcastVueModuleUpdate(state, changedFile, vueFiles, nonVueFiles, forceReload, serverDuration));
|
|
48280
48354
|
onRebuildComplete({
|
|
48281
48355
|
hmrState: state,
|
|
48282
48356
|
manifest: state.manifest
|
|
@@ -48458,11 +48532,11 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
48458
48532
|
const outputHtmlPages = computeOutputPagesDir(state, config, "html");
|
|
48459
48533
|
const shouldRefreshAllPages = htmlPageFiles.length === 0 && shouldRefreshFromIslandChange;
|
|
48460
48534
|
const pageFilesToUpdate = shouldRefreshAllPages ? await scanEntryPoints(outputHtmlPages, "*.html") : htmlPageFiles;
|
|
48461
|
-
|
|
48535
|
+
await runSequentially(pageFilesToUpdate, async (pageFile) => {
|
|
48462
48536
|
const htmlPageName = basename10(pageFile);
|
|
48463
48537
|
const builtHtmlPagePath = resolve31(outputHtmlPages, htmlPageName);
|
|
48464
48538
|
await processHtmlPageUpdate(state, pageFile, builtHtmlPagePath, manifest, duration);
|
|
48465
|
-
}
|
|
48539
|
+
});
|
|
48466
48540
|
}, handleVueCssOnlyUpdate = (state, vueCssFiles, manifest, duration) => {
|
|
48467
48541
|
const [cssFile] = vueCssFiles;
|
|
48468
48542
|
if (!cssFile) {
|
|
@@ -48557,9 +48631,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
48557
48631
|
if (isCssOnlyChange && vueCssFiles.length > 0) {
|
|
48558
48632
|
handleVueCssOnlyUpdate(state, vueCssFiles, manifest, duration);
|
|
48559
48633
|
}
|
|
48560
|
-
|
|
48561
|
-
await processVuePageUpdate(state, config, vuePagePath, manifest, duration);
|
|
48562
|
-
}
|
|
48634
|
+
await runSequentially(pagesToUpdate, (vuePagePath) => processVuePageUpdate(state, config, vuePagePath, manifest, duration));
|
|
48563
48635
|
}, handleSvelteCssOnlyUpdate = (state, svelteCssFiles, manifest, duration) => {
|
|
48564
48636
|
const [cssFile] = svelteCssFiles;
|
|
48565
48637
|
if (!cssFile) {
|
|
@@ -48760,11 +48832,11 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
48760
48832
|
const outputHtmxPages = computeOutputPagesDir(state, config, "htmx");
|
|
48761
48833
|
const shouldRefreshAllPages = htmxPageFiles.length === 0 && shouldRefreshFromIslandChange;
|
|
48762
48834
|
const pageFilesToUpdate = shouldRefreshAllPages ? await scanEntryPoints(outputHtmxPages, "*.html") : htmxPageFiles;
|
|
48763
|
-
|
|
48835
|
+
await runSequentially(pageFilesToUpdate, async (htmxPageFile) => {
|
|
48764
48836
|
const htmxPageName = basename10(htmxPageFile);
|
|
48765
48837
|
const builtHtmxPagePath = resolve31(outputHtmxPages, htmxPageName);
|
|
48766
48838
|
await processHtmxPageUpdate(state, htmxPageFile, builtHtmxPagePath, manifest, duration);
|
|
48767
|
-
}
|
|
48839
|
+
});
|
|
48768
48840
|
}, collectUpdatedModulePaths = (allModuleUpdates) => {
|
|
48769
48841
|
const paths = [];
|
|
48770
48842
|
allModuleUpdates.forEach((update) => {
|
|
@@ -48908,11 +48980,18 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
48908
48980
|
const { updateAssetPaths: updateAssetPaths2 } = await Promise.resolve().then(() => (init_updateAssetPaths(), exports_updateAssetPaths));
|
|
48909
48981
|
const handleUpdate = framework === "html" ? (await Promise.resolve().then(() => (init_simpleHTMLHMR(), exports_simpleHTMLHMR))).handleHTMLUpdate : (await Promise.resolve().then(() => (init_simpleHTMXHMR(), exports_simpleHTMXHMR))).handleHTMXUpdate;
|
|
48910
48982
|
const { readFileSync: readFs, writeFileSync: writeFs } = await import("fs");
|
|
48911
|
-
|
|
48983
|
+
const processMarkupFiles = async (files) => {
|
|
48984
|
+
const [markupFile, ...remaining] = files;
|
|
48985
|
+
if (!markupFile) {
|
|
48986
|
+
return;
|
|
48987
|
+
}
|
|
48912
48988
|
const success = await tryProcessMarkupFile(state, markupFile, outputDir, framework, startTime, updateAssetPaths2, handleUpdate, readFs, writeFs);
|
|
48913
|
-
if (!success)
|
|
48914
|
-
|
|
48915
|
-
|
|
48989
|
+
if (!success) {
|
|
48990
|
+
return;
|
|
48991
|
+
}
|
|
48992
|
+
await processMarkupFiles(remaining);
|
|
48993
|
+
};
|
|
48994
|
+
await processMarkupFiles(markupFiles);
|
|
48916
48995
|
}, runHtmlFastPath = async (state, config, filesToRebuild, startTime) => runMarkupFastPath(state, config, filesToRebuild, startTime, "html"), runHtmxFastPath = async (state, config, filesToRebuild, startTime) => runMarkupFastPath(state, config, filesToRebuild, startTime, "htmx"), markHandledFiles = (files, framework, resolvedPaths, handled) => {
|
|
48917
48996
|
files.filter((f) => detectFramework(f, resolvedPaths) === framework).forEach((f) => handled.add(f));
|
|
48918
48997
|
}, runFrameworkFastPaths = async (state, config, affectedFrameworks, files, startTime, onRebuildComplete) => {
|
|
@@ -48939,12 +49018,12 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, getStyleTr
|
|
|
48939
49018
|
handler: handleVueFastPath
|
|
48940
49019
|
}
|
|
48941
49020
|
];
|
|
48942
|
-
|
|
49021
|
+
await runSequentially(fastPaths, async (fastPath) => {
|
|
48943
49022
|
if (!fastPath.directory || !affectedFrameworks.includes(fastPath.framework))
|
|
48944
|
-
|
|
49023
|
+
return;
|
|
48945
49024
|
await fastPath.handler(state, config, files, startTime, onRebuildComplete);
|
|
48946
49025
|
markHandledFiles(files, fastPath.framework, state.resolvedPaths, handled);
|
|
48947
|
-
}
|
|
49026
|
+
});
|
|
48948
49027
|
return files.every((f) => handled.has(f));
|
|
48949
49028
|
}, performFullRebuild = async (state, config, affectedFrameworks, filesToRebuild, startTime, onRebuildComplete) => {
|
|
48950
49029
|
const hasManifest = Object.keys(state.manifest).length > 0;
|
|
@@ -49087,6 +49166,7 @@ var init_rebuildTrigger = __esm(() => {
|
|
|
49087
49166
|
init_dependencyGraph();
|
|
49088
49167
|
init_constants();
|
|
49089
49168
|
init_fileHashTracker();
|
|
49169
|
+
init_transformCache();
|
|
49090
49170
|
init_moduleMapper();
|
|
49091
49171
|
init_telemetryEvent();
|
|
49092
49172
|
init_assetStore();
|
|
@@ -49592,5 +49672,5 @@ export {
|
|
|
49592
49672
|
build
|
|
49593
49673
|
};
|
|
49594
49674
|
|
|
49595
|
-
//# debugId=
|
|
49675
|
+
//# debugId=D6976064B88BE2E464756E2164756E21
|
|
49596
49676
|
//# sourceMappingURL=build.js.map
|