smaller bundle sizes when externals used

Instead of adding dummy passthrough code for externals, set the require
key to directly reference the external. This leads to smaller bundle
sizes when external files are referenced.