Skip to content

Commit

Permalink
0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 3, 2014
1 parent 62c2294 commit 45c07be
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 35 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Basic Configuration

### Setup

Download [`es6-module-loader.js`](https://github.com/ModuleLoader/es6-module-loader/blob/v0.9.1/dist/es6-module-loader.js) and [`traceur.js`](https://raw.githubusercontent.com/jmcriffey/bower-traceur/0.0.66/traceur.js) and locate them in the same folder as `system.js` from this repo.
Download [`es6-module-loader.js`](https://github.com/ModuleLoader/es6-module-loader/blob/v0.9.2/dist/es6-module-loader.js) and [`traceur.js`](https://raw.githubusercontent.com/jmcriffey/bower-traceur/0.0.66/traceur.js) and locate them in the same folder as `system.js` from this repo.

We then include `dist/system.js` with a script tag in the page.

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "system.js",
"version": "0.9.0",
"version": "0.9.1",
"main": "dist/system.js",
"dependencies": {
"es6-module-loader": "~0.9.1"
"es6-module-loader": "~0.9.2"
},
"devDependencies": {
"qunit": "~1.12.0"
Expand Down
2 changes: 1 addition & 1 deletion dist/system-csp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/system-csp.js.map

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions dist/system-csp.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ function register(loader) {
if (!entry) {
exports = loader.get(name);
if (!exports)
throw "System Register: The module requested " + name + " but this was not declared as a dependency";
throw "Unable to load dependency " + name + ".";
}

else {
Expand Down Expand Up @@ -610,6 +610,7 @@ function register(loader) {
continue;
return getModule(entry.normalizedDeps[i], loader);
}
throw 'Module ' + name + ' not declared as a dependency.';
}, exports, module);

if (output)
Expand Down Expand Up @@ -735,6 +736,9 @@ function register(loader) {
if (anonRegister)
entry = anonRegister;

if (!entry && System.defined[load.name])
entry = System.defined[load.name];

if (!calledRegister && !load.metadata.registered)
throw load.name + " detected as System.register but didn't execute.";
}
Expand Down Expand Up @@ -932,16 +936,12 @@ function core(loader) {
}
};
}
if (load.metadata.format == 'alias') {
return Promise.resolve(loader.normalize(load.metadata.alias, load.name, load.address))
.then(function(alias) {
return {
deps: [alias],
execute: function() {
return System.get(alias);
}
};
});
if (load.metadata.alias) {
var alias = load.metadata.alias;
load.metadata.deps = [alias];
load.metadata.execute = function(require) {
return require(alias);
}
}
return loaderInstantiate.call(loader, load);
}
Expand Down Expand Up @@ -1107,8 +1107,9 @@ function cjs(loader) {

var deps = [];

// remove comments from the source first
var source = source.replace(commentRegEx, '');
// remove comments from the source first, if not minified
if (source.length / source.split('\n').length < 200)
source = source.replace(commentRegEx, '');

var match;

Expand Down
2 changes: 1 addition & 1 deletion dist/system.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions dist/system.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ function register(loader) {
if (!entry) {
exports = loader.get(name);
if (!exports)
throw "System Register: The module requested " + name + " but this was not declared as a dependency";
throw "Unable to load dependency " + name + ".";
}

else {
Expand Down Expand Up @@ -544,6 +544,7 @@ function register(loader) {
continue;
return getModule(entry.normalizedDeps[i], loader);
}
throw 'Module ' + name + ' not declared as a dependency.';
}, exports, module);

if (output)
Expand Down Expand Up @@ -669,6 +670,9 @@ function register(loader) {
if (anonRegister)
entry = anonRegister;

if (!entry && System.defined[load.name])
entry = System.defined[load.name];

if (!calledRegister && !load.metadata.registered)
throw load.name + " detected as System.register but didn't execute.";
}
Expand Down Expand Up @@ -866,16 +870,12 @@ function core(loader) {
}
};
}
if (load.metadata.format == 'alias') {
return Promise.resolve(loader.normalize(load.metadata.alias, load.name, load.address))
.then(function(alias) {
return {
deps: [alias],
execute: function() {
return System.get(alias);
}
};
});
if (load.metadata.alias) {
var alias = load.metadata.alias;
load.metadata.deps = [alias];
load.metadata.execute = function(require) {
return require(alias);
}
}
return loaderInstantiate.call(loader, load);
}
Expand Down Expand Up @@ -1041,8 +1041,9 @@ function cjs(loader) {

var deps = [];

// remove comments from the source first
var source = source.replace(commentRegEx, '');
// remove comments from the source first, if not minified
if (source.length / source.split('\n').length < 200)
source = source.replace(commentRegEx, '');

var match;

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "systemjs",
"version": "0.9.0",
"version": "0.9.1",
"description": "System loader extension for flexible AMD & CommonJS support",
"main": "dist/system.src.js",
"repository": {
Expand All @@ -10,7 +10,7 @@
"author": "Guy Bedford",
"license": "MIT",
"dependencies": {
"es6-module-loader": "~0.9.1"
"es6-module-loader": "~0.9.2"
},
"devDependencies": {
"qunit": "^0.6.2",
Expand Down

0 comments on commit 45c07be

Please sign in to comment.