File tree Expand file tree Collapse file tree 6 files changed +20
-58
lines changed
Expand file tree Collapse file tree 6 files changed +20
-58
lines changed Original file line number Diff line number Diff line change 8282 "tsdown" : " catalog:build" ,
8383 "typescript" : " catalog:devtools" ,
8484 "unplugin-vue" : " catalog:build" ,
85- "unplugin-vue-router" : " catalog:playground" ,
8685 "vite" : " catalog:build" ,
8786 "vue" : " catalog:frontend" ,
8887 "vue-router" : " catalog:playground" ,
Original file line number Diff line number Diff line change 11import { createApp } from 'vue'
22import { createRouter , createWebHistory } from 'vue-router'
3- // @ts -expect-error skip type check
43import { routes } from 'vue-router/auto-routes'
54
65import App from './App.vue'
Original file line number Diff line number Diff line change 11/* eslint-disable */
22/* prettier-ignore */
3+ // oxfmt-ignore
34// @ts -nocheck
45// noinspection ES6UnusedImports
5- // Generated by unplugin- vue-router. !! DO NOT MODIFY THIS FILE !!
6+ // Generated by vue-router. !! DO NOT MODIFY THIS FILE !!
67// It's recommended to commit this file.
78// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.
89
9- declare module 'vue-router/auto-resolver' {
10- export type ParamParserCustom = never
10+ import type {
11+ RouteRecordInfo ,
12+ ParamValue ,
13+ ParamValueOneOrMore ,
14+ ParamValueZeroOrMore ,
15+ ParamValueZeroOrOne ,
16+ } from 'vue-router'
17+
18+ declare module 'vue-router' {
19+ interface TypesConfig {
20+ ParamParsers :
21+ | never
22+ }
1123}
1224
1325declare module 'vue-router/auto-routes' {
14- import type {
15- RouteRecordInfo ,
16- ParamValue ,
17- ParamValueOneOrMore ,
18- ParamValueZeroOrMore ,
19- ParamValueZeroOrOne ,
20- } from 'vue-router'
21-
2226 /**
23- * Route name map generated by unplugin- vue-router
27+ * Route name map generated by vue-router
2428 */
2529 export interface RouteNamedMap {
2630 '/' : RouteRecordInfo <
@@ -40,7 +44,7 @@ declare module 'vue-router/auto-routes' {
4044 }
4145
4246 /**
43- * Route file to route info map by unplugin- vue-router.
47+ * Route file to route info map by vue-router.
4448 * Used by the \`sfc-typed-router\` Volar plugin to automatically type \`useRoute()\`.
4549 *
4650 * Each key is a file path relative to the project root with 2 properties:
@@ -75,3 +79,5 @@ declare module 'vue-router/auto-routes' {
7579 ? Info [ 'routes' ]
7680 : keyof RouteNamedMap
7781}
82+
83+ export { }
Original file line number Diff line number Diff line change 11import process from 'node:process'
22import Vue from '@vitejs/plugin-vue'
33import UnoCSS from 'unocss/vite'
4- import VueRouter from 'unplugin-vue-router/vite'
54import { defineConfig } from 'vite'
65import Tracer from 'vite-plugin-vue-tracer'
6+ import VueRouter from 'vue-router/vite'
77import { alias } from '../../../alias'
88import { A11yCheckerPlugin } from '../../../examples/plugin-a11y-checker/src/node'
99import { GitUIPlugin } from '../../../examples/plugin-git-ui/src/node'
Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ catalogs:
136136 immer : ^11.1.4
137137 stream-json : ^1.9.1
138138 playground :
139- unplugin-vue-router : ^0.19.2
140139 vite-plugin-vue-tracer : ^1.3.0
141140 vue-router : ^5.0.4
142141 resolutions :
You can’t perform that action at this time.
0 commit comments