Add compileFile with fixed recursive import resolution
Add specs for import resolution