Skip to content

Commit e23cfae

Browse files
rsbhclaude
andauthored
fix: migrate lodash to lodash-es for ESM compatibility (#66)
Replace lodash with lodash-es for proper ESM exports. Fixes "does not provide an export named 'default'" error in Vite dev. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 28eae37 commit e23cfae

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

bun.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/chronicle/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@biomejs/biome": "^2.3.13",
2424
"@raystack/tools-config": "0.56.0",
2525
"@types/hast": "^3.0.4",
26-
"@types/lodash": "^4.17.23",
26+
"@types/lodash-es": "^4.17.12",
2727
"@types/mdast": "^4.0.4",
2828
"@types/mdx": "^2.0.13",
2929
"@types/node": "^25.1.0",
@@ -59,7 +59,7 @@
5959
"glob": "^11.0.0",
6060
"gray-matter": "^4.0.3",
6161
"h3": "^2.0.1-rc.16",
62-
"lodash": "^4.17.23",
62+
"lodash-es": "^4.17.23",
6363
"mermaid": "^11.13.0",
6464
"nitro": "3.0.260311-beta",
6565
"openapi-types": "^12.1.3",

packages/chronicle/src/components/ui/search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
MagnifyingGlassIcon
55
} from '@heroicons/react/24/outline';
66
import { Command, IconButton, Text } from '@raystack/apsara';
7-
import debounce from 'lodash/debounce';
7+
import { debounce } from 'lodash-es';
88
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
99
import { useNavigate } from 'react-router';
1010
import { MethodBadge } from '@/components/api/method-badge';

packages/chronicle/src/types/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import uniqBy from 'lodash/uniqBy.js'
1+
import { uniqBy } from 'lodash-es'
22
import { z } from 'zod'
33

44
const logoSchema = z.object({

0 commit comments

Comments
 (0)