Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bonkalol committed Dec 28, 2024
1 parent 56a856e commit b0afc69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/webpack/plugins/async-chunks-plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ class Index {

asyncChunks.forEach((chunk) => {
chunk.files.forEach((file) => {
fs.rmSync(path.join(compiler.options.output.path, file));
const pathToFile = path.join(compiler.options.output.path, file);
if (fs.existsSync(pathToFile)) {
fs.rmSync(path.join(compiler.options.output.path, file));
}
});
});
}
Expand Down

0 comments on commit b0afc69

Please sign in to comment.