Skip to content

Commit 24334d9

Browse files
snitin315alexander-akait
authored andcommitted
refactor: resolve TODO for devServer.stdin
1 parent 49b6aea commit 24334d9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/serve/src/index.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,7 @@ class ServeCommand {
118118

119119
const servers: typeof DevServer[] = [];
120120

121-
if (cli.needWatchStdin(compiler) || devServerCLIOptions.stdin) {
122-
// TODO remove in the next major release
123-
// Compatibility with old `stdin` option for `webpack-dev-server`
124-
// Should be removed for the next major release on both sides
125-
if (devServerCLIOptions.stdin) {
126-
delete devServerCLIOptions.stdin;
127-
}
128-
121+
if (cli.needWatchStdin(compiler)) {
129122
process.stdin.on("end", () => {
130123
Promise.all(
131124
servers.map((server) => {

0 commit comments

Comments
 (0)