Skip to content

Commit a0bbe09

Browse files
fix(dashboard): Clear temp dir on compilation
1 parent cb0463d commit a0bbe09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/dashboard/vite/utils/compiler.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ export async function compile(options: CompilerOptions): Promise<CompileResult>
4747
const transformTsConfigPathMappings =
4848
pathAdapter?.transformTsConfigPathMappings ?? defaultPathAdapter.transformTsConfigPathMappings;
4949

50+
// 0. Clear the outputPath
51+
fs.removeSync(outputPath);
52+
5053
// 1. Compile TypeScript files
5154
const compileStart = Date.now();
5255
await compileTypeScript({

0 commit comments

Comments
 (0)