Move weakmap to dependencies

_weakmap_ is required during run-time as well, not only development.