From c2098c33617c210df56ed76cf889a6efe4a1eb62 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 7 Oct 2023 18:53:23 -0500 Subject: [PATCH] Fix lodash imports to get rid of unnecessary extra chunk --- src/features/chats/components/chat-message.tsx | 2 +- src/features/quotes/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/chats/components/chat-message.tsx b/src/features/chats/components/chat-message.tsx index 9b65eabf9..c4134a48b 100644 --- a/src/features/chats/components/chat-message.tsx +++ b/src/features/chats/components/chat-message.tsx @@ -1,7 +1,7 @@ import { useMutation } from '@tanstack/react-query'; import clsx from 'clsx'; import { List as ImmutableList, Map as ImmutableMap } from 'immutable'; -import { escape } from 'lodash'; +import escape from 'lodash/escape'; import React, { useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; diff --git a/src/features/quotes/index.tsx b/src/features/quotes/index.tsx index 6ba38fe10..7b0d057fe 100644 --- a/src/features/quotes/index.tsx +++ b/src/features/quotes/index.tsx @@ -1,5 +1,5 @@ import { OrderedSet as ImmutableOrderedSet } from 'immutable'; -import { debounce } from 'lodash'; +import debounce from 'lodash/debounce'; import React from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { useParams } from 'react-router-dom';