diff --git a/src/finalisers/umd.js b/src/finalisers/umd.js index c65d8d0..61696db 100644 --- a/src/finalisers/umd.js +++ b/src/finalisers/umd.js @@ -11,7 +11,7 @@ export default function umd ( bundle, magicString, { exportMode, indentString }, let amdDeps = bundle.externalModules.map( quoteId ); let cjsDeps = bundle.externalModules.map( req ); let globalDeps = bundle.externalModules.map( module => { - return globalNames[ module.id ] || module.name; + return 'global.' + (globalNames[ module.id ] || module.name); }); let args = bundle.externalModules.map( getName );