Skip to content

Commit 3a32837

Browse files
committed
fix: ignore dts kill EPERM error
1 parent c8f15f4 commit 3a32837

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/plugin-dts/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ export const pluginDts = (options: PluginDtsOptions = {}): RsbuildPlugin => ({
167167
const killProcesses = () => {
168168
for (const childProcess of childProcesses) {
169169
if (!childProcess.killed) {
170-
childProcess.kill();
170+
try {
171+
childProcess.kill();
172+
// Temporary fix kill EPERM error on windows
173+
// https://github.com/nodejs/node/issues/51766
174+
} catch (_err) {}
171175
}
172176
}
173177
childProcesses = [];

0 commit comments

Comments
 (0)