From f52304db2a4507778ef54c12a9e6dc2ccca42401 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 27 Jun 2022 15:16:13 +0200 Subject: [PATCH] feat: handle unnested routes --- playground/src/App.vue | 9 +- playground/src/routes/[name].vue | 10 ++ playground/typed-router.d.ts | 21 ++- .../generateRouteRecords.spec.ts.snap | 165 ++++++++++++++---- src/codegen/generateRouteMap.spec.ts | 46 ++--- src/codegen/generateRouteRecords.spec.ts | 51 ++---- src/core/context.ts | 16 +- src/core/treeLeafValue.ts | 3 +- src/core/utils.ts | 14 +- src/index.ts | 2 + src/options.ts | 2 +- 11 files changed, 232 insertions(+), 107 deletions(-) diff --git a/playground/src/App.vue b/playground/src/App.vue index 477886a7a..48342f1fd 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -1,4 +1,9 @@ - +