Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add babel-plugin-lodash as a default plugin and make it configurable for cherry-picking imports #141

Closed
insin opened this issue Jul 26, 2016 · 2 comments

Comments

@insin
Copy link
Owner

insin commented Jul 26, 2016

Quoting @jdalton from a create-react-app issue:

babel-plugin-lodash works for non-lodash packages too. You just specify an "id" in its plugin options to be that of your package or as an array of package ids you want it to work for.

"plugins": [
  ["lodash", { "id":  ["async", "lodash-bound", "ramda"] }]
]

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

What should the configuration for this be called? Calling it lodash would be about the implementation rather than the feature.

Perhaps cherryPick, taking a list of ids to be added?

@jdalton
Copy link

jdalton commented Jul 26, 2016

Eventually I'll split babel-plugin-lodash out into a legit generic cherry-pick plugin :)

@insin
Copy link
Owner Author

insin commented Jul 26, 2016

Sweet - that detail will be hidden from the end-user pov when it happens.

This is one of the main features I was looking forward to Webpack 2 for, can't wait to use it without having to upgrade first 👍

insin added a commit that referenced this issue Jul 26, 2016
…ut transpiling to cherry-picked submodules

Fixes #141
@insin insin closed this as completed in 5445d21 Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants