Skip to content

Commit 615b209

Browse files
committed
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

Lines changed: 1 addition & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy