Skip to content

Commit

Permalink
fix(vite.config): error only when dupe (#6228)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJS authored May 5, 2024
1 parent fc27771 commit 5858fb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion starters/apps/base/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,7 @@ function errorOnDuplicatesPkgDeps(
`;

// Throw an error with the constructed message.
throw new Error(msg);
if (duplicateDeps.length > 0) {
throw new Error(msg);
}
}

0 comments on commit 5858fb8

Please sign in to comment.