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

Allow import { function name } from lodash #1457

Closed
gajus opened this issue Sep 11, 2015 · 5 comments

Comments

3 participants
@gajus
Copy link

commented Sep 11, 2015

import map from 'lodash/map';
import zipObject from 'lodash/zipObject';

This is a bit annoying.

import {
    map,
    zipObject
} from 'lodash';

would be a lot nicer.

It doesn't necessarily need to come straight from 'lodash' (although I do not see a problem with that), but it needs to come from the same file, e.g.

import {
    map,
    zipObject
} from 'lodash';

Remembering which functions belong to which category puts unnecessary mental strain.

@jdalton

This comment has been minimized.

Copy link
Member

commented Sep 11, 2015

I'm adding this to the ES6 build at the moment. You might check out babel-plugin-lodash too.

@jdalton jdalton closed this Sep 11, 2015

@jdalton jdalton added the enhancement label Sep 11, 2015

@gajus

This comment has been minimized.

Copy link
Author

commented Sep 11, 2015

@jdalton
Woah, babel-plugin-lodash is amazeballs.

@jdalton

This comment has been minimized.

Copy link
Member

commented Sep 12, 2015

I've updated the lodash-es branch!

@lagden

This comment has been minimized.

Copy link

commented Sep 29, 2015

@jdalton

🤘 Thanks!

@lock

This comment has been minimized.

Copy link

commented Dec 27, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 27, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.