Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
theDetective = detectiveSass;
break;
case 'less':
theDetective = detectiveLess;
break;
case 'scss':
theDetective = detectiveScss;
break;
case 'stylus':
theDetective = detectiveStylus;
break;
case 'ts':
theDetective = detectiveTypeScript;
break;
case 'tsx':
theDetective = detectiveTypeScript.tsx;
break;
}
if (theDetective) {
dependencies = theDetective(ast, options[type]);
} else {
debug('no detective found for: ' + type);
}
// For non-JS files that we don't parse
if (theDetective && theDetective.ast) {
precinct.ast = theDetective.ast;
}
return dependencies;
}