Compiler will now only hash JS & TS files

This commit is contained in:
DJj123dj
2025-02-01 11:23:17 +01:00
parent f2cefae37c
commit 27f6e3a81f
+1 -1
View File
@@ -45,7 +45,7 @@ function computeSourceHash(dir,upperHash){
for (const file of info) {
const fullPath = nodepath.join(dir,file.name)
if (file.isFile()){
if (file.isFile() && [".js",".ts",".jsx",".tsx"].some((ext) => file.name.endsWith(ext))){
const statInfo = fs.statSync(fullPath)
//compute hash using file metadata
const fileInfo = `${fullPath}:${statInfo.size}:${statInfo.mtimeMs}`