diff --git a/src/com/google/javascript/jscomp/DefaultPassConfig.java b/src/com/google/javascript/jscomp/DefaultPassConfig.java
index <HASH>..<HASH> 100644
--- a/src/com/google/javascript/jscomp/DefaultPassConfig.java
+++ b/src/com/google/javascript/jscomp/DefaultPassConfig.java
@@ -204,6 +204,11 @@ public final class DefaultPassConfig extends PassConfig {
     // Verify JsDoc annotations
     checks.add(checkJsDoc);
 
+    // goog.module rewrite must happen even if options.skipNonTranspilationPasses is set.
+    if (options.closurePass) {
+      checks.add(closureRewriteModule);
+    }
+
     if (options.getLanguageIn() == LanguageMode.ECMASCRIPT6_TYPED
         && options.getLanguageOut() != LanguageMode.ECMASCRIPT6_TYPED) {
       checks.add(convertEs6TypedToEs6);
@@ -220,11 +225,6 @@ public final class DefaultPassConfig extends PassConfig {
       checks.add(es6RewriteDestructuring);
     }
 
-    // goog.module rewrite must happen even if options.skipNonTranspilationPasses is set.
-    if (options.closurePass) {
-      checks.add(closureRewriteModule);
-    }
-
     if (!options.skipNonTranspilationPasses && options.declaredGlobalExternsOnWindow) {
       checks.add(declaredGlobalExternsOnWindow);
     }
Moving ClosureRewriteModule before early transpilation
-------------
Created by MOE: <URL>