Skip to content

Commit

Permalink
Update { Configuration } import in worker.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks authored and JounQin committed Dec 1, 2023
1 parent 474ddcb commit 2d17526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-mdx/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export const processorCache = new Map<string, FrozenProcessor>()
const getRemarkConfig = async (searchFrom: string) => {
if (!config) {
const { Configuration } = await loadEsmModule<
typeof import('unified-engine/lib/configuration')
>('unified-engine/lib/configuration.js')
typeof import('unified-engine')
>('unified-engine')
config = new Configuration({
cwd: process.cwd(),
packageField: 'remarkConfig',
Expand Down

0 comments on commit 2d17526

Please sign in to comment.