Skip to content

Support for URL Pattern API #552

@neoncube2

Description

@neoncube2

Any thoughts on adding support for the new URL Pattern API that's supported in newer browsers?

In theory, this would let wouter lose a dependency on path-to-regexp, which would further reduce bundle size :)

Since browser support for this is pretty new, I'm thinking it'd probably make sense for this to be part of a separate package, e.g. import { useRoute, Route, Switch } from "wouter-url-pattern-api";, but maybe there's a better way to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions