Skip to content

Commit

Permalink
6.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Feb 6, 2020
1 parent 2cf8503 commit 2ff58c9
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 12 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.2.1
* Fix problem with named register modules (resolves #2115) (https://github.com/systemjs/systemjs/pull/2116)

SystemJS 6.2.0
* Adding new createScript / fetch / shouldFetch hooks (https://github.com/systemjs/systemjs/pull/2058)
* Fixing race conditions with named register modules (https://github.com/systemjs/systemjs/pull/2114)
Expand Down
6 changes: 6 additions & 0 deletions dist/extras/amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@
}];
}

const _import = systemPrototype.import;
systemPrototype.import = function() {
firstNamedDefine = null;
return _import.apply(this, arguments);
};

// hook System.register to know the last declaration binding
let lastRegisterDeclare;
const systemRegister = systemPrototype.register;
Expand Down
2 changes: 1 addition & 1 deletion dist/extras/amd.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/extras/amd.min.js.map

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

10 changes: 6 additions & 4 deletions dist/extras/named-register.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@

let firstNamedDefine;

function clearFirstNamedDefine () {
firstNamedDefine = null;
}

function setRegisterRegistry(systemInstance) {
systemInstance.registerRegistry = Object.create(null);
}

const _import = systemJSPrototype.import;
systemJSPrototype.import = function() {
firstNamedDefine = null;
return _import.apply(this, arguments);
};

const register = systemJSPrototype.register;
systemJSPrototype.register = function (name, deps, declare) {
if (typeof name !== 'string')
Expand Down
2 changes: 1 addition & 1 deletion dist/extras/named-register.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/extras/named-register.min.js.map

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.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SJS 6.2.0
* SJS 6.2.1
* Minimal SystemJS Build
*/
(function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/system.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SystemJS 6.2.0
* SystemJS 6.2.1
*/
(function () {
const hasSelf = typeof self !== 'undefined';
Expand Down

0 comments on commit 2ff58c9

Please sign in to comment.