Build reusable React component hosting and typed fragment composition
This commit is contained in:
@@ -2799,6 +2799,13 @@ const compileCapabilityResourceSourceInternal = (
|
||||
revision: lowerPackage(state, context, options.source),
|
||||
};
|
||||
if (resource.revision.modules?.length) {
|
||||
resource.revision.clientPackages = Object.fromEntries(
|
||||
imports.flatMap((entry) => {
|
||||
if (entry.kind !== "package") return [];
|
||||
const imported = options.environment?.packages?.get(entry.binding);
|
||||
return imported ? [[entry.binding, imported.revisionId]] : [];
|
||||
}),
|
||||
);
|
||||
resource.revision.clientInterfaces = Object.fromEntries(
|
||||
imports.flatMap((entry) => {
|
||||
if (entry.kind !== "interface") return [];
|
||||
|
||||
Reference in New Issue
Block a user