Skip to content

Recompilation speedup: Avoid `use Phoenix.Swoosh` to prevent recompiling the Endpoint

Alex Gleason requested to merge cycles-email into develop

#2651 (closed)

This MR breaks a compile dep from UserEmail to EmailView, fixing a cycle and reducing many others: https://www.diffchecker.com/1Hgy2rub

use Phoenix.Swoosh, view: Pleroma.Web.EmailView, ... creates a compile dep

Instead of use, I've just produced the same outcome by adding the needed imports and functions manually.

I tried an alternate solution here, which leads to the same outcome: develop...9d89e173

But in the end, this way is actually less complicated.

Merge request reports