@absolutejs/absolute 0.19.0-beta.718 → 0.19.0-beta.719
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/index.js +11 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +11 -2
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +11 -2
- package/dist/build.js.map +3 -3
- package/dist/index.js +11 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44356,7 +44356,16 @@ ${fields}
|
|
|
44356
44356
|
].join(", ")}`);
|
|
44357
44357
|
}
|
|
44358
44358
|
const original = await fs2.readFile(rawServerFile, "utf-8");
|
|
44359
|
-
const
|
|
44359
|
+
const detectExportedComponentClass = (source, fallback) => {
|
|
44360
|
+
const defaultMatch = source.match(/export\s+default\s+([A-Za-z_$][\w$]*)\s*;/);
|
|
44361
|
+
if (defaultMatch)
|
|
44362
|
+
return defaultMatch[1];
|
|
44363
|
+
const exportClassMatch = source.match(/export\s+(?:default\s+)?class\s+([A-Za-z_$][\w$]*)/);
|
|
44364
|
+
if (exportClassMatch)
|
|
44365
|
+
return exportClassMatch[1];
|
|
44366
|
+
return fallback;
|
|
44367
|
+
};
|
|
44368
|
+
const componentClassName = detectExportedComponentClass(original, `${toPascal(fileBase)}Component`);
|
|
44360
44369
|
const serverContentHash = Bun.hash(original).toString(BASE_36_RADIX);
|
|
44361
44370
|
const cachedWrapper = wrapperOutputCache.get(resolvedEntry);
|
|
44362
44371
|
const clientFile = join15(indexesDir, jsName);
|
|
@@ -58223,5 +58232,5 @@ export {
|
|
|
58223
58232
|
ANGULAR_INIT_TIMEOUT_MS
|
|
58224
58233
|
};
|
|
58225
58234
|
|
|
58226
|
-
//# debugId=
|
|
58235
|
+
//# debugId=CA1DDD070BD3429564756E2164756E21
|
|
58227
58236
|
//# sourceMappingURL=index.js.map
|