MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / resolve

Function resolve

core/scripts/treeshaking.js:40–46  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

38}
39
40function resolve(file) {
41 if (isDirectory(file)) {
42 return ifExists(`${file}/index.cjs.js`) || ifExists(`${file}/index.js`);
43 }
44
45 return ifExists(file) || ifExists(`${file}.cjs.js`) || ifExists(`${file}.js`);
46}
47
48function isDirectory(file) {
49 try {

Callers 15

server.tsFile · 0.85
server.tsFile · 0.85
rollup.config.jsFile · 0.85
doGlobFunction · 0.85
buildSchematicsFunction · 0.85
cleanupAsyncFunction · 0.85
attachViewToDomMethod · 0.85
removeViewFromDomMethod · 0.85
rollup.config.mjsFile · 0.85
addRippleMethod · 0.85
waitForEventFunction · 0.85
SearchbarClass · 0.85

Calls 2

isDirectoryFunction · 0.85
ifExistsFunction · 0.85

Tested by 1

waitForEventFunction · 0.68