Fix error with modularized npm builds.