Skip to content

Conversation

@jonasfj
Copy link

@jonasfj jonasfj commented Oct 31, 2014

Term.js is awesome... and well packaged. In fact it can already be used in browserify, if required as follows:

// How to load term.js in a browserify environment now
var Terminal = require('term.js/src/term');

// How to term.js in a browserify environment after this patch
var Terminal = require('term.js');

By specifying browser: './src/term.js', browserify will load ./src/term.js as it's main file instead of ./index.js.
I seriously doubt anybody wants to use the connect middleware in their browser environment :)

I checked and everything else seems to work as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant