diff --git a/.vscode/settings.json b/.vscode/settings.json index 7a73a41..00ad71f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,2 +1,3 @@ { + "typescript.tsdk": "node_modules\\typescript\\lib" } \ No newline at end of file diff --git a/package.json b/package.json index 4beb143..57cf05e 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,6 @@ "antd-mobile-icons": "^0.3.0", "classnames": "^2.3.1", "crypto-browserify": "3.12.0", - "readable-stream": "3.6.2", "crypto-js": "^4.1.1", "dayjs": "^1.11.5", "echarts": "^5.3.0", @@ -95,6 +94,7 @@ "react-responsive": "^9.0.0-beta.10", "react-router-dom": "^6.4.0", "react-slick": "^0.29.0", + "readable-stream": "3.6.2", "rmc-pull-to-refresh": "^1.0.13", "uuid": "^8.3.2" }, @@ -205,7 +205,8 @@ "webpack": "^5.86.0", "webpack-dev-server": "^4.15.1", "webpack-manifest-plugin": "^4.0.2", - "workbox-webpack-plugin": "^6.4.1" + "workbox-webpack-plugin": "^6.4.1", + "typescript-plugin-css-modules": "^5.1.0" }, "browserslist": { "production": [ @@ -230,4 +231,4 @@ "readable-stream": "3.6.2" } } -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 7b638cc..a3dd027 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,11 @@ "dom.iterable", "esnext" ], + "plugins": [ + { + "name": "typescript-plugin-css-modules", + }, + ], //"outDir": "lib", /* Redirect output structure to the directory. */ //"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ "types": [