Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Update build script to accept "goog.requireType".
Browse files Browse the repository at this point in the history
  • Loading branch information
freshp86 authored and arthurhsu committed May 19, 2020
1 parent ce17576 commit 8161689
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/scan_deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8161689

Please sign in to comment.