@absolutejs/absolute 0.19.0-beta.921 → 0.19.0-beta.922
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-UPHsNn/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-UPHsNn/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-UPHsNn/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/build.js
CHANGED
|
@@ -22156,6 +22156,27 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
22156
22156
|
state.rebuildTimeout = setTimeout(() => {
|
|
22157
22157
|
triggerRebuild(state, config, onRebuildComplete, queuedFiles.length > 0 ? queuedFiles : undefined);
|
|
22158
22158
|
}, REBUILD_BATCH_DELAY_MS);
|
|
22159
|
+
}, STYLE_FILE_EXT_RE, hasAngularOwnedStyleEdit = async (state, angularDir) => {
|
|
22160
|
+
const edited = state.lastUserEditedFiles;
|
|
22161
|
+
if (!edited || edited.size === 0)
|
|
22162
|
+
return false;
|
|
22163
|
+
const styleEdits = [];
|
|
22164
|
+
for (const file4 of edited) {
|
|
22165
|
+
if (STYLE_FILE_EXT_RE.test(file4))
|
|
22166
|
+
styleEdits.push(file4);
|
|
22167
|
+
}
|
|
22168
|
+
if (styleEdits.length === 0)
|
|
22169
|
+
return false;
|
|
22170
|
+
const { resolveOwningComponents: resolveOwningComponents2 } = await Promise.resolve().then(() => (init_resolveOwningComponents(), exports_resolveOwningComponents));
|
|
22171
|
+
for (const file4 of styleEdits) {
|
|
22172
|
+
const owners = resolveOwningComponents2({
|
|
22173
|
+
changedFilePath: file4,
|
|
22174
|
+
userAngularRoot: angularDir
|
|
22175
|
+
});
|
|
22176
|
+
if (owners.length > 0)
|
|
22177
|
+
return true;
|
|
22178
|
+
}
|
|
22179
|
+
return false;
|
|
22159
22180
|
}, triggerRebuild = async (state, config, onRebuildComplete, filesToRebuild) => {
|
|
22160
22181
|
if (state.isRebuilding) {
|
|
22161
22182
|
return null;
|
|
@@ -22163,6 +22184,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
22163
22184
|
state.isRebuilding = true;
|
|
22164
22185
|
const affectedFrameworks = Array.from(state.rebuildQueue);
|
|
22165
22186
|
state.rebuildQueue.clear();
|
|
22187
|
+
if (config.angularDirectory !== undefined && !affectedFrameworks.includes("angular") && await hasAngularOwnedStyleEdit(state, config.angularDirectory)) {
|
|
22188
|
+
affectedFrameworks.push("angular");
|
|
22189
|
+
}
|
|
22166
22190
|
const startTime = Date.now();
|
|
22167
22191
|
broadcastToClients(state, {
|
|
22168
22192
|
data: { affectedFrameworks },
|
|
@@ -22225,6 +22249,7 @@ var init_rebuildTrigger = __esm(() => {
|
|
|
22225
22249
|
getReactModuleUrl = getModuleUrl;
|
|
22226
22250
|
EMBER_PAGE_EXTENSIONS = [".gts", ".gjs", ".ts", ".js"];
|
|
22227
22251
|
HMR_SCRIPT_PATTERN = /<script>window\.__HMR_FRAMEWORK__[\s\S]*?<\/script>\s*<script data-hmr-client>[\s\S]*?<\/script>/;
|
|
22252
|
+
STYLE_FILE_EXT_RE = /\.(?:css|scss|sass|less|styl|stylus)$/i;
|
|
22228
22253
|
});
|
|
22229
22254
|
|
|
22230
22255
|
// src/utils/startupTimings.ts
|
|
@@ -22870,5 +22895,5 @@ export {
|
|
|
22870
22895
|
build
|
|
22871
22896
|
};
|
|
22872
22897
|
|
|
22873
|
-
//# debugId=
|
|
22898
|
+
//# debugId=2DD8BDFB431B37D564756E2164756E21
|
|
22874
22899
|
//# sourceMappingURL=build.js.map
|