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

Implicitly return value when a function is passed #8

Open
lewie9021 opened this issue Oct 27, 2015 · 1 comment
Open

Implicitly return value when a function is passed #8

lewie9021 opened this issue Oct 27, 2015 · 1 comment

Comments

@lewie9021
Copy link
Owner

It's rather tedious using functions when composing. For example:

config.merge(function(current) {
    current.entry = "./app.entry.js";

    return current;
});

I think it would be great to omit the return statement here making it a little nicer to use. Of course you could still use the return statement if you wish to transform the value in a weird and wonderful way, but I don't think it should be required in cases like this.

@vjpr
Copy link

vjpr commented Oct 27, 2015

👍

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