fix to stop application loading modules when precompiling assets