xdm is a deprecated MDX compiler (ESM-only, no runtime, source maps, automatic JSX runtime, esbuild and Rollup plugins) that was a rewrite of @mdx-js/mdx. Current stable version 3.4.0. All functionality has been ported to mdx-js/mdx; users should migrate. Key differentiators vs @mdx-js/mdx: no Babel, smaller browser bundle, built-in source maps. Release cadence was sporadic (last release 2022). Not maintained, use mdx-js/mdx instead.
npm install xdmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compile an MDX file to JavaScript using the compile() function.
Migrate to mdx-js/mdx: https://mdxjs.com/
Use import instead of require().
xdm compiles to plain JS, no runtime needed.
Use import { compile } from 'xdm' instead of require.Run `npm install xdm`. However, consider using mdx-js/mdx instead.
Use `import { compile } from 'xdm'` (named export).