aswi2020vldc-gitlab/templetes/node_modules/babel-loader/lib/utils/exists.js @ 3a515b92
1 |
"use strict"; |
---|---|
2 |
|
3 |
module.exports = function (fileSystem, filename) { |
4 |
var exists = false; |
5 |
|
6 |
try { |
7 |
exists = fileSystem.statSync(filename).isFile(); |
8 |
} catch (err) { |
9 |
if (err.code !== "ENOENT") throw err; |
10 |
}
|
11 |
|
12 |
return exists; |
13 |
};
|