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