Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 {