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
Only load bonjour when needed #958
Conversation
Bonjour doesn't currently work on Windows 10's Bash, so let's not load it if we don't have to.
Codecov Report
@@ Coverage Diff @@
## master #958 +/- ##
=======================================
Coverage 72.13% 72.13%
=======================================
Files 4 4
Lines 463 463
Branches 139 139
=======================================
Hits 334 334
Misses 129 129 Continue to review full report at Codecov.
|
I tested it in my local WSL and it worked perfectly. |
Is this scheduled to be merged at any point? I'm currently using the workaround (which needs to be reimplemented after every npm install) |
Dear maintainers. If you're concerned about the coding style, let's do it like this @@ -8,7 +8,7 @@ const net = require("net");
const portfinder = require("portfinder");
const addDevServerEntrypoints = require("../lib/util/addDevServerEntrypoints");
const createDomain = require("../lib/util/createDomain");
-const bonjour = require("bonjour")();
+const Bonjour = require("bonjour");
// Local version replaces global one
try {
@@ -455,6 +455,7 @@ function reportReadiness(uri, options) {
}
function broadcastZeroconf(options) {
+ const bonjour = Bonjour();
bonjour.publish({
name: "Webpack Dev Server",
port: options.port, Reference |
Anything blocking this? |
It looks like @joelface needs to rebase. I'm not sure if that's blocking anything, but it's an issue per GitHub's PR UI that would prevent an easy merge. |
@drazisil Taken care of. I'm happy to make any changes necessary to get this merged in. |
@SpaceK33z Can you or another maintainer take a look at this PR? It's somewhat blocking for Windows programmers, as npm/yarn install undoes the workaround each time. |
Is this about to be merged in? |
folks, please try to hold off on the multiple comments asking about merge status and pinging contributors. it's awesome that you're all enthusiastic! but unfortunately it only serves to clutter the PR conversation and it's poor form. A much better way to go would be to add your reaction to the original post for this PR. maintainers, contributors, and admins will get to user submissions - webpack is a great org and makes sure that happens - but it's not our full time gig, and rest assured we see all of the notifications. |
What kind of change does this PR introduce?
Bugfix for #955
Did you add or update the
examples/
?n/a
Summary
Fixes #955 so WDS will work again on Windows 10 Bash (as long as the --bonjour option isn't specified).
Does this PR introduce a breaking change?
No