kentcdodds / mdx-bundler

🦤 Give me MDX/TSX strings and I'll give you back a component you can render. Supports imports!
MIT License
1.78k stars 75 forks source link

Support for mdx v3? #220

Closed tonyxiao closed 8 months ago

tonyxiao commented 11 months ago

The main readme says this uses mdx v2, but v3 has been released. Are there plans to support that?

verdverm commented 8 months ago

The 2 big items (there's not much more)

  1. support for await
  2. ES2024

https://mdxjs.com/blog/v3/

verdverm commented 8 months ago

Actually, is this just an outdated readme?

https://github.com/kentcdodds/mdx-bundler/commit/da24af7aaa186244a7a9993258a71338e8c420de

verdverm commented 8 months ago

It is, just tested that { await Promise.resolve(42)} works!

karlhorky commented 8 months ago

@tonyxiao @kentcdodds can this issue be closed now?

verdverm commented 8 months ago

Should probably update the README first

karlhorky commented 8 months ago

@verdverm good point, opened a PR here:

cc @kentcdodds

github-actions[bot] commented 7 months ago

:tada: This issue has been resolved in version 10.0.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: