The README and require for the dependency-with-global example reference a library called my-3d-library, which does not exist anywhere that I could find (not in this repository, not an actual NPM package), causing build.js to fail. It appears that perhaps the library was .gitignored out of the checkin.