From b0d91b7252894678ac0ad54de19dfdc0295f481b Mon Sep 17 00:00:00 2001 From: Timothy Lin Date: Thu, 31 Oct 2024 15:30:45 +0800 Subject: [PATCH] update compile option type --- packages/@contentlayer/core/src/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@contentlayer/core/src/plugin.ts b/packages/@contentlayer/core/src/plugin.ts index ac7e99a7..8b469152 100644 --- a/packages/@contentlayer/core/src/plugin.ts +++ b/packages/@contentlayer/core/src/plugin.ts @@ -1,6 +1,6 @@ import type { fs } from '@contentlayer2/utils' import type { E, HasClock, HasConsole, OT, S, T } from '@contentlayer2/utils/effect' -import type * as mdxEsbuild from '@mdx-js/esbuild/lib' +import type { CompileOptions } from '@mdx-js/mdx' import type * as mdxBundler from 'mdx-bundler/dist/types' import type { LiteralUnion } from 'type-fest' import type * as unified from 'unified' @@ -85,7 +85,7 @@ export type MDXOptions = { resolveCwd?: 'relative' | 'contentDirPath' } & Omit, 'mdxOptions'> -export type MDXBundlerMapOptions = (options: mdxEsbuild.CompileOptions) => mdxEsbuild.CompileOptions +export type MDXBundlerMapOptions = (options: CompileOptions) => CompileOptions export type DateOptions = { /**