From 3d33e3e77cad0e82e7cb6b75a117bd715932ecc0 Mon Sep 17 00:00:00 2001 From: Timothy Date: Thu, 31 Oct 2024 15:40:44 +0800 Subject: [PATCH] Add support for react 19 rc (#46) * add react 19 rc support * update compile option type --- packages/@contentlayer/core/src/plugin.ts | 4 ++-- packages/contentlayer/package.json | 2 +- 2 files changed, 3 insertions(+), 3 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 = { /** diff --git a/packages/contentlayer/package.json b/packages/contentlayer/package.json index 229afc1c..87c30f92 100644 --- a/packages/contentlayer/package.json +++ b/packages/contentlayer/package.json @@ -1,6 +1,6 @@ { "name": "contentlayer2", - "version": "0.5.1", + "version": "0.5.2", "bin": "./bin/cli.cjs", "type": "module", "engines": {