This commit is contained in:
guybedford 2017-01-30 09:57:31 +02:00
parent bde2399690
commit ee90da148f
9 changed files with 33 additions and 16 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*
* SystemJS v0.20.2 Production
* SystemJS v0.20.3 Production
*/
(function () {
'use strict';
@ -1148,6 +1148,13 @@ var emptyModule = new ModuleNamespace({});
var hasStringTag;
function isModule (m) {
if (hasStringTag === undefined)
hasStringTag = typeof Symbol !== 'undefined' && !!Symbol.toStringTag;
return m instanceof ModuleNamespace || hasStringTag && Object.prototype.toString.call(m) == '[object Module]';
}
var CONFIG = createSymbol('loader-config');
var PLAIN_RESOLVE = createSymbol('plain-resolve');
@ -1383,6 +1390,8 @@ systemJSPrototype.newModule = function (bindings) {
return new ModuleNamespace(bindings);
};
systemJSPrototype.isModule = isModule;
systemJSPrototype.resolveSync = function (key, parentKey) {
var resolved = resolveIfNotPlain(key, parentKey || baseURI);
if (resolved !== undefined)
@ -1653,7 +1662,7 @@ function coreInstantiate (key, processAnonRegister) {
return doScriptLoad(key, processAnonRegister);
}
SystemJSProductionLoader$1.prototype.version = "0.20.2 Production";
SystemJSProductionLoader$1.prototype.version = "0.20.3 Production";
var System = new SystemJSProductionLoader$1();

File diff suppressed because one or more lines are too long

6
dist/system.js vendored

File diff suppressed because one or more lines are too long

2
dist/system.js.map vendored

File diff suppressed because one or more lines are too long

16
dist/system.src.js vendored
View File

@ -1,5 +1,5 @@
/*
* SystemJS v0.20.2 Dev
* SystemJS v0.20.3 Dev
*/
(function () {
'use strict';
@ -1156,6 +1156,13 @@ function protectedCreateNamespace (bindings) {
return new ModuleNamespace({ default: bindings, __useDefault: true });
}
var hasStringTag;
function isModule (m) {
if (hasStringTag === undefined)
hasStringTag = typeof Symbol !== 'undefined' && !!Symbol.toStringTag;
return m instanceof ModuleNamespace || hasStringTag && Object.prototype.toString.call(m) == '[object Module]';
}
var CONFIG = createSymbol('loader-config');
var METADATA = createSymbol('metadata');
@ -2589,9 +2596,9 @@ function setConfig (cfg, isEnvConfig) {
continue;
if (envConfigNames.indexOf(c) !== -1)
continue;
// warn.call(config, 'Setting custom config option `System.config({ ' + c + ': ... })` is deprecated. Avoid custom config options or set SystemJS.' + c + ' = ... directly.');
config[c] = cfg[c];
// warn.call(config, 'Setting custom config option `System.config({ ' + c + ': ... })` is deprecated. Avoid custom config options or set SystemJS.' + c + ' = ... directly.');
loader[c] = cfg[c];
}
envSet(loader, cfg, function(cfg) {
@ -3921,6 +3928,7 @@ SystemJSLoader$1.prototype.set = function (key, module) {
SystemJSLoader$1.prototype.newModule = function (bindings) {
return new ModuleNamespace(bindings);
};
SystemJSLoader$1.prototype.isModule = isModule;
// ensure System.register and System.registerDynamic decanonicalize
SystemJSLoader$1.prototype.register = function (key, deps, declare) {
@ -3935,7 +3943,7 @@ SystemJSLoader$1.prototype.registerDynamic = function (key, deps, executingRequi
return RegisterLoader$1.prototype.registerDynamic.call(this, key, deps, executingRequire, execute);
};
SystemJSLoader$1.prototype.version = "0.20.2 Dev";
SystemJSLoader$1.prototype.version = "0.20.3 Dev";
var System = new SystemJSLoader$1();

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "systemjs",
"version": "0.20.2",
"version": "0.20.3",
"description": "Dynamic ES module loader",
"repository": {
"type": "git",