From 39b854c0c32d14ce4d2e79120c382a82a89b2f63 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 21 Jun 2026 08:31:34 +0800 Subject: [PATCH] fix: rename default ipc socket --- src/server.ts | 2 +- tests/e2e/ipc.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server.ts b/src/server.ts index 0fedf28..3ef1508 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1008,7 +1008,7 @@ class Server< if (typeof options.ipc === 'boolean') { const isWindows = process.platform === 'win32'; const pipePrefix = isWindows ? '\\\\.\\pipe\\' : os.tmpdir(); - const pipeName = 'webpack-dev-server.sock'; + const pipeName = 'rspack-dev-server.sock'; options.ipc = path.join(pipePrefix, pipeName); } diff --git a/tests/e2e/ipc.test.js b/tests/e2e/ipc.test.js index 4f625d2..a236e5d 100644 --- a/tests/e2e/ipc.test.js +++ b/tests/e2e/ipc.test.js @@ -116,7 +116,7 @@ describe('web socket server URL', () => { it(`should work with the "ipc" option using "string" value ("${webSocketServer}")`, async () => { const isWindows = process.platform === 'win32'; const pipePrefix = isWindows ? '\\\\.\\pipe\\' : os.tmpdir(); - const pipeName = `webpack-dev-server.${process.pid}-1.sock`; + const pipeName = `rspack-dev-server.${process.pid}-1.sock`; const ipc = path.join(pipePrefix, pipeName); const devServerHost = '127.0.0.1'; @@ -220,7 +220,7 @@ describe('web socket server URL', () => { const isWindows = process.platform === 'win32'; const localRelative = path.relative(process.cwd(), `${os.tmpdir()}/`); const pipePrefix = isWindows ? '\\\\.\\pipe\\' : localRelative; - const pipeName = `webpack-dev-server.${process.pid}-2.sock`; + const pipeName = `rspack-dev-server.${process.pid}-2.sock`; const ipc = path.join(pipePrefix, pipeName); const ipcServer = await new Promise((resolve, reject) => {