How to use the guess-parser.parseAngularRoutes 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.Angular](config?: ProjectLayout) {
    if (!config || !config.tsconfigPath) {
      throw new Error('Path to tsconfig.json not provided');
    }
    return parseAngularRoutes(config.tsconfigPath);
  },
  [Mode.ReactTSX](config?: ProjectLayout) {

guess-parser

Finds the route declarations in your application.

MIT
Latest version published 3 years ago

Package Health Score

73 / 100
Full package analysis