From d60fd2516fcac4e4da6dbba26f43b5f3ac155993 Mon Sep 17 00:00:00 2001 From: LUIDevo <159873777+LUIDevo@users.noreply.github.com> Date: Wed, 24 Jun 2026 10:09:13 -0400 Subject: [PATCH] fix: `wxt clean` removes `.wxt/` directory at project root (#2415) --- packages/wxt/src/core/clean.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wxt/src/core/clean.ts b/packages/wxt/src/core/clean.ts index a9c27a7d..17a283de 100644 --- a/packages/wxt/src/core/clean.ts +++ b/packages/wxt/src/core/clean.ts @@ -39,7 +39,7 @@ export async function clean(config?: string | InlineConfig) { const tempDirs = [ 'node_modules/.vite', 'node_modules/.cache', - '**/.wxt', + '{,**/}.wxt', `${path.relative(root, wxt.config.outBaseDir)}/*`, ]; wxt.logger.debug(