add momentjs as optional dependency when using custom date patterns on client side