Skip to content

Commit

Permalink
Fix regression on Elixir v1.14 and earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Mar 4, 2024
1 parent 181c349 commit 6e12037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/phoenix_live_reload/channel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ defmodule Phoenix.LiveReloader.Channel do
end

defp deps_paths do
if Code.loaded?(Mix.Project) do
# TODO: Use `Code.loaded?` on Elixir v1.15+
if :erlang.module_loaded(Mix.Project) do
for {app, path} <- Mix.Project.deps_paths(), into: %{}, do: {to_string(app), path}
else
%{}
Expand Down

0 comments on commit 6e12037

Please sign in to comment.