File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/react-email/src/cli/utils/preview/hot-reloading Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ export const createDependencyGraph = async (directory: string) => {
272
272
await updateModuleDependenciesInGraph ( pathToModified ) ;
273
273
}
274
274
break ;
275
- case 'addDir' :
275
+ case 'addDir' : {
276
276
const filesInsideAddedDirectory =
277
277
await readAllFilesInsideDirectory ( pathToModified ) ;
278
278
const modulesInsideAddedDirectory =
@@ -281,12 +281,13 @@ export const createDependencyGraph = async (directory: string) => {
281
281
await updateModuleDependenciesInGraph ( filePath ) ;
282
282
}
283
283
break ;
284
+ }
284
285
case 'unlink' :
285
286
if ( isJavascriptModule ( pathToModified ) ) {
286
287
removeModuleFromGraph ( pathToModified ) ;
287
288
}
288
289
break ;
289
- case 'unlinkDir' :
290
+ case 'unlinkDir' : {
290
291
const filesInsideDeletedDirectory =
291
292
await readAllFilesInsideDirectory ( pathToModified ) ;
292
293
const modulesInsideDeletedDirectory =
@@ -295,6 +296,7 @@ export const createDependencyGraph = async (directory: string) => {
295
296
removeModuleFromGraph ( filePath ) ;
296
297
}
297
298
break ;
299
+ }
298
300
}
299
301
} ,
300
302
{
You can’t perform that action at this time.
0 commit comments