For future reference, I figured out how to do what I wanted:

browserify in.js > out.js -s nameOfGlobal

On Thursday, November 14, 2013 1:48:13 PM UTC-5, Morgan Herlocker wrote:
>
> Hey everyone,
>
> I am having a bit of trouble building a project with browserify. 
>
> In a nutshell, I have a project with an index.js file that requires a 
> bunch of functions, similar to how many of the other "utility belt" libs 
> work (underscore, jQuery, etc.). When I use browserify on index.js though, 
> it ignores the base object, and exposes all of the individual functions. 
> This is polluting the global space far more than I wanted to. Does anyone 
> know of the proper way to do this? 
>
> More details here:
>
>
> http://stackoverflow.com/questions/19983592/browserify-not-exposing-index-object
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to