Skip to content

Commit bef18b9

Browse files
authored
chore(deps): remove unnecessary unplugin-vue-router (#239)
1 parent d10c161 commit bef18b9

File tree

6 files changed

+20
-58
lines changed

6 files changed

+20
-58
lines changed

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
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",

packages/core/playground/src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { createApp } from 'vue'
22
import { createRouter, createWebHistory } from 'vue-router'
3-
// @ts-expect-error skip type check
43
import { routes } from 'vue-router/auto-routes'
54

65
import App from './App.vue'

packages/core/playground/typed-router.d.ts

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
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

1325
declare 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 {}

packages/core/playground/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import process from 'node:process'
22
import Vue from '@vitejs/plugin-vue'
33
import UnoCSS from 'unocss/vite'
4-
import VueRouter from 'unplugin-vue-router/vite'
54
import { defineConfig } from 'vite'
65
import Tracer from 'vite-plugin-vue-tracer'
6+
import VueRouter from 'vue-router/vite'
77
import { alias } from '../../../alias'
88
import { A11yCheckerPlugin } from '../../../examples/plugin-a11y-checker/src/node'
99
import { GitUIPlugin } from '../../../examples/plugin-git-ui/src/node'

pnpm-lock.yaml

Lines changed: 0 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)