@absolutejs/absolute 0.19.0-beta.994 → 0.19.0-beta.996
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-HqKPzO/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-HqKPzO/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-HqKPzO/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/build.js
CHANGED
|
@@ -13025,7 +13025,20 @@ var resolveDevClientDir3 = () => {
|
|
|
13025
13025
|
return "template-only";
|
|
13026
13026
|
}
|
|
13027
13027
|
return "full";
|
|
13028
|
-
}, generateVueHmrId = (sourceFilePath, vueRootDir) => relative10(vueRootDir, sourceFilePath).replace(/\\/g, "/").replace(/\.vue$/, ""), extractImports = (sourceCode) => Array.from(sourceCode.matchAll(/import\s+[\s\S]+?['"]([^'"]+)['"]/g)).map((match) => match[1]).filter((importPath) => importPath !== undefined),
|
|
13028
|
+
}, generateVueHmrId = (sourceFilePath, vueRootDir) => relative10(vueRootDir, sourceFilePath).replace(/\\/g, "/").replace(/\.vue$/, ""), extractImports = (sourceCode) => Array.from(sourceCode.matchAll(/import\s+[\s\S]+?['"]([^'"]+)['"]/g)).map((match) => match[1]).filter((importPath) => importPath !== undefined), inlineCssImports = (cssContent, cssFilePath, visited = new Set) => {
|
|
13029
|
+
const resolved = realpathSync(cssFilePath);
|
|
13030
|
+
if (visited.has(resolved))
|
|
13031
|
+
return "";
|
|
13032
|
+
visited.add(resolved);
|
|
13033
|
+
const importRegex = /@import\s+(?:url\(\s*)?(['"])(\.{1,2}\/[^'"]+)\1\s*\)?\s*;?/g;
|
|
13034
|
+
return cssContent.replace(importRegex, (match, _quote, relPath) => {
|
|
13035
|
+
const importedPath = resolve20(dirname13(cssFilePath), relPath);
|
|
13036
|
+
if (!existsSync21(importedPath))
|
|
13037
|
+
return match;
|
|
13038
|
+
const importedContent = readFileSync17(importedPath, "utf-8");
|
|
13039
|
+
return inlineCssImports(importedContent, importedPath, visited);
|
|
13040
|
+
});
|
|
13041
|
+
}, resolveHelperTsPath = (sourceDir, helper) => {
|
|
13029
13042
|
if (helper.endsWith(".ts"))
|
|
13030
13043
|
return resolve20(sourceDir, helper);
|
|
13031
13044
|
const direct = resolve20(sourceDir, `${helper}.ts`);
|
|
@@ -13163,13 +13176,16 @@ var resolveDevClientDir3 = () => {
|
|
|
13163
13176
|
}).code;
|
|
13164
13177
|
return transpiler4.transformSync(rendered).replace(/(['"])(\.{1,2}\/[^'"]+)(['"])/g, (_2, quoteStart, relativeImport, quoteEnd) => `${quoteStart}${toJs(relativeImport, sourceDir)}${quoteEnd}`);
|
|
13165
13178
|
};
|
|
13166
|
-
const localCss = await Promise.all(descriptor.styles.map(async (styleBlock) =>
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
|
|
13172
|
-
|
|
13179
|
+
const localCss = await Promise.all(descriptor.styles.map(async (styleBlock) => {
|
|
13180
|
+
const rawContent = styleBlock.lang ? await compileStyleSource(sourceFilePath, styleBlock.content, styleBlock.lang, stylePreprocessors) : styleBlock.content;
|
|
13181
|
+
return compiler.compileStyle({
|
|
13182
|
+
filename: sourceFilePath,
|
|
13183
|
+
id: componentId,
|
|
13184
|
+
scoped: styleBlock.scoped,
|
|
13185
|
+
source: inlineCssImports(rawContent, sourceFilePath),
|
|
13186
|
+
trim: true
|
|
13187
|
+
}).code;
|
|
13188
|
+
}));
|
|
13173
13189
|
const allCss = [
|
|
13174
13190
|
...localCss,
|
|
13175
13191
|
...childBuildResults.flatMap((result2) => result2.cssCodes)
|
|
@@ -27023,5 +27039,5 @@ export {
|
|
|
27023
27039
|
build
|
|
27024
27040
|
};
|
|
27025
27041
|
|
|
27026
|
-
//# debugId=
|
|
27042
|
+
//# debugId=C8DB2890EFA0EBF064756E2164756E21
|
|
27027
27043
|
//# sourceMappingURL=build.js.map
|