Browse Source

Fix #57

Prefix globalDeps with `global.`, to fix #57.
contingency-plan
Oskar Segersvärd 10 years ago
parent
commit
5a3017729e
  1. 2
      src/finalisers/umd.js

2
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 );

Loading…
Cancel
Save