Skip to content

Commit

Permalink
fix(react-email): Improper warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Dec 23, 2024
1 parent 28b0db7 commit 1cb8063
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,10 @@ export const createDependencyGraph = async (directory: string) => {

if (pathWithExtension) {
pathToDependencyFromDirectory = pathWithExtension;
}

if (isDev) {
} else if (isDev) {
// only warn about this on development as it is probably going to be irrelevant otherwise
console.warn(
`Could not determine the file extension for the file at ${pathWithExtension}`,
`Could not determine the file extension for the file at ${pathToDependencyFromDirectory}`,
);
}
}
Expand Down

0 comments on commit 1cb8063

Please sign in to comment.