Skip to content

Commit

Permalink
run build
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 26, 2024
1 parent ca7d0a8 commit 7817c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/resolveSilent.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const specifierSuffixes = ['', '.js', '.json', '/index.js', '/index.json'];
* @returns {boolean} `true` if the file exists and is a file, otherwise `false`.
*/
function existsFile(filename) {
return fs.existsSync(filename) && fs.statSync(filename).isFile();
return fs.statSync(filename, { throwIfNoEntry: false })?.isFile() ?? false;
}

/**
Expand Down

0 comments on commit 7817c16

Please sign in to comment.