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/feature-ast/src/patterns.ts -> OptionalRequiresPattern