Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
const config = {
filename: entryPath,
directory: process.cwd(),
ast: entryAST,
};
return (
cabinet({ ...config, partial: dependency }) ||
cabinet({ ...config, partial: dependency + '/index' })
);
}
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
const config = {
filename: entryPath,
directory: process.cwd(),
ast: entryAST,
};
return (
cabinet({ ...config, partial: dependency }) ||
cabinet({ ...config, partial: dependency + '/index' })
);
}
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
const config = {
filename: entryPath,
directory: process.cwd(),
ast: entryAST,
};
return (
cabinet({ ...config, partial: dependency }) ||
cabinet({ ...config, partial: dependency + '/index' })
);
}
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
const config = {
filename: entryPath,
directory: process.cwd(),
ast: entryAST,
};
return (
cabinet({ ...config, partial: dependency }) ||
cabinet({ ...config, partial: dependency + '/index' })
);
}
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
const config = {
filename: entryPath,
directory: process.cwd(),
ast: entryAST,
};
return (
cabinet({ ...config, partial: dependency }) ||
cabinet({ ...config, partial: dependency + '/index' })
);
}