From 636f15246423d65ad5adf1503c31a13e386fe516 Mon Sep 17 00:00:00 2001 From: "Anthony Fu (via agent)" Date: Wed, 19 Aug 2026 07:24:52 +0000 Subject: [PATCH 1/2] perf(devtools): drop launch-editor, ws, sirv, tinyexec & ohash runtime deps Consolidate on devframe's built-in utilities instead of shipping overlapping standalone dependencies: - serve static assets via devframe/utils/serve-static - hash local-options / asset keys via devframe/utils/hash (byte-identical to the previous ohash output, so existing cached keys keep resolving) - open files in the editor via devframe/utils/launch-editor - run the analyze-build git helper via node:child_process - ws was declared but never imported devtools-kit keeps tinyexec (its documented subprocess API) and the module-starter playground keeps sirv (legacy-API demo). --- package.json | 2 - .../client/components/AssetFontPreview.vue | 2 +- packages/devtools/client/nuxt.config.ts | 2 +- packages/devtools/package.json | 8 +-- packages/devtools/src/module-main.ts | 7 +- .../devtools/src/server-rpc/analyze-build.ts | 9 ++- packages/devtools/src/server-rpc/general.ts | 2 +- packages/devtools/src/utils/local-options.ts | 2 +- pnpm-lock.yaml | 71 +------------------ pnpm-workspace.yaml | 5 +- 10 files changed, 19 insertions(+), 91 deletions(-) diff --git a/package.json b/package.json index afc00b40f1..ecf8f0dfb9 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,6 @@ "@nuxt/schema": "catalog:types", "@playwright/test": "catalog:cli", "@types/node": "catalog:types", - "@types/ws": "catalog:types", "@unocss/eslint-config": "catalog:buildtools", "@vitejs/devtools-kit": "catalog:types", "bumpp": "catalog:cli", @@ -57,7 +56,6 @@ "simple-git-hooks": "catalog:cli", "skills-npm": "catalog:buildtools", "taze": "catalog:cli", - "tinyexec": "catalog:prod", "tsx": "catalog:cli", "turbo": "catalog:buildtools", "typescript": "catalog:cli", diff --git a/packages/devtools/client/components/AssetFontPreview.vue b/packages/devtools/client/components/AssetFontPreview.vue index ec8b05423a..08b960df2b 100644 --- a/packages/devtools/client/components/AssetFontPreview.vue +++ b/packages/devtools/client/components/AssetFontPreview.vue @@ -1,7 +1,7 @@