@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/svelte/server.js
CHANGED
|
@@ -754,6 +754,18 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
754
754
|
return runPostcss(await readFile(filePath, "utf-8"), filePath, config);
|
|
755
755
|
}
|
|
756
756
|
return compileStyleSource(filePath, undefined, undefined, config);
|
|
757
|
+
}, CSS_IMPORT_PATTERN, resolveCssImportsSync = (content, baseDir, visited) => {
|
|
758
|
+
return content.replace(CSS_IMPORT_PATTERN, (match, importPath) => {
|
|
759
|
+
const fullPath = isAbsolute(importPath) ? importPath : resolve2(baseDir, importPath);
|
|
760
|
+
if (visited.has(fullPath))
|
|
761
|
+
return "";
|
|
762
|
+
if (!existsSync2(fullPath))
|
|
763
|
+
return match;
|
|
764
|
+
const nextVisited = new Set(visited);
|
|
765
|
+
nextVisited.add(fullPath);
|
|
766
|
+
const imported = readFileSync2(fullPath, "utf-8");
|
|
767
|
+
return resolveCssImportsSync(imported, dirname(fullPath), nextVisited);
|
|
768
|
+
});
|
|
757
769
|
}, compileStyleFileIfNeededSync = (filePath, config) => {
|
|
758
770
|
const rawContents = readFileSync2(filePath, "utf-8");
|
|
759
771
|
const language = getStyleLanguage(filePath);
|
|
@@ -771,7 +783,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
771
783
|
}
|
|
772
784
|
const contents = withAdditionalData(rawContents, options.additionalData);
|
|
773
785
|
const loadPaths = normalizeLoadPaths(filePath, options.loadPaths);
|
|
774
|
-
|
|
786
|
+
const compiled = sass.compileString(contents, {
|
|
775
787
|
importers: [
|
|
776
788
|
createSassImporter(filePath, loadPaths, language, config)
|
|
777
789
|
],
|
|
@@ -780,6 +792,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
780
792
|
syntax: language === "sass" ? "indented" : "scss",
|
|
781
793
|
url: new URL(`file://${filePath}`)
|
|
782
794
|
}).css;
|
|
795
|
+
return resolveCssImportsSync(compiled, dirname(filePath), new Set([filePath]));
|
|
783
796
|
}
|
|
784
797
|
if (language === "less") {
|
|
785
798
|
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.`);
|
|
@@ -787,7 +800,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
787
800
|
if (language === "stylus") {
|
|
788
801
|
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.`);
|
|
789
802
|
}
|
|
790
|
-
return rawContents;
|
|
803
|
+
return resolveCssImportsSync(rawContents, dirname(filePath), new Set([filePath]));
|
|
791
804
|
}, getCssOutputExtension = (filePath) => isPreprocessableStylePath(filePath) ? ".css" : extname(filePath);
|
|
792
805
|
var init_stylePreprocessor = __esm(() => {
|
|
793
806
|
CSS_EXTENSION_PATTERN = /\.css$/i;
|
|
@@ -800,6 +813,7 @@ var init_stylePreprocessor = __esm(() => {
|
|
|
800
813
|
styleDependencyGraph = new Map;
|
|
801
814
|
styleOutputHashes = new Map;
|
|
802
815
|
stylePreprocessorPlugin = createStylePreprocessorPlugin();
|
|
816
|
+
CSS_IMPORT_PATTERN = /@import\s+["']([^"']+)["']\s*;?/g;
|
|
803
817
|
});
|
|
804
818
|
|
|
805
819
|
// src/core/svelteServerModule.ts
|
|
@@ -2816,5 +2830,5 @@ export {
|
|
|
2816
2830
|
handleSveltePageRequest
|
|
2817
2831
|
};
|
|
2818
2832
|
|
|
2819
|
-
//# debugId=
|
|
2833
|
+
//# debugId=A65ABB988C23244964756E2164756E21
|
|
2820
2834
|
//# sourceMappingURL=server.js.map
|