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

Commit

Permalink
fix bad typeof check
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 13, 2017
1 parent c879c94 commit 5fef7b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions templates/sfx-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
else
linkDynamicModule(entry);
}
curGroupDeclarative = !curGroupDeclarative;
curGroupDeclarative = !curGroupDeclarative;
}
}

Expand Down Expand Up @@ -274,12 +274,12 @@
throw new TypeError('Module ' + name + ' not declared as a dependency.');
}, exports, module);

if (typeof output !== undefined)
if (output !== undefined)
module.exports = output;

// create the esModule object, which allows ES6 named imports of dynamics
exports = module.exports;

if (exports && exports.__esModule)
entry.esModule = exports;
else
Expand Down Expand Up @@ -336,7 +336,7 @@
* (unless one is a circular dependency already in the list of seen
* modules, in which case we execute it)
*
* Then we evaluate the module itself depth-first left to right
* Then we evaluate the module itself depth-first left to right
* execution to match ES6 modules
*/
function ensureEvaluated(moduleName, seen) {
Expand Down Expand Up @@ -385,7 +385,7 @@
if (!entry)
throw "Module " + name + " not present.";

// recursively ensure that the module and all its
// recursively ensure that the module and all its
// dependencies are linked (with dependency group handling)
link(name);

Expand All @@ -410,9 +410,9 @@
_nodeRequire: nodeRequire,
register: register,
registerDynamic: registerDynamic,
get: load,
get: load,
set: function(name, module) {
modules[name] = module;
modules[name] = module;
},
newModule: function(module) {
return module;
Expand Down
2 changes: 1 addition & 1 deletion templates/sfx-core.min.js

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

0 comments on commit 5fef7b0

Please sign in to comment.