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.
Any thoughts on adding support for the new URL Pattern API that's supported in newer browsers?
In theory, this would let
wouterlose 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.