Skip to content

Commit

Permalink
alternative detection for #866
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Nov 18, 2015
1 parent fce3cd6 commit 98bb018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
var windowOrigin = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '');

// include the node require since we're overriding it
if (typeof require != 'undefined' && require.resolve && typeof process != 'undefined')
if (typeof require != 'undefined' && typeof process != 'undefined' && !process.browser)
SystemJSLoader.prototype._nodeRequire = require;

var nodeCoreModules = ['assert', 'buffer', 'child_process', 'cluster', 'console', 'constants',
Expand Down

0 comments on commit 98bb018

Please sign in to comment.