@absolutejs/absolute 0.19.0-beta.995 → 0.19.0-beta.997
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-hon2ep/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-hon2ep/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-hon2ep/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,23 +13025,19 @@ 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),
|
|
13029
|
-
const
|
|
13030
|
-
|
|
13031
|
-
const seen = new Set;
|
|
13032
|
-
const stripped = css.replace(importRegex, (match) => {
|
|
13033
|
-
const normalised = match.trim();
|
|
13034
|
-
if (seen.has(normalised))
|
|
13035
|
-
return "";
|
|
13036
|
-
seen.add(normalised);
|
|
13037
|
-
imports.push(normalised);
|
|
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))
|
|
13038
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);
|
|
13039
13040
|
});
|
|
13040
|
-
if (imports.length === 0)
|
|
13041
|
-
return css;
|
|
13042
|
-
return `${imports.join(`
|
|
13043
|
-
`)}
|
|
13044
|
-
${stripped}`;
|
|
13045
13041
|
}, resolveHelperTsPath = (sourceDir, helper) => {
|
|
13046
13042
|
if (helper.endsWith(".ts"))
|
|
13047
13043
|
return resolve20(sourceDir, helper);
|
|
@@ -13180,13 +13176,16 @@ ${stripped}`;
|
|
|
13180
13176
|
}).code;
|
|
13181
13177
|
return transpiler4.transformSync(rendered).replace(/(['"])(\.{1,2}\/[^'"]+)(['"])/g, (_2, quoteStart, relativeImport, quoteEnd) => `${quoteStart}${toJs(relativeImport, sourceDir)}${quoteEnd}`);
|
|
13182
13178
|
};
|
|
13183
|
-
const localCss = await Promise.all(descriptor.styles.map(async (styleBlock) =>
|
|
13184
|
-
|
|
13185
|
-
|
|
13186
|
-
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
|
-
|
|
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
|
+
}));
|
|
13190
13189
|
const allCss = [
|
|
13191
13190
|
...localCss,
|
|
13192
13191
|
...childBuildResults.flatMap((result2) => result2.cssCodes)
|
|
@@ -13195,8 +13194,8 @@ ${stripped}`;
|
|
|
13195
13194
|
if (isEntryPoint && allCss.length) {
|
|
13196
13195
|
const cssOutputFile = join27(outputDirs.css, `${toKebab(fileBaseName)}-compiled.css`);
|
|
13197
13196
|
await mkdir5(dirname13(cssOutputFile), { recursive: true });
|
|
13198
|
-
await write3(cssOutputFile,
|
|
13199
|
-
`))
|
|
13197
|
+
await write3(cssOutputFile, allCss.join(`
|
|
13198
|
+
`));
|
|
13200
13199
|
cssOutputPaths = [cssOutputFile];
|
|
13201
13200
|
}
|
|
13202
13201
|
const assembleModule = (renderCode, renderFnName, includeHmr) => {
|
|
@@ -20468,6 +20467,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
20468
20467
|
"svelte/*",
|
|
20469
20468
|
"vue",
|
|
20470
20469
|
"vue/*",
|
|
20470
|
+
"vue-demi",
|
|
20471
20471
|
"@vue/*",
|
|
20472
20472
|
"@angular/*",
|
|
20473
20473
|
...angularPartialDeclSpecs,
|
|
@@ -27040,5 +27040,5 @@ export {
|
|
|
27040
27040
|
build
|
|
27041
27041
|
};
|
|
27042
27042
|
|
|
27043
|
-
//# debugId=
|
|
27043
|
+
//# debugId=D4DCB6378B88114464756E2164756E21
|
|
27044
27044
|
//# sourceMappingURL=build.js.map
|