We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1586498 commit 9800b60Copy full SHA for 9800b60
1 file changed
mix.exs
@@ -43,7 +43,15 @@ defmodule ImageLensCorrection.MixProject do
43
# cannot be scoped to `:dev` here.
44
{:sweet_xml, "~> 0.7"},
45
{:ex_doc, "~> 0.34", only: [:dev], runtime: false}
46
- ]
+ ] ++ maybe_json_polyfill()
47
+ end
48
+
49
+ defp maybe_json_polyfill do
50
+ if Code.ensure_loaded?(:json) do
51
+ []
52
+ else
53
+ [{:json_polyfill, "~> 0.2 or ~> 1.0"}]
54
55
end
56
57
defp package do
0 commit comments