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

make underscore's source es6 friendly #2557

Closed
tnga opened this issue Jun 25, 2016 · 8 comments
Closed

make underscore's source es6 friendly #2557

tnga opened this issue Jun 25, 2016 · 8 comments

Comments

@tnga
Copy link
Contributor

tnga commented Jun 25, 2016

I plan to start working on underscore's source port to es6 usage. The goal is to have something like:

// full importation
import * as _ from 'underscore';

// or
// partial importation
import {_base} as _ from 'underscore';
import {isElement} as _.isElement from 'underscore';

This is firstly for some of my projects and i'am still thinking the best approach.

Is there actually a works or planifications for that ?

@akre54
Copy link
Collaborator

akre54 commented Jun 29, 2016

You can already do that.

We won't be supporting ES6 module exports in Underscore source for some time though.

@dreamalligator
Copy link

would be nice to have module exports

@mesqueeb
Copy link

How about now?

@jashkenas jashkenas reopened this Jun 28, 2018
@jashkenas
Copy link
Owner

Maybe now is a good time?

@tnga
Copy link
Contributor Author

tnga commented Jun 29, 2018

Following can be a proposal since it have been release few days after have opened this issue.

https://github.com/tnga/underscore-es

@mhkeller
Copy link

Is this still something planned?

@jgonggrijp
Copy link
Collaborator

@mhkeller This is already implemented. See #2826, which was released with version 1.10.

Thanks for making me aware of this ticket, closing now.

@mhkeller
Copy link

Ah so cool! Thanks @jgonggrijp!

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

7 participants