瀏覽代碼

perf: 移除md5依赖

xingyu 2 年之前
父節點
當前提交
a123097f1f
共有 2 個文件被更改,包括 2 次插入6 次删除
  1. 1 3
      package.json
  2. 1 3
      vite.config.ts

+ 1 - 3
package.json

@@ -37,7 +37,6 @@
     "echarts-wordcloud": "^2.0.0",
     "element-plus": "2.2.9",
     "intro.js": "^6.0.0",
-    "js-md5": "^0.7.3",
     "lodash-es": "^4.17.21",
     "mitt": "^3.0.0",
     "mockjs": "^1.1.0",
@@ -60,7 +59,6 @@
     "@intlify/vite-plugin-vue-i18n": "^5.0.0",
     "@purge-icons/generated": "^0.8.1",
     "@types/intro.js": "^5.1.0",
-    "@types/js-md5": "^0.4.3",
     "@types/lodash-es": "^4.17.6",
     "@types/node": "^18.0.6",
     "@types/nprogress": "^0.2.0",
@@ -107,7 +105,7 @@
     "windicss-analysis": "^0.3.5"
   },
   "engines": {
-    "node": ">= 14.0.0"
+    "node": ">= 14.18.0"
   },
   "license": "MIT",
   "repository": {

+ 1 - 3
vite.config.ts

@@ -20,7 +20,6 @@ function pathResolve(dir: string) {
   return resolve(root, '.', dir)
 }
 
-// https://vitejs.dev/config/
 export default ({ command, mode }: ConfigEnv): UserConfig => {
   let env = {} as any
   const isBuild = command === 'build'
@@ -146,8 +145,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
         'intro.js',
         'qrcode',
         '@wangeditor/editor',
-        '@wangeditor/editor-for-vue',
-        'js-md5'
+        '@wangeditor/editor-for-vue'
       ]
     }
   }