How to use the babel-plugin-react-docgen.default function in babel-plugin-react-docgen

To help you get started, we’ve selected a few babel-plugin-react-docgen examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github doczjs / docz / packages / babel-preset-docz / src / config.ts View on Github external
require('babel-plugin-macros'),
    require('@babel/plugin-transform-destructuring').default,
    [
      require('@babel/plugin-proposal-class-properties').default,
      { loose: true },
    ],
    [
      require('@babel/plugin-proposal-object-rest-spread').default,
      { useBuiltIns: true },
    ],
    [
      require('@babel/plugin-transform-runtime').default,
      { helpers: false, regenerator: true },
    ],
    opts.parseProps && [
      require('babel-plugin-react-docgen').default,
      { resolver: 'findAllExportedComponentDefinitions' },
    ],
    require('babel-plugin-docz').default,
    opts.env.prod && [
      require('babel-plugin-transform-react-remove-prop-types').default,
      { removeImport: true },
    ],
    !opts.env.test && [
      require('@babel/plugin-transform-regenerator').default,
      { async: false },
    ],
    require('@babel/plugin-syntax-dynamic-import').default,
    opts.env.test && [require('babel-plugin-transform-dynamic-import').default],
  ].filter(Boolean)

  return {

babel-plugin-react-docgen

Babel plugin to add react-docgen info into your code

MIT
Latest version published 4 years ago

Package Health Score

68 / 100
Full package analysis

Popular babel-plugin-react-docgen functions