fix: Overwrite files with the same name when renaming entrypoints in dev mode

This commit is contained in:
Aaron Klinker
2023-07-02 20:11:21 -05:00
parent 13a713cc28
commit 37986bf230
+1 -1
View File
@@ -53,7 +53,7 @@ export function multipageMove(
const oldAbsPath = resolve(config.outDir, oldBundlePath);
const newAbsPath = resolve(config.outDir, newBundlePath);
await ensureDir(dirname(newAbsPath));
await fs.move(oldAbsPath, newAbsPath);
await fs.move(oldAbsPath, newAbsPath, { overwrite: true });
const renamedChunk = {
...bundle[oldBundlePath],