@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/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 componentClassName = `${toPascal(fileBase)}Component`;
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=55B4A905C06B5EF864756E2164756E21
58235
+ //# debugId=CA1DDD070BD3429564756E2164756E21
58227
58236
  //# sourceMappingURL=index.js.map