Skip to content

Commit

Permalink
Add support for react 19 rc (#46)
Browse files Browse the repository at this point in the history
* add react 19 rc support
* update compile option type
  • Loading branch information
timlrx authored Oct 31, 2024
1 parent 36934ab commit 3d33e3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/@contentlayer/core/src/plugin.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -85,7 +85,7 @@ export type MDXOptions = {
resolveCwd?: 'relative' | 'contentDirPath'
} & Omit<mdxBundler.BundleMDXOptions<any>, 'mdxOptions'>

export type MDXBundlerMapOptions = (options: mdxEsbuild.CompileOptions) => mdxEsbuild.CompileOptions
export type MDXBundlerMapOptions = (options: CompileOptions) => CompileOptions

export type DateOptions = {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/contentlayer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "contentlayer2",
"version": "0.5.1",
"version": "0.5.2",
"bin": "./bin/cli.cjs",
"type": "module",
"engines": {
Expand Down

0 comments on commit 3d33e3e

Please sign in to comment.