Skip to content

Commit 14506d2

Browse files
fix(vite): support incremental building when running 'serve' (#18797)
1 parent 4846ae5 commit 14506d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/vite/src/utils/executor-utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export function createBuildableTsConfig(
4040
context.projectGraph,
4141
context.root,
4242
context.projectName,
43-
context.targetName,
43+
// When using incremental building and the serve target is called
44+
// we need to get the deps for the 'build' target instead.
45+
context.targetName === 'serve' ? 'build' : context.targetName,
4446
context.configurationName
4547
);
4648
// this tsconfig is used via the vite ts paths plugin

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy