vuejs / router

🚦 The official router for Vue.js
https://router.vuejs.org/
MIT License
3.95k stars 1.19k forks source link

export `parseURL` function from `packages/router/src/location.ts` #2384

Closed sardor01 closed 1 month ago

sardor01 commented 1 month ago

What problem is this solving

I want to use parseURL utility function from packages/router/src/location.ts

Proposed solution

I think it would be enough to export parseURL function in packages/router/src/index.ts file:


export { parseURL, START_LOCATION_NORMALIZED as START_LOCATION } from './location'
posva commented 1 month ago

Utility functions are kept internal to avoid unnecessary breaking changes. Feel free to copy the function or write your own version with new URL()