Skip to content

Commit c553c57

Browse files
authored
Merge pull request #5641 from rtibbles/lodash_loproblems
Update lodash imports to avoid unnecessary bundling.
2 parents ea3f6c9 + 2eab0a7 commit c553c57

6 files changed

Lines changed: 8 additions & 7 deletions

File tree

contentcuration/contentcuration/frontend/administration/composables/useKeywordSearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { debounce } from 'lodash';
1+
import debounce from 'lodash/debounce';
22
import { ref, computed, onBeforeMount, watch } from 'vue';
33
import { useRoute } from 'vue-router/composables';
44
import { useQueryParams } from './useQueryParams';

contentcuration/contentcuration/frontend/administration/composables/useQueryParams.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { pickBy } from 'lodash';
1+
import pickBy from 'lodash/pickBy';
22
import { useRouter } from 'vue-router/composables';
33

44
/**

contentcuration/contentcuration/frontend/administration/composables/useTable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { pickBy, isEqual } from 'lodash';
1+
import pickBy from 'lodash/pickBy';
2+
import isEqual from 'lodash/isEqual';
23
import { ref, computed, unref, watch, nextTick } from 'vue';
34
import { useRoute } from 'vue-router/composables';
45
import { useQueryParams } from './useQueryParams';

contentcuration/contentcuration/frontend/administration/pages/Channels/ChannelTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
144144
import { mapGetters, mapActions } from 'vuex';
145145
import { getCurrentInstance, onMounted, ref, computed, watch } from 'vue';
146-
import { transform } from 'lodash';
146+
import transform from 'lodash/transform';
147147
import { RouteNames, rowsPerPageItems } from '../../constants';
148148
import { useTable } from '../../composables/useTable';
149149
import { useKeywordSearch } from '../../composables/useKeywordSearch';

contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/image/ImageNodeView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
7070
import { defineComponent, ref, computed, onUnmounted, onMounted, watch } from 'vue';
7171
import { NodeViewWrapper } from '@tiptap/vue-2';
72-
import _ from 'lodash';
72+
import debounce from 'lodash/debounce';
7373
7474
export default defineComponent({
7575
name: 'ImageNodeView',
@@ -89,7 +89,7 @@
8989
let resizeListeners = null;
9090
9191
// Create debounced version of saveSize function
92-
const debouncedSaveSize = _.debounce(() => {
92+
const debouncedSaveSize = debounce(() => {
9393
props.updateAttributes({
9494
width: width.value,
9595
height: height.value,

contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/composables/useModalPositioning.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ref, watch } from 'vue';
2-
import { throttle } from 'lodash';
2+
import throttle from 'lodash/throttle';
33
import { isTouchDevice } from 'shared/utils/browserInfo';
44

55
export function useModalPositioning() {

0 commit comments

Comments
 (0)