Skip to content

Commit

Permalink
fix: remove deprecated nodejs api
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 29, 2024
1 parent 378aac1 commit 615b209
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rspack/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ export class FakeVirtualModulesPlugin {
fs.mkdirSync(dir, { recursive: true })
}
compiler.hooks.shutdown.tap(this.name, () => {
if (fs.existsSync(dir)) {
fs.rmdirSync(dir, { recursive: true })
}
fs.rmSync(dir, { recursive: true, force: true })
})
}

Expand Down

0 comments on commit 615b209

Please sign in to comment.