How to use the guess-parser.parsePreactJSXRoutes function in guess-parser

To help you get started, we’ve selected a few guess-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github guess-js / guess / packages / guess-webpack / src / default-route-provider.ts View on Github external
[Mode.PreactJSX](config?: ProjectLayout) {
    if (!config || !config.sourceDir) {
      throw new Error('Source directory not provided');
    }
    return parsePreactJSXRoutes(config.sourceDir);
  },
  [Mode.Gatsby](): RoutingModule[] {

guess-parser

Finds the route declarations in your application.

MIT
Latest version published 4 years ago

Package Health Score

61 / 100
Full package analysis