Comparing version 3.1.6 to 4.0.0
@@ -0,1 +1,7 @@ | ||
SystemJS 4.0.0 (2019/06/29) | ||
* Support `<base href>` setting baseURL (https://github.com/systemjs/systemjs/pull/1957, @LarsDenBakker) | ||
* Use `Error` over `new Error` to reduce footprint (https://github.com/systemjs/systemjs/pull/1951, @joeldenning) | ||
* Support AMD importing ESM with an internal interop signifier (https://github.com/systemjs/systemjs/pull/1941) | ||
* Support JSON module imports (https://github.com/systemjs/systemjs/pull/1950, @joeldenning) | ||
SystemJS 3.1.6 (2019/04/21) | ||
@@ -2,0 +8,0 @@ * Add "type": "module" package.json property |
@@ -10,3 +10,3 @@ /* | ||
function unsupportedRequire () { | ||
throw new Error('AMD require not supported.'); | ||
throw Error('AMD require not supported.'); | ||
} | ||
@@ -43,3 +43,3 @@ | ||
setters.push(function (ns) { | ||
depModules[idx] = ns.default; | ||
depModules[idx] = ns.__useDefault ? ns.default : ns; | ||
}); | ||
@@ -54,3 +54,3 @@ } | ||
return [amdDefineDeps, function (_export) { | ||
_export('default', exports); | ||
_export({ default: exports, __useDefault: true }); | ||
return { | ||
@@ -107,3 +107,3 @@ setters: setters, | ||
if (!System.registerRegistry) | ||
throw new Error('Include the named register extension for SystemJS named AMD support.'); | ||
throw Error('Include the named register extension for SystemJS named AMD support.'); | ||
System.registerRegistry[name] = createAMDRegister(deps, execute); | ||
@@ -110,0 +110,0 @@ amdDefineDeps = []; |
@@ -1,1 +0,1 @@ | ||
!function(e){const t=System.constructor.prototype,r=[[],function(){return{}}];function n(){throw new Error("AMD require not supported.")}function o(){}const s=["require","exports","module"];function i(e,t){const r={},o={exports:r},s=[],i=[];let f=0;for(let t=0;t<e.length;t++){const u=e[t],c=i.length;if("require"===u)s[t]=n,f++;else if("module"===u)s[t]=o,f++;else if("exports"===u)s[t]=r,f++;else{const e=t;i.push(function(t){s[e]=t.default})}f&&(e[c]=u)}f&&(e.length-=f);const u=t;return[e,function(e){return e("default",r),{setters:i,execute:function(){o.exports=u.apply(r,s)||o.exports,r!==o.exports&&e("default",o.exports)}}}]}let f;const u=t.register;3===u.length?t.register=function(e,t,r){"string"!=typeof e&&(f=t),u.apply(this,arguments)}:t.register=function(e,t){f=t,u.apply(this,arguments)};const c=t.getRegister;let l,p;t.getRegister=function(){const e=c.call(this);if(e&&e[1]===f)return e;if(!l)return e||r;const t=i(l,p);return l=null,t},e.define=function(e,t,r){if("string"==typeof e){if(l){if(!System.registerRegistry)throw new Error("Include the named register extension for SystemJS named AMD support.");return System.registerRegistry[e]=i(t,r),l=[],void(p=o)}System.registerRegistry&&(System.registerRegistry[e]=i([].concat(t),r)),e=t,t=r}e instanceof Array?(l=e,p=t):"object"==typeof e?(l=[],p=function(){return e}):"function"==typeof e&&(l=s,p=e)},e.define.amd={}}("undefined"!=typeof self?self:global); | ||
!function(e){const t=System.constructor.prototype,r=[[],function(){return{}}];function n(){throw Error("AMD require not supported.")}function o(){}const s=["require","exports","module"];function i(e,t){const r={},o={exports:r},s=[],i=[];let u=0;for(let t=0;t<e.length;t++){const f=e[t],c=i.length;if("require"===f)s[t]=n,u++;else if("module"===f)s[t]=o,u++;else if("exports"===f)s[t]=r,u++;else{const e=t;i.push(function(t){s[e]=t.__useDefault?t.default:t})}u&&(e[c]=f)}u&&(e.length-=u);const f=t;return[e,function(e){return e({default:r,__useDefault:!0}),{setters:i,execute:function(){o.exports=f.apply(r,s)||o.exports,r!==o.exports&&e("default",o.exports)}}}]}let u;const f=t.register;3===f.length?t.register=function(e,t,r){"string"!=typeof e&&(u=t),f.apply(this,arguments)}:t.register=function(e,t){u=t,f.apply(this,arguments)};const c=t.getRegister;let l,p;t.getRegister=function(){const e=c.call(this);if(e&&e[1]===u)return e;if(!l)return e||r;const t=i(l,p);return l=null,t},e.define=function(e,t,r){if("string"==typeof e){if(l){if(!System.registerRegistry)throw Error("Include the named register extension for SystemJS named AMD support.");return System.registerRegistry[e]=i(t,r),l=[],void(p=o)}System.registerRegistry&&(System.registerRegistry[e]=i([].concat(t),r)),e=t,t=r}e instanceof Array?(l=e,p=t):"object"==typeof e?(l=[],p=function(){return e}):"function"==typeof e&&(l=s,p=e)},e.define.amd={}}("undefined"!=typeof self?self:global); |
@@ -74,3 +74,7 @@ /* | ||
return [[], function (_export) { | ||
return { execute: function () { _export('default', globalExport) } }; | ||
return { | ||
execute: function () { | ||
_export({ default: globalExport, __useDefault: true }); | ||
} | ||
}; | ||
}]; | ||
@@ -77,0 +81,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
!function(t){const n=System.constructor.prototype;let e,r,o;const i=n.import;n.import=function(n,u){return function(){e=r=void 0;for(let n in t)t.hasOwnProperty(n)&&(e?r||(r=n):e=n,o=n)}(),i.call(this,n,u)};const u=[[],function(){return{}}],c=n.getRegister;n.getRegister=function(){const n=c.call(this);if(n)return n;const i=function(){let n,i=0;for(let o in t)if(t.hasOwnProperty(o)){if(0===i&&o!==e||1===i&&o!==r)return o;i++,n=o}if(n!==o)return n}();if(!i)return u;let f;try{f=t[i]}catch(t){return u}return[[],function(t){return{execute:function(){t("default",f)}}}]}}("undefined"!=typeof self?self:global); | ||
!function(t){const n=System.constructor.prototype;let e,r,o;const i=n.import;n.import=function(n,u){return function(){e=r=void 0;for(let n in t)t.hasOwnProperty(n)&&(e?r||(r=n):e=n,o=n)}(),i.call(this,n,u)};const u=[[],function(){return{}}],f=n.getRegister;n.getRegister=function(){const n=f.call(this);if(n)return n;const i=function(){let n,i=0;for(let o in t)if(t.hasOwnProperty(o)){if(0===i&&o!==e||1===i&&o!==r)return o;i++,n=o}if(n!==o)return n}();if(!i)return u;let c;try{c=t[i]}catch(t){return u}return[[],function(t){return{execute:function(){t({default:c,__useDefault:!0})}}}]}}("undefined"!=typeof self?self:global); |
@@ -32,2 +32,4 @@ /* | ||
defaultExport = value; | ||
if (name === '__useDefault') | ||
return; | ||
_export(name, value); | ||
@@ -34,0 +36,0 @@ }, _context); |
@@ -1,1 +0,1 @@ | ||
!function(){const t=System.constructor.prototype;let e;const n=t.register;t.register=function(t,c){e=c,n.call(this,t,c)};const c=t.getRegister;t.getRegister=function(){const t=c.call(this);if(!t||t[1]===e||0===t[1].length)return t;const n=t[1];return t[1]=function(t,e){let c;const o=n.call(this,function(e,n){"default"===e&&(c=n),t(e,n)},e),s=o.execute;return s&&(o.execute=function(){s.call(this),"object"==typeof c&&t(c)}),o},t}}(); | ||
!function(){const t=System.constructor.prototype;let e;const n=t.register;t.register=function(t,c){e=c,n.call(this,t,c)};const c=t.getRegister;t.getRegister=function(){const t=c.call(this);if(!t||t[1]===e||0===t[1].length)return t;const n=t[1];return t[1]=function(t,e){let c;const o=n.call(this,function(e,n){"default"===e&&(c=n),"__useDefault"!==e&&t(e,n)},e),s=o.execute;return s&&(o.execute=function(){s.call(this),"object"==typeof c&&t(c)}),o},t}}(); |
@@ -0,0 +0,0 @@ /* |
@@ -16,3 +16,3 @@ /* | ||
if (!res.ok) | ||
throw new Error('Fetch error: ' + res.status + ' ' + res.statusText + (parent ? ' loading from ' + parent : '')); | ||
throw Error('Fetch error: ' + res.status + ' ' + res.statusText + (parent ? ' loading from ' + parent : '')); | ||
return res.text(); | ||
@@ -19,0 +19,0 @@ }) |
@@ -1,1 +0,1 @@ | ||
!function(){const t=System.constructor.prototype,n=t.instantiate;t.instantiate=function(t,r){if(".wasm"===t.slice(-5))return n.call(this,t,r);const e=this;return fetch(t,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw new Error("Fetch error: "+t.status+" "+t.statusText+(r?" loading from "+r:""));return t.text()}).then(function(n){return e.transform.call(this,t,n)}).then(function(n){return(0,eval)(n+"\n//# sourceURL="+t),e.getRegister()})},t.transform=function(t,n){return n}}(); | ||
!function(){const t=System.constructor.prototype,n=t.instantiate;t.instantiate=function(t,r){if(".wasm"===t.slice(-5))return n.call(this,t,r);const e=this;return fetch(t,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw Error("Fetch error: "+t.status+" "+t.statusText+(r?" loading from "+r:""));return t.text()}).then(function(n){return e.transform.call(this,t,n)}).then(function(n){return(0,eval)(n+"\n//# sourceURL="+t),e.getRegister()})},t.transform=function(t,n){return n}}(); |
/* | ||
* SJS 3.1.6 | ||
* SJS 4.0.0 | ||
* Minimal SystemJS Build | ||
@@ -11,3 +11,10 @@ */ | ||
let baseUrl; | ||
if (typeof location !== 'undefined') { | ||
if (typeof document !== 'undefined') { | ||
const baseEl = document.querySelector('base[href]'); | ||
if (baseEl) | ||
baseUrl = baseEl.href; | ||
} | ||
if (!baseUrl && typeof location !== 'undefined') { | ||
baseUrl = location.href.split('#')[0].split('?')[0]; | ||
@@ -34,3 +41,3 @@ const lastSepIndex = baseUrl.lastIndexOf('/'); | ||
//if (parentUrl[parentProtocol.length] !== '/') | ||
// throw new Error('Cannot resolve'); | ||
// throw Error('Cannot resolve'); | ||
// read pathname from parent URL | ||
@@ -173,3 +180,3 @@ // pathname taken to be part after leading "/" | ||
if (!registration) | ||
throw new Error('Module ' + id + ' did not instantiate'); | ||
throw Error('Module ' + id + ' did not instantiate'); | ||
function _export (name, value) { | ||
@@ -377,24 +384,34 @@ // note if we have hoisted exports (including reexports) | ||
const loader = this; | ||
return new Promise(function (resolve, reject) { | ||
const script = document.createElement('script'); | ||
script.charset = 'utf-8'; | ||
script.async = true; | ||
script.crossOrigin = 'anonymous'; | ||
script.addEventListener('error', function () { | ||
reject(new Error('Error loading ' + url + (firstParentUrl ? ' from ' + firstParentUrl : ''))); | ||
if (url.endsWith('.json')) { | ||
return fetch(url).then(function (resp) { | ||
return resp.text(); | ||
}).then(function (source) { | ||
return [[], function(_export) { | ||
return {execute: function() {_export('default', JSON.parse(source));}}; | ||
}]; | ||
}); | ||
script.addEventListener('load', function () { | ||
document.head.removeChild(script); | ||
// Note URL normalization issues are going to be a careful concern here | ||
if (err) { | ||
reject(err); | ||
return err = undefined; | ||
} | ||
else { | ||
resolve(loader.getRegister()); | ||
} | ||
} else { | ||
return new Promise(function (resolve, reject) { | ||
const script = document.createElement('script'); | ||
script.charset = 'utf-8'; | ||
script.async = true; | ||
script.crossOrigin = 'anonymous'; | ||
script.addEventListener('error', function () { | ||
reject(Error('Error loading ' + url + (firstParentUrl ? ' from ' + firstParentUrl : ''))); | ||
}); | ||
script.addEventListener('load', function () { | ||
document.head.removeChild(script); | ||
// Note URL normalization issues are going to be a careful concern here | ||
if (err) { | ||
reject(err); | ||
return err = undefined; | ||
} | ||
else { | ||
resolve(loader.getRegister()); | ||
} | ||
}); | ||
script.src = url; | ||
document.head.appendChild(script); | ||
}); | ||
script.src = url; | ||
document.head.appendChild(script); | ||
}); | ||
} | ||
}; | ||
@@ -425,3 +442,3 @@ | ||
return Promise.resolve(id); | ||
throw new Error('Cannot resolve "' + id + (parentUrl ? '" from ' + parentUrl : '"')); | ||
throw Error('Cannot resolve "' + id + (parentUrl ? '" from ' + parentUrl : '"')); | ||
} | ||
@@ -428,0 +445,0 @@ return Promise.resolve(resolved); |
@@ -1,1 +0,1 @@ | ||
!function(){const e="undefined"!=typeof self,n=e?self:global;let t;if("undefined"!=typeof location){const e=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==e&&(t=t.slice(0,e+1))}const r=/\\/g,i="undefined"!=typeof Symbol,o=i&&Symbol.toStringTag,c=i?Symbol():"@";function l(){this[c]={}}const s=l.prototype;let u;s.import=function(e,n){const t=this;return Promise.resolve(t.resolve(e,n)).then(function(e){const n=function e(n,t,r){let i=n[c][t];if(i)return i;const l=[],s=Object.create(null);o&&Object.defineProperty(s,o,{value:"Module"});let u=Promise.resolve().then(function(){return n.instantiate(t,r)}).then(function(e){if(!e)throw new Error("Module "+t+" did not instantiate");const r=e[1](function(e,n){i.h=!0;let t=!1;if("object"!=typeof e)e in s&&s[e]===n||(s[e]=n,t=!0);else for(let n in e){let r=e[n];n in s&&s[n]===r||(s[n]=r,t=!0)}if(t)for(let e=0;e<l.length;e++)l[e](s);return n},2===e[1].length?{import:function(e){return n.import(e,t)},meta:n.createContext(t)}:void 0);return i.e=r.execute||function(){},[e[0],r.setters||[]]});const f=u.then(function(r){return Promise.all(r[0].map(function(i,o){const c=r[1][o];return Promise.resolve(n.resolve(i,t)).then(function(r){const i=e(n,r,t);return Promise.resolve(i.I).then(function(){return c&&(i.i.push(c),!i.h&&i.I||c(i.n)),i})})})).then(function(e){i.d=e})});return f.catch(function(e){i.e=null,i.er=e}),i=n[c][t]={id:t,i:l,n:s,I:u,L:f,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(t,e);return n.C||function(e,n){return n.C=function e(n,t,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then(function(){return Promise.all(t.d.map(function(t){return e(n,t,r)}))})}(e,n,{}).then(function(){return function e(n,t,r){if(r[t.id])return;if(r[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}let i;return t.d.forEach(function(t){{const o=e(n,t,r);o&&(i=i||[]).push(o)}}),i?Promise.all(i).then(o):o();function o(){try{let e=t.e.call(f);if(e)return e=e.then(function(){t.C=t.n,t.E=null}),t.E=t.E||e;t.C=t.n}catch(e){throw t.er=e,e}finally{t.L=t.I=void 0,t.e=null}}}(e,n,{})}).then(function(){return n.n})}(t,n)})},s.createContext=function(e){return{url:e}},s.register=function(e,n){u=[e,n]},s.getRegister=function(){const e=u;return u=void 0,e};const f=Object.freeze(Object.create(null));let d;n.System=new l,"undefined"!=typeof window&&window.addEventListener("error",function(e){d=e.error});const h=s.register;s.register=function(e,n){d=void 0,h.call(this,e,n)},s.instantiate=function(e,n){const t=this;return new Promise(function(r,i){const o=document.createElement("script");o.charset="utf-8",o.async=!0,o.crossOrigin="anonymous",o.addEventListener("error",function(){i(new Error("Error loading "+e+(n?" from "+n:"")))}),o.addEventListener("load",function(){if(document.head.removeChild(o),d)return i(d),d=void 0;r(t.getRegister())}),o.src=e,document.head.appendChild(o)})},e&&"function"==typeof importScripts&&(s.instantiate=function(e){const n=this;return new Promise(function(t,r){try{importScripts(e)}catch(e){r(e)}t(n.getRegister())})}),s.resolve=function(e,n){const i=function(e,n){if(-1!==e.indexOf("\\")&&(e=e.replace(r,"/")),"/"===e[0]&&"/"===e[1])return n.slice(0,n.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){const t=n.slice(0,n.indexOf(":")+1);let r;if(r="/"===n[t.length+1]?"file:"!==t?(r=n.slice(t.length+2)).slice(r.indexOf("/")+1):n.slice(8):n.slice(t.length+("/"===n[t.length])),"/"===e[0])return n.slice(0,n.length-r.length-1)+e;const i=r.slice(0,r.lastIndexOf("/")+1)+e,o=[];let c=-1;for(let e=0;e<i.length;e++)-1!==c?"/"===i[e]&&(o.push(i.slice(c,e+1)),c=-1):"."===i[e]?"."!==i[e+1]||"/"!==i[e+2]&&e+2!==i.length?"/"===i[e+1]||e+1===i.length?e+=1:c=e:(o.pop(),e+=2):c=e;return-1!==c&&o.push(i.slice(c)),n.slice(0,n.length-r.length)+o.join("")}}(e,n||t);if(!i){if(-1!==e.indexOf(":"))return Promise.resolve(e);throw new Error('Cannot resolve "'+e+(n?'" from '+n:'"'))}return Promise.resolve(i)}}(); | ||
!function(){const e="undefined"!=typeof self,n=e?self:global;let t;if("undefined"!=typeof document){const e=document.querySelector("base[href]");e&&(t=e.href)}if(!t&&"undefined"!=typeof location){const e=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==e&&(t=t.slice(0,e+1))}const r=/\\/g,o="undefined"!=typeof Symbol,i=o&&Symbol.toStringTag,c=o?Symbol():"@";function u(){this[c]={}}const s=u.prototype;let l;s.import=function(e,n){const t=this;return Promise.resolve(t.resolve(e,n)).then(function(e){const n=function e(n,t,r){let o=n[c][t];if(o)return o;const u=[],s=Object.create(null);i&&Object.defineProperty(s,i,{value:"Module"});let l=Promise.resolve().then(function(){return n.instantiate(t,r)}).then(function(e){if(!e)throw Error("Module "+t+" did not instantiate");const r=e[1](function(e,n){o.h=!0;let t=!1;if("object"!=typeof e)e in s&&s[e]===n||(s[e]=n,t=!0);else for(let n in e){let r=e[n];n in s&&s[n]===r||(s[n]=r,t=!0)}if(t)for(let e=0;e<u.length;e++)u[e](s);return n},2===e[1].length?{import:function(e){return n.import(e,t)},meta:n.createContext(t)}:void 0);return o.e=r.execute||function(){},[e[0],r.setters||[]]});const f=l.then(function(r){return Promise.all(r[0].map(function(o,i){const c=r[1][i];return Promise.resolve(n.resolve(o,t)).then(function(r){const o=e(n,r,t);return Promise.resolve(o.I).then(function(){return c&&(o.i.push(c),!o.h&&o.I||c(o.n)),o})})})).then(function(e){o.d=e})});return f.catch(function(e){o.e=null,o.er=e}),o=n[c][t]={id:t,i:u,n:s,I:l,L:f,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(t,e);return n.C||function(e,n){return n.C=function e(n,t,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then(function(){return Promise.all(t.d.map(function(t){return e(n,t,r)}))})}(e,n,{}).then(function(){return function e(n,t,r){if(r[t.id])return;if(r[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}let o;return t.d.forEach(function(t){{const i=e(n,t,r);i&&(o=o||[]).push(i)}}),o?Promise.all(o).then(i):i();function i(){try{let e=t.e.call(f);if(e)return e=e.then(function(){t.C=t.n,t.E=null}),t.E=t.E||e;t.C=t.n}catch(e){throw t.er=e,e}finally{t.L=t.I=void 0,t.e=null}}}(e,n,{})}).then(function(){return n.n})}(t,n)})},s.createContext=function(e){return{url:e}},s.register=function(e,n){l=[e,n]},s.getRegister=function(){const e=l;return l=void 0,e};const f=Object.freeze(Object.create(null));let d;n.System=new u,"undefined"!=typeof window&&window.addEventListener("error",function(e){d=e.error});const h=s.register;s.register=function(e,n){d=void 0,h.call(this,e,n)},s.instantiate=function(e,n){const t=this;return e.endsWith(".json")?fetch(e).then(function(e){return e.text()}).then(function(e){return[[],function(n){return{execute:function(){n("default",JSON.parse(e))}}}]}):new Promise(function(r,o){const i=document.createElement("script");i.charset="utf-8",i.async=!0,i.crossOrigin="anonymous",i.addEventListener("error",function(){o(Error("Error loading "+e+(n?" from "+n:"")))}),i.addEventListener("load",function(){if(document.head.removeChild(i),d)return o(d),d=void 0;r(t.getRegister())}),i.src=e,document.head.appendChild(i)})},e&&"function"==typeof importScripts&&(s.instantiate=function(e){const n=this;return new Promise(function(t,r){try{importScripts(e)}catch(e){r(e)}t(n.getRegister())})}),s.resolve=function(e,n){const o=function(e,n){if(-1!==e.indexOf("\\")&&(e=e.replace(r,"/")),"/"===e[0]&&"/"===e[1])return n.slice(0,n.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){const t=n.slice(0,n.indexOf(":")+1);let r;if(r="/"===n[t.length+1]?"file:"!==t?(r=n.slice(t.length+2)).slice(r.indexOf("/")+1):n.slice(8):n.slice(t.length+("/"===n[t.length])),"/"===e[0])return n.slice(0,n.length-r.length-1)+e;const o=r.slice(0,r.lastIndexOf("/")+1)+e,i=[];let c=-1;for(let e=0;e<o.length;e++)-1!==c?"/"===o[e]&&(i.push(o.slice(c,e+1)),c=-1):"."===o[e]?"."!==o[e+1]||"/"!==o[e+2]&&e+2!==o.length?"/"===o[e+1]||e+1===o.length?e+=1:c=e:(i.pop(),e+=2):c=e;return-1!==c&&i.push(o.slice(c)),n.slice(0,n.length-r.length)+i.join("")}}(e,n||t);if(!o){if(-1!==e.indexOf(":"))return Promise.resolve(e);throw Error('Cannot resolve "'+e+(n?'" from '+n:'"'))}return Promise.resolve(o)}}(); |
/* | ||
* SystemJS 3.1.6 | ||
* SystemJS 4.0.0 | ||
*/ | ||
@@ -10,3 +10,10 @@ (function () { | ||
let baseUrl; | ||
if (typeof location !== 'undefined') { | ||
if (typeof document !== 'undefined') { | ||
const baseEl = document.querySelector('base[href]'); | ||
if (baseEl) | ||
baseUrl = baseEl.href; | ||
} | ||
if (!baseUrl && typeof location !== 'undefined') { | ||
baseUrl = location.href.split('#')[0].split('?')[0]; | ||
@@ -33,3 +40,3 @@ const lastSepIndex = baseUrl.lastIndexOf('/'); | ||
//if (parentUrl[parentProtocol.length] !== '/') | ||
// throw new Error('Cannot resolve'); | ||
// throw Error('Cannot resolve'); | ||
// read pathname from parent URL | ||
@@ -102,6 +109,6 @@ // pathname taken to be part after leading "/" | ||
* Import maps implementation | ||
* | ||
* | ||
* To make lookups fast we pre-resolve the entire import map | ||
* and then match based on backtracked hash lookups | ||
* | ||
* | ||
*/ | ||
@@ -181,3 +188,3 @@ | ||
function throwBare (id, parentUrl) { | ||
throw new Error('Unable to resolve bare specifier "' + id + (parentUrl ? '" from ' + parentUrl : '"')); | ||
throw Error('Unable to resolve bare specifier "' + id + (parentUrl ? '" from ' + parentUrl : '"')); | ||
} | ||
@@ -260,3 +267,3 @@ | ||
if (!registration) | ||
throw new Error('Module ' + id + ' did not instantiate'); | ||
throw Error('Module ' + id + ' did not instantiate'); | ||
function _export (name, value) { | ||
@@ -486,24 +493,34 @@ // note if we have hoisted exports (including reexports) | ||
const loader = this; | ||
return new Promise(function (resolve, reject) { | ||
const script = document.createElement('script'); | ||
script.charset = 'utf-8'; | ||
script.async = true; | ||
script.crossOrigin = 'anonymous'; | ||
script.addEventListener('error', function () { | ||
reject(new Error('Error loading ' + url + (firstParentUrl ? ' from ' + firstParentUrl : ''))); | ||
if (url.endsWith('.json')) { | ||
return fetch(url).then(function (resp) { | ||
return resp.text(); | ||
}).then(function (source) { | ||
return [[], function(_export) { | ||
return {execute: function() {_export('default', JSON.parse(source));}}; | ||
}]; | ||
}); | ||
script.addEventListener('load', function () { | ||
document.head.removeChild(script); | ||
// Note URL normalization issues are going to be a careful concern here | ||
if (err) { | ||
reject(err); | ||
return err = undefined; | ||
} | ||
else { | ||
resolve(loader.getRegister()); | ||
} | ||
} else { | ||
return new Promise(function (resolve, reject) { | ||
const script = document.createElement('script'); | ||
script.charset = 'utf-8'; | ||
script.async = true; | ||
script.crossOrigin = 'anonymous'; | ||
script.addEventListener('error', function () { | ||
reject(Error('Error loading ' + url + (firstParentUrl ? ' from ' + firstParentUrl : ''))); | ||
}); | ||
script.addEventListener('load', function () { | ||
document.head.removeChild(script); | ||
// Note URL normalization issues are going to be a careful concern here | ||
if (err) { | ||
reject(err); | ||
return err = undefined; | ||
} | ||
else { | ||
resolve(loader.getRegister()); | ||
} | ||
}); | ||
script.src = url; | ||
document.head.appendChild(script); | ||
}); | ||
script.src = url; | ||
document.head.appendChild(script); | ||
}); | ||
} | ||
}; | ||
@@ -602,3 +619,7 @@ | ||
return [[], function (_export) { | ||
return { execute: function () { _export('default', globalExport); } }; | ||
return { | ||
execute: function () { | ||
_export({ default: globalExport, __useDefault: true }); | ||
} | ||
}; | ||
}]; | ||
@@ -621,3 +642,3 @@ }; | ||
if (!res.ok) | ||
throw new Error(res.status + ' ' + res.statusText + ' ' + res.url + (parent ? ' loading from ' + parent : '')); | ||
throw Error(res.status + ' ' + res.statusText + ' ' + res.url + (parent ? ' loading from ' + parent : '')); | ||
@@ -624,0 +645,0 @@ if (WebAssembly.compileStreaming) |
/* | ||
* SystemJS 3.1.6 | ||
* SystemJS 4.0.0 | ||
*/ | ||
!function(){const t="undefined"!=typeof self,n=t?self:global;let e;if("undefined"!=typeof location){const t=(e=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==t&&(e=e.slice(0,t+1))}const o=/\\/g;function r(t,n){if(-1!==t.indexOf("\\")&&(t=t.replace(o,"/")),"/"===t[0]&&"/"===t[1])return n.slice(0,n.indexOf(":")+1)+t;if("."===t[0]&&("/"===t[1]||"."===t[1]&&("/"===t[2]||2===t.length&&(t+="/"))||1===t.length&&(t+="/"))||"/"===t[0]){const e=n.slice(0,n.indexOf(":")+1);let o;if(o="/"===n[e.length+1]?"file:"!==e?(o=n.slice(e.length+2)).slice(o.indexOf("/")+1):n.slice(8):n.slice(e.length+("/"===n[e.length])),"/"===t[0])return n.slice(0,n.length-o.length-1)+t;const r=o.slice(0,o.lastIndexOf("/")+1)+t,i=[];let c=-1;for(let t=0;t<r.length;t++)-1!==c?"/"===r[t]&&(i.push(r.slice(c,t+1)),c=-1):"."===r[t]?"."!==r[t+1]||"/"!==r[t+2]&&t+2!==r.length?"/"===r[t+1]||t+1===r.length?t+=1:c=t:(i.pop(),t+=2):c=t;return-1!==c&&i.push(r.slice(c)),n.slice(0,n.length-o.length)+i.join("")}}function i(t,n){return r(t,n)||-1!==t.indexOf(":")&&t||r("./"+t,n)}function c(t,n){var e={};for(var o in t){var c=t[o];"string"==typeof c&&(e[r(o,n)||o]=i(c,n))}return e}function s(t,n){if(n[t])return t;let e=t.length;do{const o=t.slice(0,e+1);if(o in n)return o}while(-1!==(e=t.lastIndexOf("/",e-1)))}function u(t,n){const e=s(t,n);if(e){const o=n[e];return null===o&&t.length>e.length&&"/"!==o[o.length-1]&&console.warn("Invalid package target "+o+" for '"+e+"' should have a trailing '/'."),o+t.slice(e.length)}}const l="undefined"!=typeof Symbol,f=l&&Symbol.toStringTag,d=l?Symbol():"@";function a(){this[d]={}}const h=a.prototype;let p;h.import=function(t,n){const e=this;return Promise.resolve(e.resolve(t,n)).then(function(t){const n=function t(n,e,o){let r=n[d][e];if(r)return r;const i=[],c=Object.create(null);f&&Object.defineProperty(c,f,{value:"Module"});let s=Promise.resolve().then(function(){return n.instantiate(e,o)}).then(function(t){if(!t)throw new Error("Module "+e+" did not instantiate");const o=t[1](function(t,n){r.h=!0;let e=!1;if("object"!=typeof t)t in c&&c[t]===n||(c[t]=n,e=!0);else for(let n in t){let o=t[n];n in c&&c[n]===o||(c[n]=o,e=!0)}if(e)for(let t=0;t<i.length;t++)i[t](c);return n},2===t[1].length?{import:function(t){return n.import(t,e)},meta:n.createContext(e)}:void 0);return r.e=o.execute||function(){},[t[0],o.setters||[]]});const u=(s=s.catch(function(t){throw n.onload(r.id,t),t})).then(function(o){return Promise.all(o[0].map(function(r,i){const c=o[1][i];return Promise.resolve(n.resolve(r,e)).then(function(o){const r=t(n,o,e);return Promise.resolve(r.I).then(function(){return c&&(r.i.push(c),!r.h&&r.I||c(r.n)),r})})})).then(function(t){r.d=t})});return u.catch(function(t){r.e=null,r.er=t}),r=n[d][e]={id:e,i:i,n:c,I:s,L:u,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(e,t);return n.C||function(t,n){return n.C=function t(n,e,o){if(!o[e.id])return o[e.id]=!0,Promise.resolve(e.L).then(function(){return Promise.all(e.d.map(function(e){return t(n,e,o)}))})}(t,n,{}).then(function(){return function t(n,e,o){if(o[e.id])return;if(o[e.id]=!0,!e.e){if(e.er)throw e.er;return e.E?e.E:void 0}let r;return e.d.forEach(function(i){try{const c=t(n,i,o);c&&(r=r||[]).push(c)}catch(t){throw n.onload(e.id,t),t}}),r?Promise.all(r).then(i).catch(function(t){throw n.onload(e.id,t),t}):i();function i(){try{let t=e.e.call(m);if(t)return t=t.then(function(){e.C=e.n,e.E=null,n.onload(e.id,null)},function(t){throw n.onload(e.id,t),t}),e.E=e.E||t;e.C=e.n,n.onload(e.id,null)}catch(t){throw n.onload(e.id,t),e.er=t,t}finally{e.L=e.I=void 0,e.e=null}}}(t,n,{})}).then(function(){return n.n})}(e,n)})},h.createContext=function(t){return{url:t}},h.onload=function(){},h.register=function(t,n){p=[t,n]},h.getRegister=function(){const t=p;return p=void 0,t};const m=Object.freeze(Object.create(null));let g;n.System=new a,"undefined"!=typeof window&&window.addEventListener("error",function(t){g=t.error});const y=h.register;h.register=function(t,n){g=void 0,y.call(this,t,n)},h.instantiate=function(t,n){const e=this;return new Promise(function(o,r){const i=document.createElement("script");i.charset="utf-8",i.async=!0,i.crossOrigin="anonymous",i.addEventListener("error",function(){r(new Error("Error loading "+t+(n?" from "+n:"")))}),i.addEventListener("load",function(){if(document.head.removeChild(i),g)return r(g),g=void 0;o(e.getRegister())}),i.src=t,document.head.appendChild(i)})},t&&"function"==typeof importScripts&&(h.instantiate=function(t){const n=this;return new Promise(function(e,o){try{importScripts(t)}catch(t){o(t)}e(n.getRegister())})}),function(t){const n=System.constructor.prototype;let e,o,r;const i=n.import;n.import=function(n,c){return function(){e=o=void 0;for(let n in t)t.hasOwnProperty(n)&&(e?o||(o=n):e=n,r=n)}(),i.call(this,n,c)};const c=[[],function(){return{}}],s=n.getRegister;n.getRegister=function(){const n=s.call(this);if(n)return n;const i=function(){let n,i=0;for(let r in t)if(t.hasOwnProperty(r)){if(0===i&&r!==e||1===i&&r!==o)return r;i++,n=r}if(n!==r)return n}();if(!i)return c;let u;try{u=t[i]}catch(t){return c}return[[],function(t){return{execute:function(){t("default",u)}}}]}}("undefined"!=typeof self?self:global);const v=h.instantiate;h.instantiate=function(t,n){return".wasm"!==t.slice(-5)?v.call(this,t,n):fetch(t).then(function(t){if(!t.ok)throw new Error(t.status+" "+t.statusText+" "+t.url+(n?" loading from "+n:""));return WebAssembly.compileStreaming?WebAssembly.compileStreaming(t):t.arrayBuffer().then(function(t){return WebAssembly.compile(t)})}).then(function(t){const n=[],e=[],o={};return WebAssembly.Module.imports&&WebAssembly.Module.imports(t).forEach(function(t){const r=t.module;e.push(function(t){o[r]=t}),-1===n.indexOf(r)&&n.push(r)}),[n,function(n){return{setters:e,execute:function(){return WebAssembly.instantiate(t,o).then(function(t){n(t.exports)})}}}]})};const b=Object.create(null);b.imports=Object.create(null),b.scopes=Object.create(null);let O=Promise.resolve(b),w="undefined"!=typeof document;w&&Array.prototype.forEach.call(document.querySelectorAll('script[type="systemjs-importmap"][src]'),function(t){t._j=fetch(t.src).then(function(t){return t.json()})}),h.resolve=function(t,n){return n=n||e,w&&(w=!1,Array.prototype.forEach.call(document.querySelectorAll('script[type="systemjs-importmap"]'),function(t){O=O.then(function(n){return(t._j||t.src&&fetch(t.src).then(function(t){return t.json()})||Promise.resolve(JSON.parse(t.innerHTML))).then(function(o){return function(t,n){for(let e in n.imports)t.imports[e]=n.imports[e];for(let e in n.scopes)t.scopes[e]=n.scopes[e];return t}(n,function(t,n){const e=c(t.imports,n)||{},o={};if(t.scopes)for(let e in t.scopes){const r=t.scopes[e];let s=i(e,n);"/"!==s[s.length-1]&&(s+="/"),o[s]=c(r,s)||{}}return{imports:e,scopes:o}}(o,t.src||e))})})})),O.then(function(e){return function(t,n,e){const o=r(t,n)||-1!==t.indexOf(":")&&t;o&&(t=o);const i=s(n,e.scopes);if(i){const n=u(t,e.scopes[i]);if(n)return n}return u(t,e.imports)||o||function(t,n){throw new Error('Unable to resolve bare specifier "'+t+(n?'" from '+n:'"'))}(t,n)}(t,n,e)})};const E="undefined"!=typeof Symbol&&Symbol.toStringTag;h.get=function(t){const n=this[d][t];if(n&&null===n.e&&!n.E)return n.er?null:n.n},h.set=function(t,n){let e;E&&"Module"===n[E]?e=n:(e=Object.assign(Object.create(null),n),E&&Object.defineProperty(e,E,{value:"Module"}));const o=Promise.resolve(e);return this.delete(t),this[d][t]={id:t,i:[],n:e,I:o,L:o,h:!1,d:[],e:null,er:void 0,E:void 0,C:o},e},h.has=function(t){const n=this[d][t];return n&&null===n.e&&!n.E},h.delete=function(t){const n=this.get(t);return void 0!==n&&(n&&n.d&&n.d.forEach(function(t){const e=t.i.indexOf(n);-1!==e&&t.i.splice(e,1)}),delete this[d][t])};const j="undefined"!=typeof Symbol&&Symbol.iterator;h.entries=function(){const t=this,n=Object.keys(t[d]);let e,o,r=0;const i={next:function(){for(;void 0!==(o=n[r++])&&void 0===(e=t.get(o)););return{done:void 0===o,value:void 0!==o&&[o,e]}}};return i[j]=function(){return this},i}}(); | ||
!function(){const t="undefined"!=typeof self,e=t?self:global;let n;if("undefined"!=typeof document){const t=document.querySelector("base[href]");t&&(n=t.href)}if(!n&&"undefined"!=typeof location){const t=(n=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==t&&(n=n.slice(0,t+1))}const o=/\\/g;function r(t,e){if(-1!==t.indexOf("\\")&&(t=t.replace(o,"/")),"/"===t[0]&&"/"===t[1])return e.slice(0,e.indexOf(":")+1)+t;if("."===t[0]&&("/"===t[1]||"."===t[1]&&("/"===t[2]||2===t.length&&(t+="/"))||1===t.length&&(t+="/"))||"/"===t[0]){const n=e.slice(0,e.indexOf(":")+1);let o;if(o="/"===e[n.length+1]?"file:"!==n?(o=e.slice(n.length+2)).slice(o.indexOf("/")+1):e.slice(8):e.slice(n.length+("/"===e[n.length])),"/"===t[0])return e.slice(0,e.length-o.length-1)+t;const r=o.slice(0,o.lastIndexOf("/")+1)+t,i=[];let c=-1;for(let t=0;t<r.length;t++)-1!==c?"/"===r[t]&&(i.push(r.slice(c,t+1)),c=-1):"."===r[t]?"."!==r[t+1]||"/"!==r[t+2]&&t+2!==r.length?"/"===r[t+1]||t+1===r.length?t+=1:c=t:(i.pop(),t+=2):c=t;return-1!==c&&i.push(r.slice(c)),e.slice(0,e.length-o.length)+i.join("")}}function i(t,e){return r(t,e)||-1!==t.indexOf(":")&&t||r("./"+t,e)}function c(t,e){var n={};for(var o in t){var c=t[o];"string"==typeof c&&(n[r(o,e)||o]=i(c,e))}return n}function s(t,e){if(e[t])return t;let n=t.length;do{const o=t.slice(0,n+1);if(o in e)return o}while(-1!==(n=t.lastIndexOf("/",n-1)))}function u(t,e){const n=s(t,e);if(n){const o=e[n];return null===o&&t.length>n.length&&"/"!==o[o.length-1]&&console.warn("Invalid package target "+o+" for '"+n+"' should have a trailing '/'."),o+t.slice(n.length)}}const l="undefined"!=typeof Symbol,f=l&&Symbol.toStringTag,d=l?Symbol():"@";function a(){this[d]={}}const h=a.prototype;let p;h.import=function(t,e){const n=this;return Promise.resolve(n.resolve(t,e)).then(function(t){const e=function t(e,n,o){let r=e[d][n];if(r)return r;const i=[],c=Object.create(null);f&&Object.defineProperty(c,f,{value:"Module"});let s=Promise.resolve().then(function(){return e.instantiate(n,o)}).then(function(t){if(!t)throw Error("Module "+n+" did not instantiate");const o=t[1](function(t,e){r.h=!0;let n=!1;if("object"!=typeof t)t in c&&c[t]===e||(c[t]=e,n=!0);else for(let e in t){let o=t[e];e in c&&c[e]===o||(c[e]=o,n=!0)}if(n)for(let t=0;t<i.length;t++)i[t](c);return e},2===t[1].length?{import:function(t){return e.import(t,n)},meta:e.createContext(n)}:void 0);return r.e=o.execute||function(){},[t[0],o.setters||[]]});const u=(s=s.catch(function(t){throw e.onload(r.id,t),t})).then(function(o){return Promise.all(o[0].map(function(r,i){const c=o[1][i];return Promise.resolve(e.resolve(r,n)).then(function(o){const r=t(e,o,n);return Promise.resolve(r.I).then(function(){return c&&(r.i.push(c),!r.h&&r.I||c(r.n)),r})})})).then(function(t){r.d=t})});return u.catch(function(t){r.e=null,r.er=t}),r=e[d][n]={id:n,i:i,n:c,I:s,L:u,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(n,t);return e.C||function(t,e){return e.C=function t(e,n,o){if(!o[n.id])return o[n.id]=!0,Promise.resolve(n.L).then(function(){return Promise.all(n.d.map(function(n){return t(e,n,o)}))})}(t,e,{}).then(function(){return function t(e,n,o){if(o[n.id])return;if(o[n.id]=!0,!n.e){if(n.er)throw n.er;return n.E?n.E:void 0}let r;return n.d.forEach(function(i){try{const c=t(e,i,o);c&&(r=r||[]).push(c)}catch(t){throw e.onload(n.id,t),t}}),r?Promise.all(r).then(i).catch(function(t){throw e.onload(n.id,t),t}):i();function i(){try{let t=n.e.call(m);if(t)return t=t.then(function(){n.C=n.n,n.E=null,e.onload(n.id,null)},function(t){throw e.onload(n.id,t),t}),n.E=n.E||t;n.C=n.n,e.onload(n.id,null)}catch(t){throw e.onload(n.id,t),n.er=t,t}finally{n.L=n.I=void 0,n.e=null}}}(t,e,{})}).then(function(){return e.n})}(n,e)})},h.createContext=function(t){return{url:t}},h.onload=function(){},h.register=function(t,e){p=[t,e]},h.getRegister=function(){const t=p;return p=void 0,t};const m=Object.freeze(Object.create(null));let g;e.System=new a,"undefined"!=typeof window&&window.addEventListener("error",function(t){g=t.error});const y=h.register;h.register=function(t,e){g=void 0,y.call(this,t,e)},h.instantiate=function(t,e){const n=this;return t.endsWith(".json")?fetch(t).then(function(t){return t.text()}).then(function(t){return[[],function(e){return{execute:function(){e("default",JSON.parse(t))}}}]}):new Promise(function(o,r){const i=document.createElement("script");i.charset="utf-8",i.async=!0,i.crossOrigin="anonymous",i.addEventListener("error",function(){r(Error("Error loading "+t+(e?" from "+e:"")))}),i.addEventListener("load",function(){if(document.head.removeChild(i),g)return r(g),g=void 0;o(n.getRegister())}),i.src=t,document.head.appendChild(i)})},t&&"function"==typeof importScripts&&(h.instantiate=function(t){const e=this;return new Promise(function(n,o){try{importScripts(t)}catch(t){o(t)}n(e.getRegister())})}),function(t){const e=System.constructor.prototype;let n,o,r;const i=e.import;e.import=function(e,c){return function(){n=o=void 0;for(let e in t)t.hasOwnProperty(e)&&(n?o||(o=e):n=e,r=e)}(),i.call(this,e,c)};const c=[[],function(){return{}}],s=e.getRegister;e.getRegister=function(){const e=s.call(this);if(e)return e;const i=function(){let e,i=0;for(let r in t)if(t.hasOwnProperty(r)){if(0===i&&r!==n||1===i&&r!==o)return r;i++,e=r}if(e!==r)return e}();if(!i)return c;let u;try{u=t[i]}catch(t){return c}return[[],function(t){return{execute:function(){t({default:u,__useDefault:!0})}}}]}}("undefined"!=typeof self?self:global);const v=h.instantiate;h.instantiate=function(t,e){return".wasm"!==t.slice(-5)?v.call(this,t,e):fetch(t).then(function(t){if(!t.ok)throw Error(t.status+" "+t.statusText+" "+t.url+(e?" loading from "+e:""));return WebAssembly.compileStreaming?WebAssembly.compileStreaming(t):t.arrayBuffer().then(function(t){return WebAssembly.compile(t)})}).then(function(t){const e=[],n=[],o={};return WebAssembly.Module.imports&&WebAssembly.Module.imports(t).forEach(function(t){const r=t.module;n.push(function(t){o[r]=t}),-1===e.indexOf(r)&&e.push(r)}),[e,function(e){return{setters:n,execute:function(){return WebAssembly.instantiate(t,o).then(function(t){e(t.exports)})}}}]})};const b=Object.create(null);b.imports=Object.create(null),b.scopes=Object.create(null);let O=Promise.resolve(b),E="undefined"!=typeof document;E&&Array.prototype.forEach.call(document.querySelectorAll('script[type="systemjs-importmap"][src]'),function(t){t._j=fetch(t.src).then(function(t){return t.json()})}),h.resolve=function(t,e){return e=e||n,E&&(E=!1,Array.prototype.forEach.call(document.querySelectorAll('script[type="systemjs-importmap"]'),function(t){O=O.then(function(e){return(t._j||t.src&&fetch(t.src).then(function(t){return t.json()})||Promise.resolve(JSON.parse(t.innerHTML))).then(function(o){return function(t,e){for(let n in e.imports)t.imports[n]=e.imports[n];for(let n in e.scopes)t.scopes[n]=e.scopes[n];return t}(e,function(t,e){const n=c(t.imports,e)||{},o={};if(t.scopes)for(let n in t.scopes){const r=t.scopes[n];let s=i(n,e);"/"!==s[s.length-1]&&(s+="/"),o[s]=c(r,s)||{}}return{imports:n,scopes:o}}(o,t.src||n))})})})),O.then(function(n){return function(t,e,n){const o=r(t,e)||-1!==t.indexOf(":")&&t;o&&(t=o);const i=s(e,n.scopes);if(i){const e=u(t,n.scopes[i]);if(e)return e}return u(t,n.imports)||o||function(t,e){throw Error('Unable to resolve bare specifier "'+t+(e?'" from '+e:'"'))}(t,e)}(t,e,n)})};const w="undefined"!=typeof Symbol&&Symbol.toStringTag;h.get=function(t){const e=this[d][t];if(e&&null===e.e&&!e.E)return e.er?null:e.n},h.set=function(t,e){let n;w&&"Module"===e[w]?n=e:(n=Object.assign(Object.create(null),e),w&&Object.defineProperty(n,w,{value:"Module"}));const o=Promise.resolve(n);return this.delete(t),this[d][t]={id:t,i:[],n:n,I:o,L:o,h:!1,d:[],e:null,er:void 0,E:void 0,C:o},n},h.has=function(t){const e=this[d][t];return e&&null===e.e&&!e.E},h.delete=function(t){const e=this.get(t);return void 0!==e&&(e&&e.d&&e.d.forEach(function(t){const n=t.i.indexOf(e);-1!==n&&t.i.splice(n,1)}),delete this[d][t])};const x="undefined"!=typeof Symbol&&Symbol.iterator;h.entries=function(){const t=this,e=Object.keys(t[d]);let n,o,r=0;const i={next:function(){for(;void 0!==(o=e[r++])&&void 0===(n=t.get(o)););return{done:void 0===o,value:void 0!==o&&[o,n]}}};return i[x]=function(){return this},i}}(); |
{ | ||
"name": "systemjs", | ||
"version": "3.1.6", | ||
"version": "4.0.0", | ||
"description": "Dynamic ES module loader", | ||
@@ -17,3 +17,3 @@ "repository": { | ||
"bluebird": "^3.5.1", | ||
"esm": "^3.0.77", | ||
"esm": "^3.2.25", | ||
"mocha": "^5.2.0", | ||
@@ -20,0 +20,0 @@ "rollup": "^0.64.1", |
@@ -177,8 +177,6 @@ # SystemJS | ||
## How is SystemJS related to jspm.io? | ||
## How is SystemJS related to jspm? | ||
SystemJS was initially developed as a universal module loader alongside jspm which provides a package manager and ES module CDN exploring native ES module workflows. SystemJS was the core loader enabling this experimentation of workflows from unbuilt development loading in browsers to production and CDN loading of ES modules. | ||
SystemJS was developed as a universal module loader alongside [jspm](https://jspm.org) which provides a package manager and ES module CDN exploring native ES module workflows. Initially, SystemJS was the core loader enabling this experimentation of workflows from unbuilt development loading in browsers to production and the CDN loading of ES modules but is now used primarily as a [loader for backwards-compatibility in older browsers](https://jspm.org/docs/guide#systemjs-legacy-browser-support). | ||
SystemJS is now used as the legacy loader for backwards compatibility in older browsers for jspm.io. All npm packages are available for loading in SystemJS through `https://system-dev.jspm.io/[packagename]` and `https://system-unsafe-production.jspm.io/[packagename]` where they are transformed from CommonJS into the System module format with their package resolutions inlined for usage in all browsers. This CDN can be useful in sandboxes or dev workflows, but note it is not optimized for production loading. | ||
## Contributing to SystemJS | ||
@@ -185,0 +183,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106877
1435
201
12