www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - In DUB, how do I conditionally compile code based on optional

There is a question on SO: 
https://stackoverflow.com/questions/45697469/in-dub-how-do-i-conditionally-compile-code-based-on-optional-dependencies

I have found the answer, but I am interesting is there any doc 
about this?
Aug 16