message: Fixed using lodash-es in cjs target
diff: @@ -27,10 +27,16 @@ const useLodashEs = () => ({
  const common = {
  input: 'src/index.js',
  - plugins: [
  +}
  +
  +const createCommonPlugins = ({ es = true } = {}) => [
  babel({
  exclude: 'node_modules/**',
  - plugins: ['styled-components', 'external-helpers', useLodashEs],
  + plugins: [
  + 'styled-components',
  + 'external-helpers',
  + es && useLodashEs,
  + ].filter(Boolean),
  }),
  commonjs({
  include: /node_modules/,
  @@ -40,8 +46,7 @@ const common = {
  },
  }),
  filesize(),
  - ],
  -}
  +]
  const main = Object.assign({}, common, {
  output: {
  @@ -51,7 +56,7 @@ const main = Object.assign({}, common, {
  exports: 'named',
  },
  external: makeExternalPredicate(allExternal),
  - plugins: common.plugins.concat([resolve()]),
  + plugins: createCommonPlugins({ es: false }).concat([resolve()]),
  })
  const module = Object.assign({}, common, {
  @@ -60,7 +65,7 @@ const module = Object.assign({}, common, {
  format: 'es',
  },
  external: makeExternalPredicate(allExternal),
  - plugins: common.plugins.concat([resolve()]),
  + plugins: createCommonPlugins().concat([resolve()]),
  })
  const unpkg = Object.assign({}, common, {
  @@ -75,7 +80,7 @@ const unpkg = Object.assign({}, common, {
  },
  },
  external: makeExternalPredicate(external),
  - plugins: common.plugins.concat([
  + plugins: createCommonPlugins().concat([
  ignore(['stream']),
  uglify(),
  replace({
  