Have you considered using https://github.com/visjs-community/visjs-network rather than the (now unmaintained) vis.js project as the source for your vis.js dependency?