From 8161689c5ca7142882322afc94d8de7b870f5f09 Mon Sep 17 00:00:00 2001 From: dpapad Date: Tue, 19 May 2020 15:51:01 -0700 Subject: [PATCH] Update build script to accept "goog.requireType". --- tools/scan_deps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }