Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.
devjiwonchoiPublic archive

About

Use MDX in your React App

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

remote-mdx

Important

DISCLAIMER: Please use next-mdx-remote instead.

Why Another Remote MDX?

The initial purpose of this fork was to work around the issue with Next.js turbo, but I found some inefficiencies in the original package.

After getting inspired by this discussion, I decided to maintain this fork as a separate package, and am planning to continuously sync with the original package.

So... Why Should I Use This?

  • Package Size: Reduced 50% of the original package size.
  • Fully Typed: Does not depend on allowJS or any type.
  • Module: Native ESM, no internal commonjs resolution that breaks --turbo.

Migrating from next-mdx-remote

remote-mdx is a drop-in replacement for next-mdx-remote. You can simply replace the import statement and it should work as expected.

- import { serialize } from 'next-mdx-remote/serialize'
+ import { serialize } from 'remote-mdx/serialize'

- import { MDXRemote } from 'next-mdx-remote'
+ import { MDXRemote } from 'remote-mdx'

- import { MDXRemote } from 'next-mdx-remote/rsc'
+ import { MDXRemote } from 'remote-mdx/rsc'

- import { compileMDX } from 'next-mdx-remote/rsc'
+ import { compileMDX } from 'remote-mdx/rsc'

About

Use MDX in your React App

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages