UNPKG

@berun/runner-mdx-frontmatter

Version:

BeRun runner for using yaml frontmatter with MDX documentation applications

14 lines (11 loc) 330 B
import Berun from '@berun/berun' export default (berun: Berun, options = {}) => { if (!('webpack' in berun)) { throw new Error( 'MDX FrontMatter files only supported by webpack runners currently' ) } berun.when('webpack' in berun, (berun) => berun.use(require('./webpack-preset').default, options) ) }