Skip to content

Commit 3b2c84c

Browse files
committed
chore: fix type errors
1 parent ca56ffd commit 3b2c84c

File tree

4 files changed

+232
-271
lines changed

4 files changed

+232
-271
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@
5252
"taze": "catalog:",
5353
"typescript": "catalog:",
5454
"ua-parser-js": "catalog:",
55-
"unimport": "^3.14.5",
55+
"unimport": "catalog:",
5656
"unocss": "catalog:",
5757
"vite-hot-client": "catalog:",
5858
"vue": "catalog:",
5959
"vue-tsc": "catalog:"
6060
},
6161
"resolutions": {
62-
"esbuild": "^0.23.1",
62+
"esbuild": "catalog:",
6363
"typescript": "catalog:",
6464
"vite": "catalog:",
6565
"vue-tsc": "catalog:"

packages/devtools/src/integrations/vite-inspect.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
import type { Plugin } from 'vite'
2-
import type { ViteInspectAPI, Options as ViteInspectOptions } from 'vite-plugin-inspect'
2+
import type { ViteInspectAPI, ViteInspectOptions } from 'vite-plugin-inspect'
33
import type { NuxtDevtoolsServerContext } from '../types'
44
import { addCustomTab } from '@nuxt/devtools-kit'
55
import { addVitePlugin } from '@nuxt/kit'
66

77
export async function createVitePluginInspect(options?: ViteInspectOptions): Promise<Plugin> {
8-
// const { version } = await import('vite')
9-
// const major = Number.parseInt(version.split('.')[0], 10)
10-
11-
// if (major < 6) {
12-
// return await import('vite-plugin-inspect-legacy').then(r => r.default(options))
13-
// }
14-
// else {
158
return await import('vite-plugin-inspect').then(r => r.default(options))
16-
// }
179
}
1810

1911
export async function setup({ nuxt, rpc }: NuxtDevtoolsServerContext) {

0 commit comments

Comments
 (0)