diff --git a/rebar.config b/rebar.config index e69de29..c59e185 100644 --- a/rebar.config +++ b/rebar.config @@ -0,0 +1,2 @@ +% uncomment to disable encoding support for erlang maps +% {jsx_nomaps, true}. \ No newline at end of file diff --git a/rebar.config.script b/rebar.config.script index a9a0f2b..c1e9325 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -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;