@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/index.js
CHANGED
|
@@ -12283,16 +12283,17 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
12283
12283
|
].join(", ")}`);
|
|
12284
12284
|
}
|
|
12285
12285
|
const original = await traceAngularPhase("wrapper/read-server-output", () => fs.readFile(rawServerFile, "utf-8"), { entry: resolvedEntry });
|
|
12286
|
-
const detectExportedComponentClass = (source
|
|
12286
|
+
const detectExportedComponentClass = (source) => {
|
|
12287
12287
|
const defaultMatch = source.match(/export\s+default\s+([A-Za-z_$][\w$]*)\s*;/);
|
|
12288
12288
|
if (defaultMatch)
|
|
12289
12289
|
return defaultMatch[1];
|
|
12290
12290
|
const exportClassMatch = source.match(/export\s+(?:default\s+)?class\s+([A-Za-z_$][\w$]*)/);
|
|
12291
12291
|
if (exportClassMatch)
|
|
12292
12292
|
return exportClassMatch[1];
|
|
12293
|
-
return
|
|
12293
|
+
return null;
|
|
12294
12294
|
};
|
|
12295
|
-
const
|
|
12295
|
+
const detectedClassName = await traceAngularPhase("wrapper/detect-component-class", () => detectExportedComponentClass(original), { entry: resolvedEntry });
|
|
12296
|
+
const componentClassName = detectedClassName ?? `${toPascal(fileBase)}Component`;
|
|
12296
12297
|
const usesLegacyAnimations = await traceAngularPhase("wrapper/detect-legacy-animations", () => usesLegacyAngularAnimations(resolvedEntry), { entry: resolvedEntry });
|
|
12297
12298
|
const serverContentHash = Bun.hash(original).toString(BASE_36_RADIX);
|
|
12298
12299
|
const cachedWrapper = wrapperOutputCache.get(resolvedEntry);
|
|
@@ -12312,7 +12313,7 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
12312
12313
|
${rewritten}`;
|
|
12313
12314
|
}
|
|
12314
12315
|
rewritten = rewritten.replace(new RegExp(`templateUrl:\\s*['"]\\.\\/${fileBase}\\.html['"]`), `templateUrl: '../../pages/${fileBase}.html'`);
|
|
12315
|
-
if (!rewritten.includes("export default")) {
|
|
12316
|
+
if (detectedClassName && !rewritten.includes("export default")) {
|
|
12316
12317
|
rewritten += `
|
|
12317
12318
|
export default ${componentClassName};
|
|
12318
12319
|
`;
|
|
@@ -27947,5 +27948,5 @@ export {
|
|
|
27947
27948
|
ANGULAR_INIT_TIMEOUT_MS
|
|
27948
27949
|
};
|
|
27949
27950
|
|
|
27950
|
-
//# debugId=
|
|
27951
|
+
//# debugId=2E034E8C589087CA64756E2164756E21
|
|
27951
27952
|
//# sourceMappingURL=index.js.map
|