检查项目的 package.json 文件,去除不必要的依赖。
package.json
使用 depcheck 检查无用依赖:
depcheck
npm install depcheck --save-dev运行 depcheck:npx depcheck根据输出结果去除无用的依赖。