From 785b416f52c60ee21aedb144a0f927e7a7d9fdfd Mon Sep 17 00:00:00 2001 From: Prathamesh More Date: Wed, 30 Oct 2024 11:39:55 +0530 Subject: [PATCH] fix: use partial imports for lodash --- src/components/Waveform/Waveform.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Waveform/Waveform.tsx b/src/components/Waveform/Waveform.tsx index d156df5..bbde4f2 100644 --- a/src/components/Waveform/Waveform.tsx +++ b/src/components/Waveform/Waveform.tsx @@ -1,4 +1,8 @@ -import { clamp, floor, head, isEmpty, isNil } from 'lodash'; +import clamp from 'lodash/clamp'; +import floor from 'lodash/floor'; +import head from 'lodash/head'; +import isEmpty from 'lodash/isEmpty'; +import isNil from 'lodash/isNil'; import React, { forwardRef, useEffect,