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

Support for promises in async plugin apply strategies #11

Closed
andreypopp opened this issue May 23, 2016 · 3 comments
Closed

Support for promises in async plugin apply strategies #11

andreypopp opened this issue May 23, 2016 · 3 comments

Comments

@andreypopp
Copy link

ES2015 Promise is a standard now and Node.js is shipping with them enabled. With
the proposed (and now closer to being a standard) async/await syntax the
support for promises will be even stronger across the ecosystem. Another benefit of
promises is that they make handling errors much easier as user code doesn't need
to propagate error argument of callbacks explicitly.

I propose adding support for promises for async plugin applying strategies in
Tapable in a backward compatible way. Both for provider and consumer code paths.

That would enable Promise based API for plugins for Webpack and also a
way to convert Webpack codebase in the future to Promise based async primitives.

If you are ok with an idea I'm eager to start implementing a draft of the
proposal. What do you think?

@jantimon
Copy link

Had to write a custom wrapper for the html-webpack-plugin.
Would really prefer if tappable would offer it directly.

@pi0
Copy link

pi0 commented Jun 13, 2017

@andreypopp @jantimon You may try tappable project which adds promise support to tapable 👻

@sokra
Copy link
Member

sokra commented Dec 11, 2017

new major supports promises

@sokra sokra closed this as completed Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants