diff --git a/tools/scan_deps.js b/tools/scan_deps.js index 0c8bc4e1..c75023bc 100644 --- a/tools/scan_deps.js +++ b/tools/scan_deps.js @@ -217,7 +217,8 @@ function scanFiles(filePaths, provideMap, requireMap) { var realPath = pathMod.resolve(path); var contents = fsMod.readFileSync(realPath).toString().split('\n'); contents.forEach(function(line) { - var ns = extractNamespace(line, 'goog.require'); + var ns = extractNamespace(line, 'goog.requireType') || + extractNamespace(line, 'goog.require'); if (ns) { requireMap.set(realPath, ns); }