Change `replace` option to `preserve`
Just pass `map` option to `resolveValue()`