Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[Mode.ReactJSX](config?: ProjectLayout) {
if (!config || !config.sourceDir) {
throw new Error('Source directory not provided');
}
return parseReactJSXRoutes(config.sourceDir);
},
[Mode.PreactJSX](config?: ProjectLayout) {