@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.
@@ -2317,6 +2317,15 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
2317
2317
  url: new URL(`file://${filePath}`)
2318
2318
  });
2319
2319
  const css = await runPostcss(result.css, filePath, config);
2320
+ const loadedUrls = result.loadedUrls ?? [];
2321
+ for (const url of loadedUrls) {
2322
+ if (url.protocol !== "file:")
2323
+ continue;
2324
+ const dep = fileURLToPath(url);
2325
+ if (resolve3(dep) === resolve3(filePath))
2326
+ continue;
2327
+ deps.add(dep);
2328
+ }
2320
2329
  recordStyleDeps(filePath, deps);
2321
2330
  return css;
2322
2331
  } catch (error) {
@@ -2485,7 +2494,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
2485
2494
  }
2486
2495
  const contents = withAdditionalData(rawContents, options.additionalData);
2487
2496
  const loadPaths = normalizeLoadPaths(filePath, options.loadPaths);
2488
- const compiled = sass.compileString(contents, {
2497
+ const result = sass.compileString(contents, {
2489
2498
  importers: [
2490
2499
  createSassImporter(filePath, loadPaths, language, config)
2491
2500
  ],
@@ -2493,8 +2502,17 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
2493
2502
  style: "expanded",
2494
2503
  syntax: language === "sass" ? "indented" : "scss",
2495
2504
  url: new URL(`file://${filePath}`)
2496
- }).css;
2497
- return resolveCssImportsSync(compiled, dirname(filePath), new Set([filePath]));
2505
+ });
2506
+ const loadedUrls = result.loadedUrls ?? [];
2507
+ for (const url of loadedUrls) {
2508
+ if (url.protocol !== "file:")
2509
+ continue;
2510
+ const dep = fileURLToPath(url);
2511
+ if (resolve3(dep) === resolve3(filePath))
2512
+ continue;
2513
+ addStyleImporter(filePath, dep);
2514
+ }
2515
+ return resolveCssImportsSync(result.css, dirname(filePath), new Set([filePath]));
2498
2516
  }
2499
2517
  if (language === "less") {
2500
2518
  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.`);
@@ -3932,5 +3950,5 @@ export {
3932
3950
  Island
3933
3951
  };
3934
3952
 
3935
- //# debugId=1094272B47C7C77164756E2164756E21
3953
+ //# debugId=83B501516F253F6264756E2164756E21
3936
3954
  //# sourceMappingURL=index.js.map