Skip to content

Commit

Permalink
fix(vite): support incremental building when running 'serve' (#18797)
Browse files Browse the repository at this point in the history
  • Loading branch information
barbados-clemens authored Aug 24, 2023
1 parent 4846ae5 commit 14506d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/utils/executor-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export function createBuildableTsConfig(
context.projectGraph,
context.root,
context.projectName,
context.targetName,
// When using incremental building and the serve target is called
// we need to get the deps for the 'build' target instead.
context.targetName === 'serve' ? 'build' : context.targetName,
context.configurationName
);
// this tsconfig is used via the vite ts paths plugin
Expand Down

1 comment on commit 14506d2

@vercel
Copy link

@vercel vercel bot commented on 14506d2 Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx.dev
nx-five.vercel.app

Please sign in to comment.