diff --git a/src/errors/extractErrors.ts b/src/errors/extractErrors.ts index 5236e043d..d5fb00ce0 100644 --- a/src/errors/extractErrors.ts +++ b/src/errors/extractErrors.ts @@ -42,7 +42,7 @@ export async function extractErrors(opts: any) { const errorMapFilePath = opts.errorMapFilePath; let existingErrorMap: any; try { - // Using `fs.readFileSync` instead of `require` here, because `require()` + // Using `fs.readFile` instead of `require` here, because `require()` // calls are cached, and the cache map is not properly invalidated after // file changes. existingErrorMap = JSON.parse(await fs.readFile(errorMapFilePath, 'utf8'));