Back to results
elemental-design/rollup-plugin-mdx(opens in a new tab)
Language: JavaScript
Rollup plugin for mdx.js
- stars
- 8
- watchers
- 1
- forks
- 0
- open issues
- 8
- Last updated
- 03/04/2023
Language: JavaScript
Rollup plugin for mdx.js
Import mdx/md markdown files into your app. Runs ("@babel/core").transformSync(code) on the output.
npm install --save-dev rollup-plugin-mdx
// rollup.config.js import mdx from 'rollup-plugin-mdx'; export default { input: 'src/index.js', output: [{ file: 'dist/bundle.cjs.js', format: 'cjs' }], plugins: [ mdx({ // .md and .mdx files are parsed by default, include: 'node_modules/**', exclude: [ 'node_modules/foo/**', 'node_modules/bar/**' ], // ...mdxOptions babelOptions: {/* custom options */} }) ] };