@absolutejs/absolute 0.19.0-beta.700 → 0.19.0-beta.702

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.
@@ -1532,10 +1532,13 @@ var islandSequence = 0, resolvedServerComponentCache, resolvedServerBuildCompone
1532
1532
  const loadPromise = loadAndCompileServerBuildComponent(buildReferencePath);
1533
1533
  resolvedServerBuildComponentCache.set(buildReferencePath, loadPromise);
1534
1534
  return loadPromise;
1535
- }, loadServerImportComponent = async (resolvedComponent) => {
1535
+ }, loadServerImportComponent = async (resolvedComponent, exportName) => {
1536
1536
  const resolvedModulePath = resolvedComponent.startsWith(".") ? new URL(resolvedComponent, import.meta.url).pathname : resolvedComponent;
1537
1537
  const importTarget = resolvedModulePath.endsWith(".svelte") ? await compileSvelteServerModule(resolvedModulePath) : resolvedModulePath;
1538
1538
  const loadedModule = await import(importTarget);
1539
+ if (exportName && exportName !== "default" && exportName in loadedModule) {
1540
+ return loadedModule[exportName];
1541
+ }
1539
1542
  return "default" in loadedModule ? loadedModule.default : loadedModule;
1540
1543
  }, resolveIslandComponent = async (component) => {
1541
1544
  const buildReference = getIslandBuildReference(component);
@@ -1543,6 +1546,9 @@ var islandSequence = 0, resolvedServerComponentCache, resolvedServerBuildCompone
1543
1546
  if (buildReferencePath?.endsWith(".svelte")) {
1544
1547
  return loadServerBuildComponent(buildReferencePath);
1545
1548
  }
1549
+ if (buildReferencePath) {
1550
+ return loadServerImportComponent(buildReferencePath, buildReference?.export);
1551
+ }
1546
1552
  const resolvedComponent = getIslandComponent(component);
1547
1553
  if (typeof resolvedComponent !== "string") {
1548
1554
  return resolvedComponent;
@@ -4974,5 +4980,5 @@ export {
4974
4980
  handleAngularPageRequest
4975
4981
  };
4976
4982
 
4977
- //# debugId=6DAA1F30AA9E65E864756E2164756E21
4983
+ //# debugId=1538E35073996FC164756E2164756E21
4978
4984
  //# sourceMappingURL=server.js.map