Skip to content

Commit ae552ce

Browse files
committed
stop deleting the first dev version files on the first change, prevents system failures
1 parent abd99aa commit ae552ce

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/cli-v3/src/dev/devSession.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,6 @@ export async function startDevSession({
148148
if (bundled) {
149149
eventBus.emit("rebuildStarted", "dev");
150150
}
151-
152-
const outdir = b.initialOptions.outdir;
153-
if (outdir && existsSync(outdir)) {
154-
logger.debug("Removing outdir", { outdir });
155-
156-
rmSync(outdir, { recursive: true, force: true });
157-
mkdirSync(outdir, { recursive: true });
158-
}
159151
});
160152
b.onEnd(async (result: esbuild.BuildResult) => {
161153
const errors = result.errors;

0 commit comments

Comments
 (0)