Skip to content

Commit 1e8292e

Browse files
committed
fix: use Code.ensure_compiled!/1 to ensure extensions are compiled
1 parent fee1553 commit 1e8292e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/spark/formatter.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ if Code.ensure_loaded?(Sourceror) do
304304
|> Enum.concat(config[:extensions] || [])
305305
|> Enum.concat(type.default_extensions() || [])
306306
|> Enum.flat_map(fn extension ->
307+
Code.ensure_compiled!(extension)
307308
[extension | extension.add_extensions()]
308309
end)
309310
end

0 commit comments

Comments
 (0)