I just checked the code and the platform
option for file dependencies does not appear to actually be used. I think the documentation is wrong, so I removed the section referencing the platform. (It's still used for Cordova plugin dependencies though, this only applies to file dependencies.)