1
0
mirror of https://github.com/kihashi/stardew_community_checklist.git synced 2025-10-19 08:03:17 +00:00

Import lodash.orderBy directly

Reduces SearchView bundle size by 69.7% (77.12 kB -> 23.37 kB)
This commit is contained in:
lachie-underhill 2023-06-05 18:02:10 +10:00
parent 76dc5dedd9
commit 462ecc59b3
No known key found for this signature in database
GPG Key ID: 48057E0D2C37AC20

View File

@ -3,7 +3,7 @@ import ItemCard from '@/components/item-card/ItemCard.vue'
import ItemTable from '@/components/item-table/ItemTable.vue'
import SearchForm from '@/components/search/SearchForm.vue'
import { useGeneralStore } from '@/store'
import _ from 'lodash'
import orderBy from 'lodash/orderBy'
import { computed, ref } from 'vue'
const store = useGeneralStore()
@ -72,7 +72,7 @@ function filterSkills(itemSkills: string[]) {
}
const filteredItems = computed(() => {
return _.orderBy(
return orderBy(
store.items
.filter((item) => !(store.HideCompleted && store.isItemComplete(item.id)))
.filter(