2018-04-03 19:12:25 -04:00
|
|
|
/**
|
|
|
|
* @license Angular v0.0.0-PLACEHOLDER
|
2019-01-01 02:02:15 -05:00
|
|
|
* (c) 2010-2019 Google LLC. https://angular.io/
|
2018-04-03 19:12:25 -04:00
|
|
|
* License: MIT
|
|
|
|
*/
|
|
|
|
|
2018-06-04 15:38:08 -04:00
|
|
|
var $reflect = {defineMetadata: function() {}, getOwnMetadata: function() {}};
|
|
|
|
var Reflect = (typeof global !== 'undefined' ? global : {})['Reflect'] || {};
|
|
|
|
Object.keys($reflect).forEach(function(key) { Reflect[key] = Reflect[key] || $reflect[key]; });
|
2018-04-03 19:12:25 -04:00
|
|
|
var $deferred, $resolved, $provided;
|
2019-09-06 17:57:05 -04:00
|
|
|
function $getModule(name) {
|
|
|
|
if (name === 'typescript/lib/tsserverlibrary') return $provided['typescript'] || require(name);
|
|
|
|
return $provided[name] || require(name);
|
|
|
|
}
|
2018-04-03 19:12:25 -04:00
|
|
|
function define(modules, cb) { $deferred = { modules: modules, cb: cb }; }
|
|
|
|
module.exports = function(provided) {
|
|
|
|
if ($resolved) return $resolved;
|
|
|
|
var result = {};
|
|
|
|
$provided = Object.assign({'reflect-metadata': $reflect}, provided || {}, { exports: result });
|
|
|
|
$deferred.cb.apply(this, $deferred.modules.map($getModule));
|
|
|
|
$resolved = result;
|
|
|
|
return result;
|
|
|
|
}
|