-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
At the moment, depRules
only supports wildcards — for example:
'domain:*': ['sameTag']
For use cases involving nested tags, such as:
domain:booking:ui
domain:holidays:ui
domain:shop:ui
it would be helpful to define rules like:
depRules: {
'domain:<domain>:ui': ['domain:<domain>:model']
}
In addition, it would make sense to expose those placeholders to the function-based alternative as well:
depRules: {
'domain:<domain>:ui': ({ placeholders }) => {
console.log(placeholders.domain);
// return allowed tags programmatically
}
}
This would make complex, domain-driven setups more expressive and easier to maintain.
michaelbe812 and yngvebn