UNPKG

775 BJavaScriptView Raw
1import { tokens, commonTokens } from '@stryker-mutator/api/plugin';
2import { disableTypeChecks } from '@stryker-mutator/instrumenter';
3import { coreTokens } from '../di/index.js';
4import { TSConfigPreprocessor } from './ts-config-preprocessor.js';
5import { MultiPreprocessor } from './multi-preprocessor.js';
6import { DisableTypeChecksPreprocessor } from './disable-type-checks-preprocessor.js';
7createPreprocessor.inject = tokens(commonTokens.injector);
8export function createPreprocessor(injector) {
9 return new MultiPreprocessor([
10 injector.provideValue(coreTokens.disableTypeChecksHelper, disableTypeChecks).injectClass(DisableTypeChecksPreprocessor),
11 injector.injectClass(TSConfigPreprocessor),
12 ]);
13}
14//# sourceMappingURL=create-preprocessor.js.map
\No newline at end of file