zhongrj
2025-11-24 07ab3cd14a4c75b7f196123eafbafaa5fadaefb0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
  SystemJS Globals loader plugin
  Piero Toffanin 2018
*/
 
// this code simply allows loading of global modules
// that are already defined in the window object
exports.fetch = function(load) {
  var moduleName = load.name.split("/").pop();
  return moduleName;
}
 
exports.instantiate = function(load){
  return window[load.source] || window[load.metadata.exports];
}