add a rebar.config option to disable maps
This commit is contained in:
parent
6d589f6766
commit
8f5af8a85c
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
% uncomment to disable encoding support for erlang maps
|
||||
% {jsx_nomaps, true}.
|
|
@ -1,4 +1,4 @@
|
|||
case os:getenv("JSX_NOMAPS") of
|
||||
case os:getenv("JSX_NOMAPS") or proplists:get_value(jsx_nomaps, CONFIG, false) of
|
||||
false ->
|
||||
try file:script("config/maps") of
|
||||
{ok, true} -> [{erl_opts, [{d, release_supports_maps}]}] ++ CONFIG;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue