Skip to content

Commit

Permalink
Override potentially expensive compiler options, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Nov 28, 2023
1 parent 4e42ff8 commit c7234b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/knip/src/ProjectPrincipal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@ import type { GlobbyFilterFunction } from 'globby';
const baseCompilerOptions = {
allowJs: true,
allowSyntheticDefaultImports: true,
declaration: false,
declarationMap: false,
esModuleInterop: true,
inlineSourceMap: false,
inlineSources: false,
jsx: ts.JsxEmit.Preserve,
jsxImportSource: undefined,
lib: [],
noEmit: true,
skipDefaultLibCheck: true,
skipLibCheck: true,
sourceMap: false,
};

const tsCreateProgram = timerify(ts.createProgram);
Expand Down

0 comments on commit c7234b7

Please sign in to comment.