Rollback of "Move type removal to happen just after ambiguation"
@@ -799,8 +799,6 @@ public final class DefaultPassConfig extends PassConfig {
passes.add(ambiguateProperties);
}
- passes.add(removeTypes);
-
if (options.propertyRenaming == PropertyRenamingPolicy.ALL_UNQUOTED) {
passes.add(renameProperties);
}
@@ -873,6 +871,8 @@ public final class DefaultPassConfig extends PassConfig {
passes.add(latePeepholeOptimizations);
}
+ passes.add(removeTypes);
+
if (options.anonymousFunctionNaming == AnonymousFunctionNamingPolicy.UNMAPPED) {
passes.add(nameUnmappedAnonymousFunctions);
}
