fix: coerce the number

This commit is contained in:
cha0s 2022-03-22 00:57:27 -05:00
parent 3976078beb
commit 820e390744

View File

@ -79,7 +79,7 @@ class Compiler {
cacheKey += `:${env}`;
}
const cached = this.constructor.cache[cacheKey];
const {mtime} = +statSync(request);
const mtime = +statSync(request).mtime;
if (cached && cached.mtime === mtime) {
return {
cached: cached.value,