From 5a3017729edcffbbbbd0e22f54a3d60799322f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Segersv=C3=A4rd?= Date: Wed, 22 Jul 2015 15:17:00 +0200 Subject: [PATCH] Fix #57 Prefix globalDeps with `global.`, to fix #57. --- src/finalisers/umd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );