|
2 | 2 | "compilerOptions": { |
3 | 3 | /* Basic Options */ |
4 | 4 | "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ |
5 | | - "module": "es6", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ |
6 | | - // "lib": [], /* Specify library files to be included in the compilation. */ |
| 5 | + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ |
| 6 | + "lib": [ |
| 7 | + "es2015", |
| 8 | + "dom", |
| 9 | + "dom.iterable" |
| 10 | + ], /* Specify library files to be included in the compilation. */ |
7 | 11 | "allowJs": true, /* Allow javascript files to be compiled. */ |
8 | 12 | // "checkJs": true, /* Report errors in .js files. */ |
9 | 13 | "jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ |
|
43 | 47 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ |
44 | 48 | // "typeRoots": [], /* List of folders to include type definitions from. */ |
45 | 49 | // "types": [], /* Type declaration files to be included in compilation. */ |
46 | | - // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ |
| 50 | + "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ |
47 | 51 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ |
48 | 52 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ |
49 | 53 |
|
|
0 commit comments