|
11 | 11 | // "checkJs": true, /* Report errors in .js files. */ |
12 | 12 | "jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */, |
13 | 13 | "declaration": true /* Generates corresponding '.d.ts' file. */, |
14 | | - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ |
15 | | - // "sourceMap": true, /* Generates corresponding '.map' file. */ |
| 14 | + "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ |
| 15 | + "sourceMap": true, /* Generates corresponding '.map' file. */ |
16 | 16 | // "outFile": "./", /* Concatenate and emit output to single file. */ |
17 | 17 | "outDir": "./dist/esm" /* Redirect output structure to the directory. */, |
18 | 18 | "rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */, |
19 | | - // "composite": true, /* Enable project compilation */ |
| 19 | + "composite": true, /* Enable project compilation */ |
20 | 20 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ |
21 | 21 | // "removeComments": true, /* Do not emit comments to output. */ |
22 | 22 | // "noEmit": true, /* Do not emit outputs. */ |
23 | | - // "importHelpers": true, /* Import emit helpers from 'tslib'. */ |
| 23 | + "importHelpers": true, /* Import emit helpers from 'tslib'. */ |
24 | 24 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ |
25 | | - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ |
| 25 | + "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ |
26 | 26 |
|
27 | 27 | /* Strict Type-Checking Options */ |
28 | 28 | "strict": true /* Enable all strict type-checking options. */, |
|
67 | 67 |
|
68 | 68 | /* Advanced Options */ |
69 | 69 | "skipLibCheck": true /* Skip type checking of declaration files. */, |
70 | | - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ |
| 70 | + "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, |
| 71 | + "plugins": [ |
| 72 | + { "transform": "transformer-cjs-imports" } |
| 73 | + ] |
71 | 74 | }, |
72 | | - "include": ["./src/*", "./src/**/*"] |
| 75 | + "include": ["./src/*", "./src/**/*"], |
| 76 | + "exclude": [ |
| 77 | + "**/**.test.tsx", |
| 78 | + "**/**.test.ts", |
| 79 | + "**/examples/**", |
| 80 | + "**/__mocks__/**" |
| 81 | + ] |
73 | 82 | } |
0 commit comments