Skip to content

Conversation

@rschristian
Copy link
Member

@rschristian rschristian commented Feb 5, 2021

What kind of change does this PR introduce?

Bugfix

Did you add tests for your changes?

No

Summary

Closes #1526

The logic for seeing if a port was already in use came after the user-provided port (or the default, 8080) was assigned to the devServer and plugins. This meant that plugins like Prefresh were given say port 8080 to run on, but the server actually ended up listening on 45454 because 8080 was taken.

Does this PR introduce a breaking change?

No

@changeset-bot
Copy link

changeset-bot bot commented Feb 5, 2021

🦋 Changeset detected

Latest commit: a1f9c20

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rschristian rschristian marked this pull request as ready for review February 7, 2021 04:10
@rschristian rschristian requested a review from a team as a code owner February 7, 2021 04:10
@ForsakenHarmony ForsakenHarmony merged commit bf668b1 into preactjs:master Mar 6, 2021
@preact-bot preact-bot mentioned this pull request Mar 6, 2021
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

Successfully merging this pull request may close these issues.

Hot reloading / prefresh does not work when preact watch uses a randomized port as a backup

2 participants