In addition to surrounding individual pieces of code with compile-time checks, it is possible to provide completely separate target-specific module alternatives to the compiler. This feature works as follows:
<Module>.hx, it then checks the containing directory for a file called
<target>is the name of the current target.
As an example, we can have the following directory structure:
/somepackage/Example.hx /somepackage/Example.js.hx /Main.hx
Main.hx we can can use
somepackage.Example module. This module is defined in the file