Recompose: Add babel-plugin-lodash configuration into README

Created on 26 Oct 2016  路  8Comments  路  Source: acdlite/recompose

I think it would be nice to have something like babel-plugin-lodash for recompose. That way, we don't have to define all separate recompose/x imports, while keeping are bundle size small.

If more people think this is a good idea, I'm happy to start a repo for it.

See:
https://github.com/lodash/babel-plugin-lodash

Most helpful comment

Hi, I already submitted a PR for this. Thanks for letting me work on it!

All 8 comments

You can use this plugin with recompose and other modules.

Change babel-plugin-lodash config to:

['lodash', { id: ['lodash', 'recompose'] }]

You can look at test fixture with ramda usecase

Cool! Thanks for pointing that out to me.

We should add this instruction to README.md. Let's use this issue to track it.

HI @wuct. This instruction has been really helpful in our project. Can I add this to the README? (unless someone's already working on it)

@kjcpaas I think there is no one working on it. A PR is appreciated. Thanks in advance!

Hi, I already submitted a PR for this. Thanks for letting me work on it!

@kjcpaas thanks for your contribution!

Closed because it's already in README now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nemocurcic picture nemocurcic  路  3Comments

SeanGroff picture SeanGroff  路  4Comments

istarkov picture istarkov  路  3Comments

cdomigan picture cdomigan  路  4Comments

rndmerle picture rndmerle  路  3Comments