From 762c5c7dcb7f928cd6ff689c4facda8b6b6924dd Mon Sep 17 00:00:00 2001 From: hsh <82131679+joeyhuang0235@users.noreply.github.com> Date: Sat, 17 Dec 2022 19:00:03 +0800 Subject: [PATCH] fix: make `vite optimize` prebundle for dev (#11387) fixes https://github.com/vitejs/vite/issues/11005 --- packages/vite/src/node/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/cli.ts b/packages/vite/src/node/cli.ts index cd9abd75348a83..460fb0e5690f56 100644 --- a/packages/vite/src/node/cli.ts +++ b/packages/vite/src/node/cli.ts @@ -277,7 +277,7 @@ cli configFile: options.config, logLevel: options.logLevel, }, - 'build', + 'serve', ) await optimizeDeps(config, options.force, true) } catch (e) {