@absolutejs/absolute 0.19.0-beta.843 → 0.19.0-beta.844
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 +6 -5
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +6 -5
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +6 -5
- package/dist/build.js.map +3 -3
- package/dist/index.js +6 -5
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -12089,16 +12089,17 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
12089
12089
|
].join(", ")}`);
|
|
12090
12090
|
}
|
|
12091
12091
|
const original = await traceAngularPhase("wrapper/read-server-output", () => fs.readFile(rawServerFile, "utf-8"), { entry: resolvedEntry });
|
|
12092
|
-
const detectExportedComponentClass = (source
|
|
12092
|
+
const detectExportedComponentClass = (source) => {
|
|
12093
12093
|
const defaultMatch = source.match(/export\s+default\s+([A-Za-z_$][\w$]*)\s*;/);
|
|
12094
12094
|
if (defaultMatch)
|
|
12095
12095
|
return defaultMatch[1];
|
|
12096
12096
|
const exportClassMatch = source.match(/export\s+(?:default\s+)?class\s+([A-Za-z_$][\w$]*)/);
|
|
12097
12097
|
if (exportClassMatch)
|
|
12098
12098
|
return exportClassMatch[1];
|
|
12099
|
-
return
|
|
12099
|
+
return null;
|
|
12100
12100
|
};
|
|
12101
|
-
const
|
|
12101
|
+
const detectedClassName = await traceAngularPhase("wrapper/detect-component-class", () => detectExportedComponentClass(original), { entry: resolvedEntry });
|
|
12102
|
+
const componentClassName = detectedClassName ?? `${toPascal(fileBase)}Component`;
|
|
12102
12103
|
const usesLegacyAnimations = await traceAngularPhase("wrapper/detect-legacy-animations", () => usesLegacyAngularAnimations(resolvedEntry), { entry: resolvedEntry });
|
|
12103
12104
|
const serverContentHash = Bun.hash(original).toString(BASE_36_RADIX);
|
|
12104
12105
|
const cachedWrapper = wrapperOutputCache.get(resolvedEntry);
|
|
@@ -12118,7 +12119,7 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
12118
12119
|
${rewritten}`;
|
|
12119
12120
|
}
|
|
12120
12121
|
rewritten = rewritten.replace(new RegExp(`templateUrl:\\s*['"]\\.\\/${fileBase}\\.html['"]`), `templateUrl: '../../pages/${fileBase}.html'`);
|
|
12121
|
-
if (!rewritten.includes("export default")) {
|
|
12122
|
+
if (detectedClassName && !rewritten.includes("export default")) {
|
|
12122
12123
|
rewritten += `
|
|
12123
12124
|
export default ${componentClassName};
|
|
12124
12125
|
`;
|
|
@@ -19347,5 +19348,5 @@ export {
|
|
|
19347
19348
|
build
|
|
19348
19349
|
};
|
|
19349
19350
|
|
|
19350
|
-
//# debugId=
|
|
19351
|
+
//# debugId=D939AECE9DBFA2CD64756E2164756E21
|
|
19351
19352
|
//# sourceMappingURL=build.js.map
|