diff --git a/java/src/com/google/template/soy/jssrc/internal/GenJsCodeVisitor.java b/java/src/com/google/template/soy/jssrc/internal/GenJsCodeVisitor.java
index <HASH>..<HASH> 100644
--- a/java/src/com/google/template/soy/jssrc/internal/GenJsCodeVisitor.java
+++ b/java/src/com/google/template/soy/jssrc/internal/GenJsCodeVisitor.java
@@ -469,10 +469,12 @@ final class GenJsCodeVisitor extends AbstractSoyNodeVisitor<List<String>> {
     SortedSet<String> requiredObjectTypes = ImmutableSortedSet.of();
     if (hasStrictParams(soyFile)) {
       requiredObjectTypes = getRequiredObjectTypes(soyFile);
+      jsCodeBuilder.appendLine("/** @suppress {extraRequire} */");
       jsCodeBuilder.appendLine("goog.require('goog.asserts');");
     }
 
     if (jsSrcOptions.getUseGoogIsRtlForBidiGlobalDir()) {
+      jsCodeBuilder.appendLine("/** @suppress {extraRequire} */");
       jsCodeBuilder.appendLine("goog.require('", GOOG_IS_RTL_NAMESPACE, "');");
     }
Add @suppress {extraRequire} for goog.require()s that may not be used, in generated JS code. This allows projects to turn on extraRequire as an error.
-------------
Created by MOE: <URL>