@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/angular/server.js
CHANGED
|
@@ -1435,6 +1435,18 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
1435
1435
|
return runPostcss(await readFile(filePath, "utf-8"), filePath, config);
|
|
1436
1436
|
}
|
|
1437
1437
|
return compileStyleSource(filePath, undefined, undefined, config);
|
|
1438
|
+
}, CSS_IMPORT_PATTERN, resolveCssImportsSync = (content, baseDir, visited) => {
|
|
1439
|
+
return content.replace(CSS_IMPORT_PATTERN, (match, importPath) => {
|
|
1440
|
+
const fullPath = isAbsolute(importPath) ? importPath : resolve3(baseDir, importPath);
|
|
1441
|
+
if (visited.has(fullPath))
|
|
1442
|
+
return "";
|
|
1443
|
+
if (!existsSync3(fullPath))
|
|
1444
|
+
return match;
|
|
1445
|
+
const nextVisited = new Set(visited);
|
|
1446
|
+
nextVisited.add(fullPath);
|
|
1447
|
+
const imported = readFileSync3(fullPath, "utf-8");
|
|
1448
|
+
return resolveCssImportsSync(imported, dirname(fullPath), nextVisited);
|
|
1449
|
+
});
|
|
1438
1450
|
}, compileStyleFileIfNeededSync = (filePath, config) => {
|
|
1439
1451
|
const rawContents = readFileSync3(filePath, "utf-8");
|
|
1440
1452
|
const language = getStyleLanguage(filePath);
|
|
@@ -1452,7 +1464,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
1452
1464
|
}
|
|
1453
1465
|
const contents = withAdditionalData(rawContents, options.additionalData);
|
|
1454
1466
|
const loadPaths = normalizeLoadPaths(filePath, options.loadPaths);
|
|
1455
|
-
|
|
1467
|
+
const compiled = sass.compileString(contents, {
|
|
1456
1468
|
importers: [
|
|
1457
1469
|
createSassImporter(filePath, loadPaths, language, config)
|
|
1458
1470
|
],
|
|
@@ -1461,6 +1473,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
1461
1473
|
syntax: language === "sass" ? "indented" : "scss",
|
|
1462
1474
|
url: new URL(`file://${filePath}`)
|
|
1463
1475
|
}).css;
|
|
1476
|
+
return resolveCssImportsSync(compiled, dirname(filePath), new Set([filePath]));
|
|
1464
1477
|
}
|
|
1465
1478
|
if (language === "less") {
|
|
1466
1479
|
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.`);
|
|
@@ -1468,7 +1481,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
1468
1481
|
if (language === "stylus") {
|
|
1469
1482
|
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.`);
|
|
1470
1483
|
}
|
|
1471
|
-
return rawContents;
|
|
1484
|
+
return resolveCssImportsSync(rawContents, dirname(filePath), new Set([filePath]));
|
|
1472
1485
|
}, getCssOutputExtension = (filePath) => isPreprocessableStylePath(filePath) ? ".css" : extname(filePath);
|
|
1473
1486
|
var init_stylePreprocessor = __esm(() => {
|
|
1474
1487
|
CSS_EXTENSION_PATTERN = /\.css$/i;
|
|
@@ -1481,6 +1494,7 @@ var init_stylePreprocessor = __esm(() => {
|
|
|
1481
1494
|
styleDependencyGraph = new Map;
|
|
1482
1495
|
styleOutputHashes = new Map;
|
|
1483
1496
|
stylePreprocessorPlugin = createStylePreprocessorPlugin();
|
|
1497
|
+
CSS_IMPORT_PATTERN = /@import\s+["']([^"']+)["']\s*;?/g;
|
|
1484
1498
|
});
|
|
1485
1499
|
|
|
1486
1500
|
// src/core/svelteServerModule.ts
|
|
@@ -5667,5 +5681,5 @@ export {
|
|
|
5667
5681
|
ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
|
|
5668
5682
|
};
|
|
5669
5683
|
|
|
5670
|
-
//# debugId=
|
|
5684
|
+
//# debugId=216491911F82DBB864756E2164756E21
|
|
5671
5685
|
//# sourceMappingURL=server.js.map
|