Skip to content

Commit

Permalink
Replace require.resolve with normalizeSync
Browse files Browse the repository at this point in the history
This is temporary fix pending a solution to jspm/npm#88
  • Loading branch information
salfield committed Feb 27, 2016
1 parent 960bf89 commit c6e4629
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ module.exports = Server;
* Socket.IO client source.
*/

var clientSource = read(require.resolve('socket.io-client/socket.io.js'), 'utf-8');
//var clientSource = read(require.resolve('socket.io-client/socket.io.js'), 'utf-8');
var clientSource = read(System.normalizeSync('socket.io-client/socket.io.js', module.id).slice(7), 'utf-8');

/**
* Server constructor.
Expand Down

0 comments on commit c6e4629

Please sign in to comment.