dont clobber existing System global

This commit is contained in:
guybedford 2016-11-15 14:54:01 +02:00
parent 00a728a36e
commit 7349bcd3d3

View File

@ -5,7 +5,9 @@ SystemJSLoader.prototype.version = VERSION;
var System = new SystemJSLoader();
global.System = global.SystemJS = System;
global.SystemJS = System;
global.System = global.System || global.SystemJS;
if (typeof module !== 'undefined' && module.exports)
module.exports = System;