Skip to content

Commit

Permalink
6.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 12, 2020
1 parent 5f0cf3a commit abccaf0
Show file tree
Hide file tree
Showing 9 changed files with 5,554 additions and 5,559 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
SystemJS 6.7.1
* Fix auto import race condition (https://github.com/systemjs/systemjs/pull/2266)

SystemJS 6.7.0
* Implement integrity attribute for systemjs-importmap scripts (https://github.com/systemjs/systemjs/commit/78072e594ebebab9124aa9fedd7e17d8303835e1)
* Deprecate the transform and use default extras (https://github.com/systemjs/systemjs/commit/5f7571a76bef210d096e672c9f011d94871a6827)
Expand Down
21 changes: 10 additions & 11 deletions dist/s.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*
* SJS 6.7.0
* SJS 6.7.1
* Minimal SystemJS Build
*/
(function () {

function errMsg(errCode, msg) {
return (msg || "") + " (SystemJS https://git.io/JvFET#" + errCode + ")";
}
Expand Down Expand Up @@ -465,18 +464,18 @@
execPromise = execPromise.then(function () {
load.C = load.n;
load.E = null; // indicates completion
if (!true) ;
if (!true) triggerOnload(loader, load, null, true);
}, function (err) {
load.er = err;
load.E = null;
if (!true) ;
if (!true) triggerOnload(loader, load, err, true);
else throw err;
});
return load.E = load.E || execPromise;
}
// (should be a promise, but a minify optimization to leave out Promise.resolve)
load.C = load.n;
if (!true) ;
if (!true) triggerOnload(loader, load, null, true);
}
catch (err) {
load.er = err;
Expand Down Expand Up @@ -576,22 +575,22 @@
};

// Auto imports -> script tags can be inlined directly for load phase
var lastAutoImportDeps, lastAutoImportTimeout;
var lastAutoImportUrl, lastAutoImportDeps, lastAutoImportTimeout;
var autoImportCandidates = {};
var systemRegister = systemJSPrototype.register;
systemJSPrototype.register = function (deps, declare) {
if (hasDocument && document.readyState === 'loading' && typeof deps !== 'string') {
var scripts = document.getElementsByTagName('script');
var scripts = document.querySelectorAll('script[src]');
var lastScript = scripts[scripts.length - 1];
var url = lastScript && lastScript.src;
if (url) {
if (lastScript) {
lastAutoImportUrl = lastScript.src;
lastAutoImportDeps = deps;
// if this is already a System load, then the instantiate has already begun
// so this re-import has no consequence
var loader = this;
lastAutoImportTimeout = setTimeout(function () {
autoImportCandidates[url] = [deps, declare];
loader.import(url);
autoImportCandidates[lastScript.src] = [deps, declare];
loader.import(lastScript.src);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/s.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/s.min.js.map

Large diffs are not rendered by default.

0 comments on commit abccaf0

Please sign in to comment.