diff --git a/compiler/src/gen_abc_plugin.ts b/compiler/src/gen_abc_plugin.ts index 30dc6c07c8a7780573c50198bb6a0fe7bcd1d7f7..cf67942c72a4d26a85bfca22df9607e2e9761d8d 100644 --- a/compiler/src/gen_abc_plugin.ts +++ b/compiler/src/gen_abc_plugin.ts @@ -841,7 +841,7 @@ function writeHashJson(): void { process.exitCode = FAIL; break; } - if (!fs.existsSync(abcFile)) { + if (process.env.cachePath !== undefined) { mkdirsSync(path.dirname(abcFile)); fs.copyFileSync(cacheAbcFilePath, abcFile); }