Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return imports.some(i =>
path
.join(path.parse(result.file).dir, path.parse(result.file).name)
.endsWith(path.join(path.parse(i).dir, path.parse(i).name))
)
return imports.some(i =>
path
.join(path.parse(result.file).dir, path.parse(result.file).name)
.endsWith(path.join(path.parse(i).dir, path.parse(i).name))
)