Skip to content

Commit

Permalink
fix: don't show warning when there are no ef (#6214)
Browse files Browse the repository at this point in the history
* fix: don't show warning when there are no ef

* refactor: move check into processGraph
  • Loading branch information
Skn0tt committed Nov 27, 2023
1 parent acc9498 commit 4027528
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/edge-functions/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ export class EdgeFunctionsRegistry {
*/
private processGraph(graph: ModuleGraph | undefined) {
if (!graph) {
warn('Could not process edge functions dependency graph. Live reload will not be available.')
if (this.functions.length !== 0) {
warn('Could not process edge functions dependency graph. Live reload will not be available.')
}

return
}
Expand Down

1 comment on commit 4027528

@github-actions
Copy link

Choose a reason for hiding this comment

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

📊 Benchmark results

  • Dependency count: 1,396
  • Package size: 404 MB
  • Number of ts-expect-error directives: 0

Please sign in to comment.