feat: pass conditions
when resolving modules
#11859
Merged
conditions
when resolving modules
#11859