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

Commit

Permalink
Fixing #734. Not using 'require' if process.browser is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Nov 11, 2016
1 parent 7cba2b1 commit 568ab59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/sfx-core.js
Expand Up @@ -367,7 +367,7 @@
entry.module.execute.call(global);
}

var nodeRequire = typeof System != 'undefined' && System._nodeRequire || typeof require != 'undefined' && require.resolve && typeof process != 'undefined' && require;
var nodeRequire = typeof System != 'undefined' && System._nodeRequire || typeof process != 'undefined' && !process.browser && typeof require != 'undefined' && typeof require.resolve != 'undefined' && require;

// magical execution function
var modules = { '@empty': {} };
Expand Down

0 comments on commit 568ab59

Please sign in to comment.