npm modules on client

45 views
Skip to first unread message

Алексей Крещук

unread,
Jul 9, 2012, 4:49:06 PM7/9/12
to socket...@googlegroups.com
As I've understood SocketStrwam uses browserify under the hood. Browserify has several options to allow require on  npm modules. Is it possible to do this in SocketStream?

Owen B

unread,
Jul 11, 2012, 5:10:30 PM7/11/12
to socket...@googlegroups.com
Hey Alexey

In theory it will be possible to do this if you use Browserify to pack the code up for you then get SocketStream to serve each module, but it's not something I've ever tried to do.

We only use the Browserify module loading code (e.g. to parse require statements), not the entire library.

I am considering how we can enable this in the future as I believe it's going to be increasingly important to use npm modules on the client.

Owen
Reply all
Reply to author
Forward
0 new messages