conditionalize exported resources