From 974ac542338e924c89b53185eeb74f00eec7f6a3 Mon Sep 17 00:00:00 2001 From: Nan72 Date: Fri, 14 Feb 2025 11:31:15 +0700 Subject: [PATCH] feat(camel): ref for easier tree shaking --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0f83622..c0286e7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,12 @@ import { clipboard, expose, HeadlessCommand, toast } from "@kksh/api/headless" -import _ from "lodash" +import camelCase from "lodash/camelcase" class CamelCaseExt extends HeadlessCommand { async load() { if (!await clipboard.hasText()) return; const clipboardText = await clipboard.readText(); - const convertedText = _.camelCase(clipboardText); + const convertedText = camelCase(clipboardText); await clipboard.writeText(convertedText); await toast.success(`Copied: "${convertedText}"`);