Socket
Book a DemoInstallSign in
Socket

remote-mdx

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote-mdx

Use MDX in your React App

latest
Source
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

remote-mdx

NOTE: This project is rapidly developed for stable v1, and may include a breaking change.

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'

Keywords

md

FAQs

Package last updated on 11 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts