Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

generic version? #85

Closed
modosc opened this issue Jul 1, 2016 · 1 comment
Closed

generic version? #85

modosc opened this issue Jul 1, 2016 · 1 comment
Labels

Comments

@modosc
Copy link

modosc commented Jul 1, 2016

first, thanks for this plugin.

i'm curious if you'd be open to having a generic version of this module available ( maybe babel-plugin-cherry-picker)?

i made 2 small modifications to the codebase (defaultIds in config.js and the hard-coded id == 'lodash' check in importModule.js) and i managed to use it to cherry-pick unused modules from react-bootstrap. i'm imagining there are other modules that would find this advantageous too.

for now i plan on forking and creating a separate plugin that's basically identical except my changes but having a centralized place for all the code would be cool and probably really useful.

@jdalton
Copy link
Member

jdalton commented Jul 1, 2016

You can use this now by specifying the "id" option.
If you have changes to make it more generic I'm all for it. Send over a PR :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants