Skip to content

chore(serve): remove promise return from serve package #1091

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

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

knagaitsev
Copy link
Contributor

What kind of change does this PR introduce?
refactoring

Did you add tests for your changes?
No

If relevant, did you update the documentation?
No

Summary

I don't think there is a need for the serve package to return a Promise. Users should not be using the package for its API, and it is not logical exactly when the Promise should resolve.

As mentioned by @evilebottnawi here: #1011 (comment), there is no need to have an additional onListening.

Does this PR introduce a breaking change?

Yes

Other information

@webpack-bot
Copy link

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

@ematipico ematipico merged commit 2144a1b into webpack:next Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants