Improve tree shaking for lodash and date-fns.

This commit is contained in:
Dermot Duffy
2022-10-09 09:10:56 -07:00
parent 0d09286c8c
commit 9eb97ab0cd
10 changed files with 46 additions and 47 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ import './next-prev-control.js';
import './carousel.js';
import { FrigateCardNextPreviousControl } from './next-prev-control.js';
import { FrigateCardTitleControl } from './title-control.js';
import { debounce } from 'lodash-es';
import debounce from 'lodash-es/debounce';
const getEmptyImageSrc = (width: number, height: number) =>
`data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${width} ${height}"%3E%3C/svg%3E`;