@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.
package/dist/index.js
CHANGED
|
@@ -22253,6 +22253,27 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
22253
22253
|
state.rebuildTimeout = setTimeout(() => {
|
|
22254
22254
|
triggerRebuild(state, config, onRebuildComplete, queuedFiles.length > 0 ? queuedFiles : undefined);
|
|
22255
22255
|
}, REBUILD_BATCH_DELAY_MS);
|
|
22256
|
+
}, STYLE_FILE_EXT_RE, hasAngularOwnedStyleEdit = async (state, angularDir) => {
|
|
22257
|
+
const edited = state.lastUserEditedFiles;
|
|
22258
|
+
if (!edited || edited.size === 0)
|
|
22259
|
+
return false;
|
|
22260
|
+
const styleEdits = [];
|
|
22261
|
+
for (const file5 of edited) {
|
|
22262
|
+
if (STYLE_FILE_EXT_RE.test(file5))
|
|
22263
|
+
styleEdits.push(file5);
|
|
22264
|
+
}
|
|
22265
|
+
if (styleEdits.length === 0)
|
|
22266
|
+
return false;
|
|
22267
|
+
const { resolveOwningComponents: resolveOwningComponents2 } = await Promise.resolve().then(() => (init_resolveOwningComponents(), exports_resolveOwningComponents));
|
|
22268
|
+
for (const file5 of styleEdits) {
|
|
22269
|
+
const owners = resolveOwningComponents2({
|
|
22270
|
+
changedFilePath: file5,
|
|
22271
|
+
userAngularRoot: angularDir
|
|
22272
|
+
});
|
|
22273
|
+
if (owners.length > 0)
|
|
22274
|
+
return true;
|
|
22275
|
+
}
|
|
22276
|
+
return false;
|
|
22256
22277
|
}, triggerRebuild = async (state, config, onRebuildComplete, filesToRebuild) => {
|
|
22257
22278
|
if (state.isRebuilding) {
|
|
22258
22279
|
return null;
|
|
@@ -22260,6 +22281,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
22260
22281
|
state.isRebuilding = true;
|
|
22261
22282
|
const affectedFrameworks = Array.from(state.rebuildQueue);
|
|
22262
22283
|
state.rebuildQueue.clear();
|
|
22284
|
+
if (config.angularDirectory !== undefined && !affectedFrameworks.includes("angular") && await hasAngularOwnedStyleEdit(state, config.angularDirectory)) {
|
|
22285
|
+
affectedFrameworks.push("angular");
|
|
22286
|
+
}
|
|
22263
22287
|
const startTime = Date.now();
|
|
22264
22288
|
broadcastToClients(state, {
|
|
22265
22289
|
data: { affectedFrameworks },
|
|
@@ -22322,6 +22346,7 @@ var init_rebuildTrigger = __esm(() => {
|
|
|
22322
22346
|
getReactModuleUrl = getModuleUrl;
|
|
22323
22347
|
EMBER_PAGE_EXTENSIONS = [".gts", ".gjs", ".ts", ".js"];
|
|
22324
22348
|
HMR_SCRIPT_PATTERN = /<script>window\.__HMR_FRAMEWORK__[\s\S]*?<\/script>\s*<script data-hmr-client>[\s\S]*?<\/script>/;
|
|
22349
|
+
STYLE_FILE_EXT_RE = /\.(?:css|scss|sass|less|styl|stylus)$/i;
|
|
22325
22350
|
});
|
|
22326
22351
|
|
|
22327
22352
|
// src/build/buildDepVendor.ts
|
|
@@ -31528,5 +31553,5 @@ export {
|
|
|
31528
31553
|
ANGULAR_INIT_TIMEOUT_MS
|
|
31529
31554
|
};
|
|
31530
31555
|
|
|
31531
|
-
//# debugId=
|
|
31556
|
+
//# debugId=FD896F37628C9A1164756E2164756E21
|
|
31532
31557
|
//# sourceMappingURL=index.js.map
|