From 575f44e4349c6577b1bb0138fbdd793345b9e394 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Sat, 25 Nov 2023 05:34:28 +0100 Subject: [PATCH] Unify lodash imports We currently use all three ways of importing lodash. The one that provides us with the smalles bundle size is. ``` import isEqual from "lodash/isEqual"; ``` So we should use that everywhere --- httpd-client/tests/support/support.ts | 2 +- src/components/HoverPopover.svelte | 2 +- src/components/Thread.svelte | 2 +- src/views/projects/Cob/CobStateButton.svelte | 2 +- src/views/projects/Issue.svelte | 4 +++- src/views/projects/Patch.svelte | 4 +++- tests/support/peerManager.ts | 4 ++-- 7 files changed, 12 insertions(+), 8 deletions(-) diff --git a/httpd-client/tests/support/support.ts b/httpd-client/tests/support/support.ts index 8b2eac64c..b7a8bcced 100644 --- a/httpd-client/tests/support/support.ts +++ b/httpd-client/tests/support/support.ts @@ -1,7 +1,7 @@ import type { HttpdClient } from "@httpd-client"; import { expect } from "vitest"; -import { isMatch } from "lodash"; +import isMatch from "lodash/isMatch"; import { cobRid } from "@tests/support/fixtures"; diff --git a/src/components/HoverPopover.svelte b/src/components/HoverPopover.svelte index 30659e0bd..e02c8752f 100644 --- a/src/components/HoverPopover.svelte +++ b/src/components/HoverPopover.svelte @@ -1,5 +1,5 @@