Added support for multiple modules in the same file
If a dependency is defined later in the same file, then it should not emit a request for the dependency