fix for --no-bundle-external and globals
5.0.4