fix(compile): Gather dependencies as part of compile process

Compile process was not dynamically gathering dependencies as the build
process did, resulting in them being excluded from the compiled source.