@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.
@@ -663,6 +663,15 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
663
663
  url: new URL(`file://${filePath}`)
664
664
  });
665
665
  const css = await runPostcss(result.css, filePath, config);
666
+ const loadedUrls = result.loadedUrls ?? [];
667
+ for (const url of loadedUrls) {
668
+ if (url.protocol !== "file:")
669
+ continue;
670
+ const dep = fileURLToPath(url);
671
+ if (resolve2(dep) === resolve2(filePath))
672
+ continue;
673
+ deps.add(dep);
674
+ }
666
675
  recordStyleDeps(filePath, deps);
667
676
  return css;
668
677
  } catch (error) {
@@ -831,7 +840,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
831
840
  }
832
841
  const contents = withAdditionalData(rawContents, options.additionalData);
833
842
  const loadPaths = normalizeLoadPaths(filePath, options.loadPaths);
834
- const compiled = sass.compileString(contents, {
843
+ const result = sass.compileString(contents, {
835
844
  importers: [
836
845
  createSassImporter(filePath, loadPaths, language, config)
837
846
  ],
@@ -839,8 +848,17 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
839
848
  style: "expanded",
840
849
  syntax: language === "sass" ? "indented" : "scss",
841
850
  url: new URL(`file://${filePath}`)
842
- }).css;
843
- return resolveCssImportsSync(compiled, dirname(filePath), new Set([filePath]));
851
+ });
852
+ const loadedUrls = result.loadedUrls ?? [];
853
+ for (const url of loadedUrls) {
854
+ if (url.protocol !== "file:")
855
+ continue;
856
+ const dep = fileURLToPath(url);
857
+ if (resolve2(dep) === resolve2(filePath))
858
+ continue;
859
+ addStyleImporter(filePath, dep);
860
+ }
861
+ return resolveCssImportsSync(result.css, dirname(filePath), new Set([filePath]));
844
862
  }
845
863
  if (language === "less") {
846
864
  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.`);
@@ -2926,5 +2944,5 @@ export {
2926
2944
  handleSveltePageRequest
2927
2945
  };
2928
2946
 
2929
- //# debugId=B2EC55571D42A8C664756E2164756E21
2947
+ //# debugId=BD58CB891C98D80664756E2164756E21
2930
2948
  //# sourceMappingURL=server.js.map