diff --git a/tsconfig.json b/tsconfig.json index fa6dbdd1..5dd33903 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,45 +1,49 @@ { - "compilerOptions": { - "target": "esnext", - "module": "esnext", - "strict": true, - "jsx": "preserve", - "moduleResolution": "node", - "experimentalDecorators": true, - "skipLibCheck": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "useDefineForClassFields": true, - "sourceMap": true, - "allowJs": true, //编译时允许有js - "baseUrl": ".", - "outDir": "./", - "types": [ - "webpack-env" - ], - "paths": { - "@/*": [ - "src/*" - ] - }, - "lib": [ - "esnext", - "dom", - "dom.iterable", - "scripthost" - ] - }, - "include": [ - "src/**/*.ts", - "src/**/*.tsx", - "src/**/*.vue", - "tests/**/*.ts", - "tests/**/*.tsx", - "src/**/*.js", - - ], - "exclude": [ - "node_modules" - ] -} + "compilerOptions": { + "target": "esnext", + "module": "esnext", + "strict": true, + "jsx": "preserve", + "moduleResolution": "node", + "experimentalDecorators": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "useDefineForClassFields": true, + "resolveJsonModule": true,//引入json文件 + "esModuleInterop": true,//引入json文件 + "sourceMap": true, + "allowJs": true, //编译时允许有js + "baseUrl": ".", + "outDir": "./", + "types": [ + "webpack-env" + ], + "paths": { + "@/*": [ + "src/*" + ] + }, + "lib": [ + "esnext", + "dom", + "dom.iterable", + "scripthost" + ] + }, + "include": [ + "src/**/*.ts", + "src/**/*.tsx", + "src/**/*.vue", + "tests/**/*.ts", + "tests/**/*.tsx", + "src/**/*.js", + "src/**/*.svg", + "src/**/*.gif", + ], + "exclude": [ + "node_modules" + ] + } + \ No newline at end of file