Internal change for selecting a different tsetse plugin
PiperOrigin-RevId: 221537009
diff --git a/internal/tsc_wrapped/tsc_wrapped.ts b/internal/tsc_wrapped/tsc_wrapped.ts
index d98ec95..b430874 100644
--- a/internal/tsc_wrapped/tsc_wrapped.ts
+++ b/internal/tsc_wrapped/tsc_wrapped.ts
@@ -2,7 +2,7 @@
import * as tsickle from 'tsickle';
import * as ts from 'typescript';
-import {PLUGIN as tsetsePlugin} from '../tsetse/runner';
+import {PLUGIN as bazelConformancePlugin} from '../tsetse/runner';
import {CachedFileLoader, FileLoader, ProgramAndFileCache, UncachedFileLoader} from './cache';
import {CompilerHost} from './compiler_host';
@@ -68,7 +68,8 @@
});
}
if (!bazelOpts.isJsTranspilation) {
- program = tsetsePlugin.wrap(program, disabledTsetseRules);
+ let selectedTsetsePlugin = bazelConformancePlugin;
+ program = selectedTsetsePlugin.wrap(program, disabledTsetseRules);
}
// TODO(alexeagle): support plugins registered by config