一覧へ戻る
elemental-design/rollup-plugin-mdx(新しいタブで開きます)
主要言語: JavaScript
Rollup plugin for mdx.js
- star 数
- 8
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 8
- 最終更新
- 2023/03/04
主要言語: 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 */} }) ] };