Skip to content

Commit 3d33e3e

Browse files
authored
Add support for react 19 rc (#46)
* add react 19 rc support * update compile option type
1 parent 36934ab commit 3d33e3e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/@contentlayer/core/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { fs } from '@contentlayer2/utils'
22
import type { E, HasClock, HasConsole, OT, S, T } from '@contentlayer2/utils/effect'
3-
import type * as mdxEsbuild from '@mdx-js/esbuild/lib'
3+
import type { CompileOptions } from '@mdx-js/mdx'
44
import type * as mdxBundler from 'mdx-bundler/dist/types'
55
import type { LiteralUnion } from 'type-fest'
66
import type * as unified from 'unified'
@@ -85,7 +85,7 @@ export type MDXOptions = {
8585
resolveCwd?: 'relative' | 'contentDirPath'
8686
} & Omit<mdxBundler.BundleMDXOptions<any>, 'mdxOptions'>
8787

88-
export type MDXBundlerMapOptions = (options: mdxEsbuild.CompileOptions) => mdxEsbuild.CompileOptions
88+
export type MDXBundlerMapOptions = (options: CompileOptions) => CompileOptions
8989

9090
export type DateOptions = {
9191
/**

packages/contentlayer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "contentlayer2",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"bin": "./bin/cli.cjs",
55
"type": "module",
66
"engines": {

0 commit comments

Comments
 (0)