@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.
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +17 -3
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +17 -3
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +17 -3
- package/dist/build.js.map +3 -3
- package/dist/index.js +17 -3
- package/dist/index.js.map +3 -3
- package/dist/islands/index.js +17 -3
- package/dist/islands/index.js.map +3 -3
- package/dist/react/index.js +17 -3
- package/dist/react/index.js.map +3 -3
- package/dist/svelte/index.js +17 -3
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +17 -3
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +17 -3
- package/dist/vue/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -620,6 +620,18 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
620
620
|
return runPostcss(await readFile(filePath, "utf-8"), filePath, config);
|
|
621
621
|
}
|
|
622
622
|
return compileStyleSource(filePath, undefined, undefined, config);
|
|
623
|
+
}, CSS_IMPORT_PATTERN, resolveCssImportsSync = (content, baseDir, visited) => {
|
|
624
|
+
return content.replace(CSS_IMPORT_PATTERN, (match, importPath) => {
|
|
625
|
+
const fullPath = isAbsolute(importPath) ? importPath : resolve2(baseDir, importPath);
|
|
626
|
+
if (visited.has(fullPath))
|
|
627
|
+
return "";
|
|
628
|
+
if (!existsSync3(fullPath))
|
|
629
|
+
return match;
|
|
630
|
+
const nextVisited = new Set(visited);
|
|
631
|
+
nextVisited.add(fullPath);
|
|
632
|
+
const imported = readFileSync3(fullPath, "utf-8");
|
|
633
|
+
return resolveCssImportsSync(imported, dirname2(fullPath), nextVisited);
|
|
634
|
+
});
|
|
623
635
|
}, compileStyleFileIfNeededSync = (filePath, config) => {
|
|
624
636
|
const rawContents = readFileSync3(filePath, "utf-8");
|
|
625
637
|
const language = getStyleLanguage(filePath);
|
|
@@ -637,7 +649,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
637
649
|
}
|
|
638
650
|
const contents = withAdditionalData(rawContents, options.additionalData);
|
|
639
651
|
const loadPaths = normalizeLoadPaths(filePath, options.loadPaths);
|
|
640
|
-
|
|
652
|
+
const compiled = sass.compileString(contents, {
|
|
641
653
|
importers: [
|
|
642
654
|
createSassImporter(filePath, loadPaths, language, config)
|
|
643
655
|
],
|
|
@@ -646,6 +658,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
646
658
|
syntax: language === "sass" ? "indented" : "scss",
|
|
647
659
|
url: new URL(`file://${filePath}`)
|
|
648
660
|
}).css;
|
|
661
|
+
return resolveCssImportsSync(compiled, dirname2(filePath), new Set([filePath]));
|
|
649
662
|
}
|
|
650
663
|
if (language === "less") {
|
|
651
664
|
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.`);
|
|
@@ -653,7 +666,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
653
666
|
if (language === "stylus") {
|
|
654
667
|
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.`);
|
|
655
668
|
}
|
|
656
|
-
return rawContents;
|
|
669
|
+
return resolveCssImportsSync(rawContents, dirname2(filePath), new Set([filePath]));
|
|
657
670
|
}, getCssOutputExtension = (filePath) => isPreprocessableStylePath(filePath) ? ".css" : extname(filePath);
|
|
658
671
|
var init_stylePreprocessor = __esm(() => {
|
|
659
672
|
CSS_EXTENSION_PATTERN = /\.css$/i;
|
|
@@ -666,6 +679,7 @@ var init_stylePreprocessor = __esm(() => {
|
|
|
666
679
|
styleDependencyGraph = new Map;
|
|
667
680
|
styleOutputHashes = new Map;
|
|
668
681
|
stylePreprocessorPlugin = createStylePreprocessorPlugin();
|
|
682
|
+
CSS_IMPORT_PATTERN = /@import\s+["']([^"']+)["']\s*;?/g;
|
|
669
683
|
});
|
|
670
684
|
|
|
671
685
|
// node_modules/tailwindcss/dist/chunk-HTB5LLOP.mjs
|
|
@@ -28424,5 +28438,5 @@ export {
|
|
|
28424
28438
|
ANGULAR_INIT_TIMEOUT_MS
|
|
28425
28439
|
};
|
|
28426
28440
|
|
|
28427
|
-
//# debugId=
|
|
28441
|
+
//# debugId=570E7C55E9A2645364756E2164756E21
|
|
28428
28442
|
//# sourceMappingURL=index.js.map
|