UNPKG

systemjs

Version:
1 lines 401 B
!function(){const t=System.constructor.prototype,n=Object.create(null),e=t.register;t.register=function(t,r,i){if("string"!=typeof t)return e.apply(this,arguments);n[t]=[r,i]};const r=t.resolve;t.resolve=function(t,e){return"/"===t[0]||"."===t[0]&&("/"===t[1]||"."===t[1]&&"/"===t[2])?r.call(this,t,e):n[t]?t:void 0};const i=t.instantiate;t.instantiate=function(t,e){return n[t]||i.call(this,t,e)}}();