@absolutejs/absolute 0.19.0-beta.269 → 0.19.0-beta.270
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/cli/index.js
CHANGED
|
@@ -1076,10 +1076,10 @@ Found ${errorCount} error${suffix}.`;
|
|
|
1076
1076
|
}
|
|
1077
1077
|
const vueTsconfigPath = join7(cacheDir, "tsconfig.vue-check.json");
|
|
1078
1078
|
const exclude = [
|
|
1079
|
-
"
|
|
1080
|
-
"
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1079
|
+
"../**/.absolutejs/**/*",
|
|
1080
|
+
"../**/build/**/*",
|
|
1081
|
+
"../**/dist/**/*",
|
|
1082
|
+
"../**/generated/**/*"
|
|
1083
1083
|
];
|
|
1084
1084
|
return writeFile(vueTsconfigPath, JSON.stringify({
|
|
1085
1085
|
extends: resolve7("tsconfig.json"),
|
|
@@ -1102,10 +1102,10 @@ Found ${errorCount} error${suffix}.`;
|
|
|
1102
1102
|
}
|
|
1103
1103
|
const tscConfigPath = join7(cacheDir, "tsconfig.typecheck.json");
|
|
1104
1104
|
const exclude = [
|
|
1105
|
-
"
|
|
1106
|
-
"
|
|
1107
|
-
"
|
|
1108
|
-
"
|
|
1105
|
+
"../**/.absolutejs/**/*",
|
|
1106
|
+
"../**/build/**/*",
|
|
1107
|
+
"../**/dist/**/*",
|
|
1108
|
+
"../**/generated/**/*"
|
|
1109
1109
|
];
|
|
1110
1110
|
return writeFile(tscConfigPath, JSON.stringify({
|
|
1111
1111
|
extends: resolve7("tsconfig.json"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {} from '../../types/globals';
|
|
2
2
|
/* CSS reload/preload utilities for HMR */
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import type { CSSUpdateResult } from '../../types/client';
|
|
5
5
|
import {
|
|
6
6
|
CSS_ERROR_RESOLVE_DELAY_MS,
|
|
7
7
|
CSS_MAX_CHECK_ATTEMPTS,
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
DOM_UPDATE_DELAY_MS,
|
|
11
11
|
RAF_BATCH_COUNT
|
|
12
12
|
} from './constants';
|
|
13
|
+
import { hmrState } from './hmrState';
|
|
13
14
|
|
|
14
15
|
export const getCSSBaseName = (href: string) => {
|
|
15
16
|
const fileName = href.split('?')[0]?.split('/').pop() || '';
|
|
@@ -14,8 +14,9 @@ import {
|
|
|
14
14
|
import { processCSSLinks, waitForCSSAndUpdate } from '../cssUtils';
|
|
15
15
|
import { patchHeadInPlace } from '../headPatch';
|
|
16
16
|
import { detectCurrentFramework } from '../frameworkDetect';
|
|
17
|
-
import {
|
|
17
|
+
import type { ScriptInfo } from '../../../types/client';
|
|
18
18
|
import { restoreDOMChanges, snapshotDOMChanges } from '../domTracker';
|
|
19
|
+
import { hmrState } from '../hmrState';
|
|
19
20
|
|
|
20
21
|
const parseHTMLMessage = (
|
|
21
22
|
html: string | { body?: string; head?: string } | null | undefined
|
|
@@ -16,9 +16,9 @@ import { patchHeadInPlace } from '../headPatch';
|
|
|
16
16
|
import { detectCurrentFramework } from '../frameworkDetect';
|
|
17
17
|
import {
|
|
18
18
|
type HTMXSavedState,
|
|
19
|
-
type ScriptInfo
|
|
20
|
-
hmrState
|
|
19
|
+
type ScriptInfo
|
|
21
20
|
} from '../../../types/client';
|
|
21
|
+
import { hmrState } from '../hmrState';
|
|
22
22
|
|
|
23
23
|
const parseHTMXMessage = (
|
|
24
24
|
html: string | { body?: string; head?: string } | null | undefined
|
|
@@ -2,7 +2,7 @@ import type {} from '../../types/globals';
|
|
|
2
2
|
/* AbsoluteJS HMR Client - Entry point
|
|
3
3
|
Initializes WebSocket connection, dispatches messages to framework handlers */
|
|
4
4
|
|
|
5
|
-
import { hmrState } from '
|
|
5
|
+
import { hmrState } from './hmrState';
|
|
6
6
|
import {
|
|
7
7
|
HMR_UPDATE_TIMEOUT_MS,
|
|
8
8
|
MAX_RECONNECT_ATTEMPTS,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type {} from '../../types/globals';
|
|
2
|
+
export const hmrState = {
|
|
3
|
+
isConnected: false,
|
|
4
|
+
isFirstHMRUpdate: true,
|
|
5
|
+
isHMRUpdating: false,
|
|
6
|
+
pingInterval: null as ReturnType<typeof setInterval> | null,
|
|
7
|
+
reconnectTimeout: null as ReturnType<typeof setTimeout> | null
|
|
8
|
+
};
|
package/package.json
CHANGED