Skip to content

Commit 0558150

Browse files
committed
chore: More debugging
1 parent ad99f52 commit 0558150

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,11 @@ export async function readFromDisk(cwd, compression, pattern, exclude, stripHash
289289
files.map(async (file) => {
290290
try {
291291
const fileContents = await fs.promises.readFile(path.join(cwd, file), 'utf-8');
292+
console.log('Read file', file);
292293
const size = await compressContent(compression, fileContents);
293-
result[stripHash(file)] = size;
294+
console.log('Calculated size for file', file, size);
295+
const strippedHash = stripHash ? stripHash(file) : file;
296+
result[strippedHash] = size;
294297
} catch (err) {
295298
console.log('Error reading file', file, err);
296299
}

0 commit comments

Comments
 (0)