v8.0.0
8.0.0 (2021-11-18)
Features
BREAKING CHANGES
- The first argument to
bundleMDX
has been removed in favor of asource
andfile
option.
const mdxSource = `
---
title: foo
---
Some content
`
// old
bundleMDX(mdxSource, {
// some options
})
// new
bundleMDX({
source: mdxSource,
// some options
})
const filePath = path.join(process.cwd(), 'sample.mdx')
//old
bundleMDXFile(fiilePath, {
// some options
})
// new
bundleMDX({
file: filePath,
// some options
})