zhongrj
2025-11-25 b89962006164a462404b79a738bee8cbb6d7fe7e
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];
}