@absolutejs/absolute 0.19.0-beta.941 → 0.19.0-beta.943

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.
@@ -1344,6 +1344,15 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1344
1344
  url: new URL(`file://${filePath}`)
1345
1345
  });
1346
1346
  const css = await runPostcss(result.css, filePath, config);
1347
+ const loadedUrls = result.loadedUrls ?? [];
1348
+ for (const url of loadedUrls) {
1349
+ if (url.protocol !== "file:")
1350
+ continue;
1351
+ const dep = fileURLToPath(url);
1352
+ if (resolve3(dep) === resolve3(filePath))
1353
+ continue;
1354
+ deps.add(dep);
1355
+ }
1347
1356
  recordStyleDeps(filePath, deps);
1348
1357
  return css;
1349
1358
  } catch (error) {
@@ -1512,7 +1521,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1512
1521
  }
1513
1522
  const contents = withAdditionalData(rawContents, options.additionalData);
1514
1523
  const loadPaths = normalizeLoadPaths(filePath, options.loadPaths);
1515
- const compiled = sass.compileString(contents, {
1524
+ const result = sass.compileString(contents, {
1516
1525
  importers: [
1517
1526
  createSassImporter(filePath, loadPaths, language, config)
1518
1527
  ],
@@ -1520,8 +1529,17 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
1520
1529
  style: "expanded",
1521
1530
  syntax: language === "sass" ? "indented" : "scss",
1522
1531
  url: new URL(`file://${filePath}`)
1523
- }).css;
1524
- return resolveCssImportsSync(compiled, dirname(filePath), new Set([filePath]));
1532
+ });
1533
+ const loadedUrls = result.loadedUrls ?? [];
1534
+ for (const url of loadedUrls) {
1535
+ if (url.protocol !== "file:")
1536
+ continue;
1537
+ const dep = fileURLToPath(url);
1538
+ if (resolve3(dep) === resolve3(filePath))
1539
+ continue;
1540
+ addStyleImporter(filePath, dep);
1541
+ }
1542
+ return resolveCssImportsSync(result.css, dirname(filePath), new Set([filePath]));
1525
1543
  }
1526
1544
  if (language === "less") {
1527
1545
  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.`);
@@ -5866,5 +5884,5 @@ export {
5866
5884
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
5867
5885
  };
5868
5886
 
5869
- //# debugId=73CF4660FF2BF51464756E2164756E21
5887
+ //# debugId=A0B72ACD392E90E364756E2164756E21
5870
5888
  //# sourceMappingURL=server.js.map