Skip to content

Commit

Permalink
refactor: resolve TODO for devServer.stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 authored and alexander-akait committed Nov 17, 2022
1 parent 49b6aea commit 24334d9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/serve/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,7 @@ class ServeCommand {

const servers: typeof DevServer[] = [];

if (cli.needWatchStdin(compiler) || devServerCLIOptions.stdin) {
// TODO remove in the next major release
// Compatibility with old `stdin` option for `webpack-dev-server`
// Should be removed for the next major release on both sides
if (devServerCLIOptions.stdin) {
delete devServerCLIOptions.stdin;
}

if (cli.needWatchStdin(compiler)) {
process.stdin.on("end", () => {
Promise.all(
servers.map((server) => {
Expand Down

0 comments on commit 24334d9

Please sign in to comment.