text: 
  import babel from '@rollup/plugin-babel'
  import commonjs from '@rollup/plugin-commonjs'
  import nodeResolve from '@rollup/plugin-node-resolve'
  import replace from '@rollup/plugin-replace'
  import { terser } from 'rollup-plugin-terser'
  import { dependencies, exports, optionalDependencies, peerDependencies, unpkg } from './package.json'
  
  export default process.env.NODE_ENV === 'cjs'
      ? {
          input: 'src/index.js',
          external: new RegExp(`^(${
              Object.keys({
                  ...dependencies,
                  ...optionalDependencies,
                  ...peerDependencies,
              }).join('|')})`),
          output: {
              file: exports['.'].require,
              format: 'cjs',
          },
          plugins: [
              babel({ babelHelpers: 'runtime' }),
              commonjs(),
          ],
      }
      : {
          external: ['@cdoublev/animate', 'react', 'prop-types'],
          input: 'src/index.js',
          output: {
              file: unpkg,
              format: 'umd',
              globals: {
                  '@cdoublev/animate': 'animate',
                  'prop-types': 'PropTypes',
                  'react': 'React',
              },
              name: 'ReactUtils',
          },
          plugins: [
              replace({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV) }),
              nodeResolve(),
              babel({ babelHelpers: 'bundled' }),
              commonjs(),
              terser(),
          ],
      }
  