@absolutejs/absolute 0.19.0-beta.942 → 0.19.0-beta.944

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.
@@ -1332,6 +1332,15 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1332
1332
  url: new URL(`file://${filePath}`)
1333
1333
  });
1334
1334
  const css = await runPostcss(result.css, filePath, config);
1335
+ const loadedUrls = result.loadedUrls ?? [];
1336
+ for (const url of loadedUrls) {
1337
+ if (url.protocol !== "file:")
1338
+ continue;
1339
+ const dep = fileURLToPath(url);
1340
+ if (resolve3(dep) === resolve3(filePath))
1341
+ continue;
1342
+ deps.add(dep);
1343
+ }
1335
1344
  recordStyleDeps(filePath, deps);
1336
1345
  return css;
1337
1346
  } catch (error) {
@@ -1500,7 +1509,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1500
1509
  }
1501
1510
  const contents = withAdditionalData(rawContents, options.additionalData);
1502
1511
  const loadPaths = normalizeLoadPaths(filePath, options.loadPaths);
1503
- const compiled = sass.compileString(contents, {
1512
+ const result = sass.compileString(contents, {
1504
1513
  importers: [
1505
1514
  createSassImporter(filePath, loadPaths, language, config)
1506
1515
  ],
@@ -1508,8 +1517,17 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1508
1517
  style: "expanded",
1509
1518
  syntax: language === "sass" ? "indented" : "scss",
1510
1519
  url: new URL(`file://${filePath}`)
1511
- }).css;
1512
- return resolveCssImportsSync(compiled, dirname(filePath), new Set([filePath]));
1520
+ });
1521
+ const loadedUrls = result.loadedUrls ?? [];
1522
+ for (const url of loadedUrls) {
1523
+ if (url.protocol !== "file:")
1524
+ continue;
1525
+ const dep = fileURLToPath(url);
1526
+ if (resolve3(dep) === resolve3(filePath))
1527
+ continue;
1528
+ addStyleImporter(filePath, dep);
1529
+ }
1530
+ return resolveCssImportsSync(result.css, dirname(filePath), new Set([filePath]));
1513
1531
  }
1514
1532
  if (language === "less") {
1515
1533
  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.`);
@@ -2085,5 +2103,5 @@ export {
2085
2103
  createIslandStore
2086
2104
  };
2087
2105
 
2088
- //# debugId=50CD3E7F3547894F64756E2164756E21
2106
+ //# debugId=499668311D68056464756E2164756E21
2089
2107
  //# sourceMappingURL=index.js.map