Skip to content

r.optionalRequires(...)

r.optionalRequires(...featureNames) — soft dependency: the feature integrates with the named features when they are mounted but boots fine without them. For cross-cutting integrations (audit, notifications) that degrade gracefully.


From packages/framework/src/engine/feature-ast/patterns.ts -> OptionalRequiresPattern