-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
leverage lodash #914
Comments
I"m totally 👍 on this, but we haven't figured out the best way to package multiple modules for the standalone browser build. (In addition to having npm deps, we also want to split up the singular async.js into one file per method.) The straightforward solution is to use browserify, but it adds a lot or overhead. I wonder how @megawac 's experiments are going.... |
So the basic idea is to default in using a modular build (i.e. a bunch of Rollup doesn't seem quite ready yet, and runs into a couple issues with lodash-es at the moment -- I've been punting on doing a debug session to figure out whats up on that front. |
ES6 seems like it will enable a lot of bundling optimizations -- e.g. when multiple modules depend on the same thing it can probably be pulled into a single var in a parent scope, in addition to cherry-picking single exports. A shame you can't do it confidently today with browserify, since with |
@aearly Pulling in @Rich-Harris for the |
Yeah, that works really nicely for lodash, but it would be great to have something that works across the board for any lib that follows a couple conventions. |
@megawac lmk if there's anything I can do to help figure out the problem(s) – am always grateful for test cases |
I finally took a look at rollup, it seems really interesting! It looks like we could easily use it to build the core async lib from small ES6 modules, then perhaps use browserify or webpack to bundle in npm dependencies for the browser. It looks like rollup isn't handling on |
The biggest issue stalling adoption is to go over open pull requests and
|
@aearly interesting – any chance you could reproduce the bug so we can take a look? This seems to work but I'm probably missing something. Thanks! |
@Rich-Harris I lost the tab where I was playing around with modules, and I can't seem to reproduce it. I probably was doing something that was actually an error. lodash-es6 is worth another shot. @megawac I've gone through the majority of open pull requests. I think I might do a 1.5.0 release, then we can focus on some of these larger changes. |
Good stuff @aearly! |
I updated the es build to separate the default exports into their own modules. |
Closing this since we've done it in #996! |
I know @megawac is experimenting with lodash-es modules to reduce some of the lower level cruft so async can focus on other bits. I'm opening the issue here to give it a bigger spotlight and to encourage discussion/contribution to his experiments. Btw I'm totally open to helping in this area from the lodash side of things.
The text was updated successfully, but these errors were encountered: