Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ionic-team/ionic-framework
/ ifExists
Function
ifExists
core/scripts/treeshaking.js:57–59 ·
view source on GitHub ↗
(file)
Source
from the content-addressed store, hash-verified
55
}
56
57
function
ifExists(file) {
58
return
fs.existsSync(file) ? file : null;
59
}
60
61
async
function
check(input) {
62
const
resolved = path.resolve(input);
Callers
1
resolve
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected