@absolutejs/absolute 0.19.0-beta.846 → 0.19.0-beta.847

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-0XSiIl/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-COIC1V/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-0XSiIl/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-COIC1V/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-0XSiIl/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-COIC1V/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";
@@ -1435,6 +1435,18 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1435
1435
  return runPostcss(await readFile(filePath, "utf-8"), filePath, config);
1436
1436
  }
1437
1437
  return compileStyleSource(filePath, undefined, undefined, config);
1438
+ }, CSS_IMPORT_PATTERN, resolveCssImportsSync = (content, baseDir, visited) => {
1439
+ return content.replace(CSS_IMPORT_PATTERN, (match, importPath) => {
1440
+ const fullPath = isAbsolute(importPath) ? importPath : resolve3(baseDir, importPath);
1441
+ if (visited.has(fullPath))
1442
+ return "";
1443
+ if (!existsSync3(fullPath))
1444
+ return match;
1445
+ const nextVisited = new Set(visited);
1446
+ nextVisited.add(fullPath);
1447
+ const imported = readFileSync3(fullPath, "utf-8");
1448
+ return resolveCssImportsSync(imported, dirname(fullPath), nextVisited);
1449
+ });
1438
1450
  }, compileStyleFileIfNeededSync = (filePath, config) => {
1439
1451
  const rawContents = readFileSync3(filePath, "utf-8");
1440
1452
  const language = getStyleLanguage(filePath);
@@ -1452,7 +1464,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1452
1464
  }
1453
1465
  const contents = withAdditionalData(rawContents, options.additionalData);
1454
1466
  const loadPaths = normalizeLoadPaths(filePath, options.loadPaths);
1455
- return sass.compileString(contents, {
1467
+ const compiled = sass.compileString(contents, {
1456
1468
  importers: [
1457
1469
  createSassImporter(filePath, loadPaths, language, config)
1458
1470
  ],
@@ -1461,6 +1473,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1461
1473
  syntax: language === "sass" ? "indented" : "scss",
1462
1474
  url: new URL(`file://${filePath}`)
1463
1475
  }).css;
1476
+ return resolveCssImportsSync(compiled, dirname(filePath), new Set([filePath]));
1464
1477
  }
1465
1478
  if (language === "less") {
1466
1479
  throw new Error(`Unable to compile ${filePath}: Less styleUrl preprocessing is async-only. Import the Less file from a bundled entrypoint or use SCSS/CSS for Angular styleUrl.`);
@@ -1468,7 +1481,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1468
1481
  if (language === "stylus") {
1469
1482
  throw new Error(`Unable to compile ${filePath}: Stylus styleUrl preprocessing is async-only. Import the Stylus file from a bundled entrypoint or use SCSS/CSS for Angular styleUrl.`);
1470
1483
  }
1471
- return rawContents;
1484
+ return resolveCssImportsSync(rawContents, dirname(filePath), new Set([filePath]));
1472
1485
  }, getCssOutputExtension = (filePath) => isPreprocessableStylePath(filePath) ? ".css" : extname(filePath);
1473
1486
  var init_stylePreprocessor = __esm(() => {
1474
1487
  CSS_EXTENSION_PATTERN = /\.css$/i;
@@ -1481,6 +1494,7 @@ var init_stylePreprocessor = __esm(() => {
1481
1494
  styleDependencyGraph = new Map;
1482
1495
  styleOutputHashes = new Map;
1483
1496
  stylePreprocessorPlugin = createStylePreprocessorPlugin();
1497
+ CSS_IMPORT_PATTERN = /@import\s+["']([^"']+)["']\s*;?/g;
1484
1498
  });
1485
1499
 
1486
1500
  // src/core/svelteServerModule.ts
@@ -14990,5 +15004,5 @@ export {
14990
15004
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
14991
15005
  };
14992
15006
 
14993
- //# debugId=E5F22015FF64AAA164756E2164756E21
15007
+ //# debugId=6F99FC8C0F34774664756E2164756E21
14994
15008
  //# sourceMappingURL=index.js.map