Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Mar 26, 2015
1 parent 4028693 commit 8b3edbc
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 37 deletions.
4 changes: 2 additions & 2 deletions dist/es6-module-loader-sans-promises.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es6-module-loader-sans-promises.js.map

Large diffs are not rendered by default.

34 changes: 19 additions & 15 deletions dist/es6-module-loader-sans-promises.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1150,21 +1150,25 @@ function logloads(loads) {
};

Loader.prototype.instantiate = function(load) {
// load transpiler as a global (avoiding System clobbering)
if (load.name === this.transpiler) {
var self = this;
return {
deps: [],
execute: function() {
var curSystem = g.System;
var curLoader = g.Reflect.Loader;
__eval('(function(require,exports,module){' + load.source + '})();', g, load);
g.System = curSystem;
g.Reflect.Loader = curLoader;
return getTranspilerModule(self, load.name);
}
};
}
var self = this;
return Promise.resolve(self.normalize(self.transpiler))
.then(function(transpilerNormalized) {
// load transpiler as a global (avoiding System clobbering)
if (load.name === transpilerNormalized) {
return {
deps: [],
execute: function() {
var curSystem = g.System;
var curLoader = g.Reflect.Loader;
// ensure not detected as CommonJS
__eval('(function(require,exports,module){' + load.source + '})();', g, load);
g.System = curSystem;
g.Reflect.Loader = curLoader;
return getTranspilerModule(self, load.name);
}
};
}
});
};

function traceurTranspile(load, traceur) {
Expand Down
4 changes: 2 additions & 2 deletions dist/es6-module-loader.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es6-module-loader.js.map

Large diffs are not rendered by default.

34 changes: 19 additions & 15 deletions dist/es6-module-loader.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -2420,21 +2420,25 @@ function logloads(loads) {
};

Loader.prototype.instantiate = function(load) {
// load transpiler as a global (avoiding System clobbering)
if (load.name === this.transpiler) {
var self = this;
return {
deps: [],
execute: function() {
var curSystem = g.System;
var curLoader = g.Reflect.Loader;
__eval('(function(require,exports,module){' + load.source + '})();', g, load);
g.System = curSystem;
g.Reflect.Loader = curLoader;
return getTranspilerModule(self, load.name);
}
};
}
var self = this;
return Promise.resolve(self.normalize(self.transpiler))
.then(function(transpilerNormalized) {
// load transpiler as a global (avoiding System clobbering)
if (load.name === transpilerNormalized) {
return {
deps: [],
execute: function() {
var curSystem = g.System;
var curLoader = g.Reflect.Loader;
// ensure not detected as CommonJS
__eval('(function(require,exports,module){' + load.source + '})();', g, load);
g.System = curSystem;
g.Reflect.Loader = curLoader;
return getTranspilerModule(self, load.name);
}
};
}
});
};

function traceurTranspile(load, traceur) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "es6-module-loader",
"description": "An ES6 Module Loader shim",
"version": "0.16.0",
"version": "0.16.1",
"homepage": "https://github.com/ModuleLoader/es6-module-loader",
"author": {
"name": "Guy Bedford, Luke Hoban, Addy Osmani",
Expand Down

0 comments on commit 8b3edbc

Please sign in to comment.