Skip to content

Commit c1b4671

Browse files
authored
fix: same markdown processor cached for .md and .mdx (#401)
1 parent 154d765 commit c1b4671

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/eslint-mdx/src/worker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ export const getRemarkProcessor = async (
8989
? null
9090
: await explorer.search(searchFrom)
9191

92-
const cacheKey = result ? `${String(isMdx)}-${result.filepath}` : ''
92+
const cacheKey = result
93+
? `${String(isMdx)}-${result.filepath}`
94+
: String(isMdx)
9395

9496
cachedProcessor = processorCache.get(cacheKey)
9597

0 commit comments

Comments
 (0)