diff --git a/packages/devtools/package.json b/packages/devtools/package.json index 40d4b4898d..5694818e12 100644 --- a/packages/devtools/package.json +++ b/packages/devtools/package.json @@ -75,7 +75,6 @@ "tinyglobby": "catalog:", "unimport": "catalog:", "vite-plugin-inspect": "catalog:", - "vite-plugin-inspect-legacy": "npm:vite-plugin-inspect@0.8.8", "vite-plugin-vue-inspector": "catalog:", "which": "catalog:", "ws": "catalog:" diff --git a/packages/devtools/src/integrations/vite-inspect.ts b/packages/devtools/src/integrations/vite-inspect.ts index b047228541..cb2173d4c9 100644 --- a/packages/devtools/src/integrations/vite-inspect.ts +++ b/packages/devtools/src/integrations/vite-inspect.ts @@ -1,19 +1,19 @@ import type { Plugin } from 'vite' -import type { ViteInspectAPI, ViteInspectOptions } from 'vite-plugin-inspect' +import type { ViteInspectAPI, Options as ViteInspectOptions } from 'vite-plugin-inspect' import type { NuxtDevtoolsServerContext } from '../types' import { addCustomTab } from '@nuxt/devtools-kit' import { addVitePlugin } from '@nuxt/kit' export async function createVitePluginInspect(options?: ViteInspectOptions): Promise { - const { version } = await import('vite') - const major = Number.parseInt(version.split('.')[0], 10) + // const { version } = await import('vite') + // const major = Number.parseInt(version.split('.')[0], 10) - if (major < 6) { - return await import('vite-plugin-inspect-legacy').then(r => r.default(options)) - } - else { - return await import('vite-plugin-inspect').then(r => r.default(options)) - } + // if (major < 6) { + // return await import('vite-plugin-inspect-legacy').then(r => r.default(options)) + // } + // else { + return await import('vite-plugin-inspect').then(r => r.default(options)) + // } } export async function setup({ nuxt, rpc }: NuxtDevtoolsServerContext) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 780d8a0823..d5cc331889 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -343,8 +343,8 @@ catalogs: specifier: ^0.2.4 version: 0.2.4 vite-plugin-inspect: - specifier: ^0.10.3 - version: 0.10.3 + specifier: ~0.8.8 + version: 0.8.8 vite-plugin-vue-inspector: specifier: 5.1.3 version: 5.1.3 @@ -585,10 +585,7 @@ importers: version: 6.0.2(@types/node@22.10.1)(jiti@2.4.0)(sass@1.77.4)(terser@5.19.4)(tsx@4.19.2)(yaml@2.5.0) vite-plugin-inspect: specifier: 'catalog:' - version: 0.10.3(@nuxt/kit@3.14.1592(magicast@0.3.5)(rollup@4.27.4))(rollup@4.27.4)(vite@6.0.2(@types/node@22.10.1)(jiti@2.4.0)(sass@1.77.4)(terser@5.19.4)(tsx@4.19.2)(yaml@2.5.0)) - vite-plugin-inspect-legacy: - specifier: npm:vite-plugin-inspect@0.8.8 - version: vite-plugin-inspect@0.8.8(@nuxt/kit@3.14.1592(magicast@0.3.5)(rollup@4.27.4))(rollup@4.27.4)(vite@6.0.2(@types/node@22.10.1)(jiti@2.4.0)(sass@1.77.4)(terser@5.19.4)(tsx@4.19.2)(yaml@2.5.0)) + version: 0.8.8(@nuxt/kit@3.14.1592(magicast@0.3.5)(rollup@4.27.4))(rollup@4.27.4)(vite@6.0.2(@types/node@22.10.1)(jiti@2.4.0)(sass@1.77.4)(terser@5.19.4)(tsx@4.19.2)(yaml@2.5.0)) vite-plugin-vue-inspector: specifier: 'catalog:' version: 5.1.3(vite@6.0.2(@types/node@22.10.1)(jiti@2.4.0)(sass@1.77.4)(terser@5.19.4)(tsx@4.19.2)(yaml@2.5.0)) @@ -2155,7 +2152,7 @@ packages: resolution: {integrity: sha512-PNRHbydNG5EH8NK4c+izdJlxajIR6GxcUhzsYNRsn6Myep4dsZt0qFCz3rCPnkvgO5FYibDcMqgNHUT+zvjYZw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - eslint: ^9.15.0 + eslint: '>=8.40.0' '@trysound/sax@0.2.0': resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==} @@ -2457,8 +2454,8 @@ packages: '@vitest/eslint-plugin@1.1.12': resolution: {integrity: sha512-iv9K9fz9qRxBo9J/PGSMcLdOFIKqtFZ6THqSVG/jW8CJZFkIWLxPduCTXkbyG6FNKgL49fkv348nSgmfqCU6FA==} peerDependencies: - '@typescript-eslint/utils': ^8.16.0 - eslint: ^9.15.0 + '@typescript-eslint/utils': '>= 8.0' + eslint: '>= 8.57.0' typescript: 5.6.3 vitest: '*' peerDependenciesMeta: @@ -3857,7 +3854,7 @@ packages: resolution: {integrity: sha512-tCNp4fR79Le3dYTPB0dKEv7yFyvGkUCa+Z3yuTrrNGGOxBlXo9Pn0PEgroOZikUQOGjxoGMVKNjrOHcYEdfszg==} engines: {node: '>=18'} peerDependencies: - eslint: ^9.15.0 + eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 eslint-plugin-jsonc@2.18.2: resolution: {integrity: sha512-SDhJiSsWt3nItl/UuIv+ti4g3m4gpGkmnUJS9UWR3TrpyNsIcnJoBRD7Kof6cM4Rk3L0wrmY5Tm3z7ZPjR2uGg==} @@ -6937,16 +6934,6 @@ packages: vue-tsc: optional: true - vite-plugin-inspect@0.10.3: - resolution: {integrity: sha512-7scdthVsZLER/IPvqJddS0PeD+gTWqxls4w+Mob7IniJfeCiTn1qeCi4zyXvgKEuCh2CiNsTjoFhovOWxDXTuw==} - engines: {node: '>=14'} - peerDependencies: - '@nuxt/kit': '*' - vite: ^6.0.2 - peerDependenciesMeta: - '@nuxt/kit': - optional: true - vite-plugin-inspect@0.8.8: resolution: {integrity: sha512-aZlBuXsWUPJFmMK92GIv6lH7LrwG2POu4KJ+aEdcqnu92OAf+rhBnfMDQvxIJPEB7hE2t5EyY/PMgf5aDLT8EA==} engines: {node: '>=14'} @@ -14759,24 +14746,6 @@ snapshots: typescript: 5.6.3 vue-tsc: 2.1.10(typescript@5.6.3) - vite-plugin-inspect@0.10.3(@nuxt/kit@3.14.1592(magicast@0.3.5)(rollup@4.27.4))(rollup@4.27.4)(vite@6.0.2(@types/node@22.10.1)(jiti@2.4.0)(sass@1.77.4)(terser@5.19.4)(tsx@4.19.2)(yaml@2.5.0)): - dependencies: - '@antfu/utils': 0.7.10 - '@rollup/pluginutils': 5.1.3(rollup@4.27.4) - debug: 4.3.7(supports-color@8.1.1) - error-stack-parser-es: 0.1.5 - fs-extra: 11.2.0 - open: 10.1.0 - perfect-debounce: 1.0.0 - picocolors: 1.1.1 - sirv: 3.0.0 - vite: 6.0.2(@types/node@22.10.1)(jiti@2.4.0)(sass@1.77.4)(terser@5.19.4)(tsx@4.19.2)(yaml@2.5.0) - optionalDependencies: - '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.27.4) - transitivePeerDependencies: - - rollup - - supports-color - vite-plugin-inspect@0.8.8(@nuxt/kit@3.14.1592(magicast@0.3.5)(rollup@4.27.4))(rollup@4.27.4)(vite@6.0.2(@types/node@22.10.1)(jiti@2.4.0)(sass@1.77.4)(terser@5.19.4)(tsx@4.19.2)(yaml@2.5.0)): dependencies: '@antfu/utils': 0.7.10 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e67f291fd8..3f5f54742e 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -116,7 +116,7 @@ catalog: vis-network: ^9.1.9 vite: ^6.0.2 vite-hot-client: ^0.2.4 - vite-plugin-inspect: ^0.10.3 + vite-plugin-inspect: ~0.8.8 vite-plugin-vue-inspector: 5.1.3 vitest: ^2.1.8 vue: ^3.5.13