We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b0db7 commit 1cb8063Copy full SHA for 1cb8063
packages/react-email/src/cli/utils/preview/hot-reloading/create-dependency-graph.ts
@@ -146,12 +146,10 @@ export const createDependencyGraph = async (directory: string) => {
146
147
if (pathWithExtension) {
148
pathToDependencyFromDirectory = pathWithExtension;
149
- }
150
-
151
- if (isDev) {
+ } else if (isDev) {
152
// only warn about this on development as it is probably going to be irrelevant otherwise
153
console.warn(
154
- `Could not determine the file extension for the file at ${pathWithExtension}`,
+ `Could not determine the file extension for the file at ${pathToDependencyFromDirectory}`,
155
);
156
}
157
0 commit comments