diff --git a/rebar.config.script b/rebar.config.script index 02efadf..8e9493f 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -1,6 +1,6 @@ application:start(compiler), -case {erlang:system_info(version), application:get_key(compiler, vsn)} of - {X, {ok, Y}} when X >= "6.0" andalso Y >= "5.0" -> +case {erlang:system_info(version), application:get_key(compiler, vsn), os:getenv("JSX_NO_MAPS")} of + {X, {ok, Y}, false} when X >= "6.0" andalso Y >= "5.0" -> CONFIG ++ [{erl_opts, [{d, release_supports_maps}]}]; _ -> CONFIG end. \ No newline at end of file