biofriction-wp-theme/node_modules/babel-loader/lib/utils/exists.js

13 lines
234 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
"use strict";
module.exports = function (fileSystem, filename) {
var exists = false;
try {
exists = fileSystem.statSync(filename).isFile();
} catch (err) {
if (err.code !== "ENOENT") throw err;
}
return exists;
};