Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/plugin-dts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ export const pluginDts = (options: PluginDtsOptions = {}): RsbuildPlugin => ({
const killProcesses = () => {
for (const childProcess of childProcesses) {
if (!childProcess.killed) {
childProcess.kill();
try {
childProcess.kill();
// silent kill error, such as: kill EPERM error on windows
// https://github.com/nodejs/node/issues/51766
} catch (_err) {}
}
}
childProcesses = [];
Expand Down
Loading