Skip to content

Commit 615b209

Browse files
committedNov 29, 2024
fix: remove deprecated nodejs api
1 parent 378aac1 commit 615b209

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/rspack/utils.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ export class FakeVirtualModulesPlugin {
2525
fs.mkdirSync(dir, { recursive: true })
2626
}
2727
compiler.hooks.shutdown.tap(this.name, () => {
28-
if (fs.existsSync(dir)) {
29-
fs.rmdirSync(dir, { recursive: true })
30-
}
28+
fs.rmSync(dir, { recursive: true, force: true })
3129
})
3230
}
3331

0 commit comments

Comments
 (0)