Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve CommonJS UMD pattern detection.
Checks to see if the enclosing "if" test references the "module" or "define" names. Prevents exports nested in IF clauses from being always detected as a UMD pattern when they may just be performing a conditional export. Closes #2963 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=199227525
- Loading branch information
1 parent
dbc0888
commit 9009ecb
Showing
2 changed files
with
77 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters