MCPcopy Index your code
hub / github.com/adaptlearning/adapt_framework / findFile

Function findFile

grunt/tasks/javascript.js:178–186  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

176 const externalMap = options.externalMap;
177
178 const findFile = function(filename) {
179 filename = filename.replace(convertSlashes, '/');
180 const hasValidExtension = extensions.includes(path.parse(filename).ext);
181 if (!hasValidExtension) {
182 const ext = extensions.find(ext => fs.existsSync(filename + ext)) || '';
183 filename += ext;
184 }
185 return filename;
186 };
187
188 const umdImports = options.umdImports.map(filename => findFile(path.resolve(basePath, filename)));
189

Callers 2

javascript.jsFile · 0.85
resolveIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected