What's Changed
Allow routeTargets
in processRoutes
to be an object containing route target instances. This is to simplify usage of the library.
Now you can do this:
const routes = {
home: new RouteTarget(),
about: new RouteTarget(),
};
const routingTree: RouteRecordRaw[] = ...;
// Process routes without any further transformations
processRoutes(routingTree, routes);
On the development side of things, moved to Vite for bundling, added linting with ESLint and testing with Vitest.
Full Changelog: 0.0.1...0.2.0
Download
Package available at: https://www.npmjs.com/package/vue-smart-routes/v/0.2.0