Skip to content

Commit 1e538d0

Browse files
Merge pull request #126 from prathameshmm02/master
fix: use partial imports for lodash to reduce bundle size
2 parents 9bff4cd + 785b416 commit 1e538d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Waveform/Waveform.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { clamp, floor, head, isEmpty, isNil } from 'lodash';
1+
import clamp from 'lodash/clamp';
2+
import floor from 'lodash/floor';
3+
import head from 'lodash/head';
4+
import isEmpty from 'lodash/isEmpty';
5+
import isNil from 'lodash/isNil';
26
import React, {
37
forwardRef,
48
useEffect,

0 commit comments

Comments
 (0)