better cache context

This commit is contained in:
Nacho Codoñer
2025-03-26 15:19:50 +01:00
parent 49a639955b
commit c4e8fd4c4e

View File

@@ -157,7 +157,7 @@ BCp.processOneFileForTarget = function (inputFile, source) {
if (shouldUseSwc) {
// Create a cache key based on the source hash and the compiler used.
const cacheKey = toBeAdded.hash;
const cacheContext = 'swc-cache';
const cacheContext = '.swc-cache';
// Check RAM cache
compilation = self._swcCache[cacheKey];