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