@absolutejs/absolute 0.19.0-beta.1096 → 0.19.0-beta.1097
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/index.js
CHANGED
|
@@ -36021,6 +36021,32 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
36021
36021
|
}
|
|
36022
36022
|
} catch {}
|
|
36023
36023
|
}
|
|
36024
|
+
}, drainQueueAndRebuild = async (state, config2, onRebuildComplete) => {
|
|
36025
|
+
await waitForStableWrites(state);
|
|
36026
|
+
if (state.isRebuilding) {
|
|
36027
|
+
return;
|
|
36028
|
+
}
|
|
36029
|
+
const userEditedFiles = new Set;
|
|
36030
|
+
state.fileChangeQueue.forEach((filePaths) => {
|
|
36031
|
+
for (const filePath of filePaths) {
|
|
36032
|
+
userEditedFiles.add(resolve41(filePath));
|
|
36033
|
+
}
|
|
36034
|
+
});
|
|
36035
|
+
state.lastUserEditedFiles = userEditedFiles;
|
|
36036
|
+
const filesToProcess = buildFilesToProcess(state);
|
|
36037
|
+
state.fileChangeQueue.clear();
|
|
36038
|
+
if (filesToProcess.size === 0) {
|
|
36039
|
+
return;
|
|
36040
|
+
}
|
|
36041
|
+
const affectedFrameworks = Array.from(filesToProcess.keys());
|
|
36042
|
+
affectedFrameworks.forEach((frameworkKey) => {
|
|
36043
|
+
state.rebuildQueue.add(frameworkKey);
|
|
36044
|
+
});
|
|
36045
|
+
const filesToRebuild = [];
|
|
36046
|
+
filesToProcess.forEach((filePaths) => {
|
|
36047
|
+
filesToRebuild.push(...filePaths);
|
|
36048
|
+
});
|
|
36049
|
+
triggerRebuild(state, config2, onRebuildComplete, filesToRebuild);
|
|
36024
36050
|
}, queueFileChange = async (state, filePath, config2, onRebuildComplete) => {
|
|
36025
36051
|
const framework = detectFramework(filePath, state.resolvedPaths);
|
|
36026
36052
|
if (framework === "ignored") {
|
|
@@ -36134,29 +36160,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
36134
36160
|
clearTimeout(state.rebuildTimeout);
|
|
36135
36161
|
}
|
|
36136
36162
|
const DEBOUNCE_MS = config2.options?.hmr?.debounceMs ?? DEFAULT_DEBOUNCE_MS;
|
|
36137
|
-
state.rebuildTimeout = setTimeout(
|
|
36138
|
-
|
|
36139
|
-
const userEditedFiles = new Set;
|
|
36140
|
-
state.fileChangeQueue.forEach((filePaths) => {
|
|
36141
|
-
for (const filePath2 of filePaths) {
|
|
36142
|
-
userEditedFiles.add(resolve41(filePath2));
|
|
36143
|
-
}
|
|
36144
|
-
});
|
|
36145
|
-
state.lastUserEditedFiles = userEditedFiles;
|
|
36146
|
-
const filesToProcess = buildFilesToProcess(state);
|
|
36147
|
-
state.fileChangeQueue.clear();
|
|
36148
|
-
if (filesToProcess.size === 0) {
|
|
36149
|
-
return;
|
|
36150
|
-
}
|
|
36151
|
-
const affectedFrameworks = Array.from(filesToProcess.keys());
|
|
36152
|
-
affectedFrameworks.forEach((frameworkKey) => {
|
|
36153
|
-
state.rebuildQueue.add(frameworkKey);
|
|
36154
|
-
});
|
|
36155
|
-
const filesToRebuild = [];
|
|
36156
|
-
filesToProcess.forEach((filePaths) => {
|
|
36157
|
-
filesToRebuild.push(...filePaths);
|
|
36158
|
-
});
|
|
36159
|
-
triggerRebuild(state, config2, onRebuildComplete, filesToRebuild);
|
|
36163
|
+
state.rebuildTimeout = setTimeout(() => {
|
|
36164
|
+
drainQueueAndRebuild(state, config2, onRebuildComplete);
|
|
36160
36165
|
}, DEBOUNCE_MS);
|
|
36161
36166
|
}, resolveComponentLookupFile = (componentFile, graph) => {
|
|
36162
36167
|
if (!componentFile.endsWith(".html")) {
|
|
@@ -38048,17 +38053,10 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
38048
38053
|
if (state.fileChangeQueue.size === 0) {
|
|
38049
38054
|
return;
|
|
38050
38055
|
}
|
|
38051
|
-
const pending = Array.from(state.fileChangeQueue.keys());
|
|
38052
|
-
const queuedFiles = [];
|
|
38053
|
-
state.fileChangeQueue.forEach((filePaths) => {
|
|
38054
|
-
queuedFiles.push(...filePaths);
|
|
38055
|
-
});
|
|
38056
|
-
state.fileChangeQueue.clear();
|
|
38057
|
-
pending.forEach((file5) => state.rebuildQueue.add(file5));
|
|
38058
38056
|
if (state.rebuildTimeout)
|
|
38059
38057
|
clearTimeout(state.rebuildTimeout);
|
|
38060
38058
|
state.rebuildTimeout = setTimeout(() => {
|
|
38061
|
-
|
|
38059
|
+
drainQueueAndRebuild(state, config2, onRebuildComplete);
|
|
38062
38060
|
}, REBUILD_BATCH_DELAY_MS);
|
|
38063
38061
|
}, STYLE_FILE_EXT_RE, hasAngularOwnedStyleEdit = async (state, angularDir) => {
|
|
38064
38062
|
const edited = state.lastUserEditedFiles;
|
|
@@ -47880,5 +47878,5 @@ export {
|
|
|
47880
47878
|
ANGULAR_INIT_TIMEOUT_MS
|
|
47881
47879
|
};
|
|
47882
47880
|
|
|
47883
|
-
//# debugId=
|
|
47881
|
+
//# debugId=B0A0D269F105DF5964756E2164756E21
|
|
47884
47882
|
//# sourceMappingURL=index.js.map
|