We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4982ba6 commit 3043356Copy full SHA for 3043356
src/com/google/javascript/jscomp/DefaultPassConfig.java
@@ -289,6 +289,10 @@ protected List<PassFactory> getChecks() {
289
checks.add(createSyntheticBlocks);
290
}
291
292
+ if (!options.skipNonTranspilationPasses) {
293
+ checks.add(checkVars);
294
+ }
295
+
296
// Late ES6 transpilation.
297
// Includes ES6 features that are best handled natively by the compiler.
298
// As we convert more passes to handle these features, we will be moving the transpilation
@@ -317,8 +321,6 @@ protected List<PassFactory> getChecks() {
317
321
318
322
// End of ES6 transpilation passes.
319
323
320
- checks.add(checkVars);
-
324
if (options.inferConsts) {
325
checks.add(inferConsts);
326
0 commit comments