diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -3,10 +3,8 @@ var path = require('path');
 
 function routesResolver(filePath) {
   var ngModule = require(filePath).default || require(filePath);
-  if (ngModule.routes && ngModule.routes.length) {
-    return ngModule.routes;
-  }
-  return [];
+  var routes = ngModule.routes || require(filePath).routes || [];
+  return routes;
 }
 
 function resolveNgRoute(srcPath, config, defaultFile, resolver) {
refactor: check for routes in both default and export