Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cristo-rabani committed Nov 25, 2015
1 parent 1de9c49 commit e4388cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions extensions/autoLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ System.autoLoad = (name, deps, fn) => {
System.register(name, deps, fn);
return System.import(name);
}
const module = {exports: {}, id: name};
const exports = module.exports;
const declaration = fn(exports, module);
const exports = {};
const registerExport = (key, value) => {
if (typeof key === 'object'){
Object(key).forEach((k) => exports[k] = key[k]);
return;
}
exports[key] = value;
};
const declaration = fn(registerExport, exports);
if (!declaration.setters || !declaration.execute) {
throw new TypeError('Invalid Module form for ' + name);
}
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'universe:modules',
version: '0.6.4',
version: '0.6.5',
summary: 'Use ES6 / ES2015 modules in Meteor with SystemJS!',
git: 'https://github.com/vazco/universe-modules',
documentation: 'README.md'
Expand Down

0 comments on commit e4388cd

Please sign in to comment.