lodash / babel-plugin-lodash

Modular Lodash builds without the hassle.
Other
1.96k stars 92 forks source link

Making clear that this plugin can be used for other libraries as well #160

Closed 0x80 closed 7 years ago

0x80 commented 7 years ago

I was surprised to find out from the docs from recompose that babel-plugin-lodash is not limited to Lodash at all.

{
  "plugins": [
       ["lodash", { id: ["lodash", "recompose"] }]
   ]
}

This allows you to write import { compose, mapProps, withState } from 'recompose'.

Wouldn't it make sense to rename this plugin to something more generic to avoid confusion, or at least mention this use-case in the readme?

jdalton commented 7 years ago

Dup of #154.