We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 247ec9c commit f0692fdCopy full SHA for f0692fd
special-pages/watch.mjs
@@ -48,11 +48,13 @@ writeTimestamp();
48
});
49
50
const ctx = await esbuild.context(opts);
51
- const { host, port } = await ctx.serve({
+ const { hosts, port } = await ctx.serve({
52
servedir: publicDir,
53
54
await ctx.watch({});
55
- console.log(`serving '${relative(CWD, publicDir)}' at http://${host}:${port}`);
+ for (const host of hosts) {
56
+ console.log(`serving '${relative(CWD, publicDir)}' at http://${host}:${port}`);
57
+ }
58
}
59
60
// also watch things outside of esbuild, like translations/types
0 commit comments