add a rebar.config option to disable maps

This commit is contained in:
alisdair sullivan 2014-04-19 00:10:09 +00:00
parent 6d589f6766
commit 8f5af8a85c
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
% uncomment to disable encoding support for erlang maps
% {jsx_nomaps, true}.

View file

@ -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;