Skip to content

Commit 537da12

Browse files
authored
chore: remove lodash-es and use es-toolkit instead (#170)
1 parent c253853 commit 537da12

File tree

5 files changed

+44
-27
lines changed

5 files changed

+44
-27
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"@vueuse/core": "^13.1.0",
3434
"ant-design-vue": "^4.2.6",
3535
"dayjs": "^1.11.13",
36+
"es-toolkit": "^1.36.0",
3637
"is-url": "^1.2.4",
37-
"lodash-es": "^4.17.21",
3838
"pinia": "^3.0.2",
3939
"pixi-live2d-display": "^0.4.0",
4040
"pixi.js": "^6.5.10",
@@ -49,7 +49,6 @@
4949
"@iconify-json/solar": "^1.2.2",
5050
"@tauri-apps/cli": "^2.5.0",
5151
"@types/is-url": "^1.2.32",
52-
"@types/lodash-es": "^4.17.12",
5352
"@types/node": "^22.14.1",
5453
"@unocss/eslint-plugin": "^66.0.0",
5554
"@vitejs/plugin-vue": "^5.2.3",

pnpm-lock.yaml

Lines changed: 40 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow'
33
import { error } from '@tauri-apps/plugin-log'
44
import { openUrl } from '@tauri-apps/plugin-opener'
55
import { useEventListener } from '@vueuse/core'
6+
import { isString } from 'es-toolkit'
67
import isURL from 'is-url'
7-
import { isString } from 'lodash-es'
88
import { onMounted } from 'vue'
99
import { RouterView } from 'vue-router'
1010

src/composables/useModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { LogicalSize } from '@tauri-apps/api/dpi'
22
import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow'
3-
import { round } from 'lodash-es'
3+
import { round } from 'es-toolkit'
44
import { computed, watch } from 'vue'
55

66
import live2d from '../utils/live2d'

src/composables/useThemeVars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { theme } from 'ant-design-vue'
2-
import { kebabCase } from 'lodash-es'
2+
import { kebabCase } from 'es-toolkit'
33

44
export function useThemeVars() {
55
const { defaultAlgorithm, darkAlgorithm, defaultConfig } = theme

0 commit comments

Comments
 (0)